Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:explode(botid, channel[], user[], host[], params[])
- {
- new
- string[128],
- ID;
- if(sscanf(params, "u", ID)) return IRC_GroupSay(gGroupID, channel, "3Use: !explode [ID]");
- else if(!IRC_IsOp(botid, channel, user)) return 0;
- else if(!IsPlayerConnected(ID)) return IRC_GroupSay(gGroupID, channel,"4*** Error: Invalid player ID.");
- else
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(ID, x, y, z);
- CreateExplosion(x, y, z, 10, 0);
- new oname[MAX_PLAYER_NAME];
- GetPlayerName(ID, oname, sizeof(oname));
- format(string, sizeof(string), "14,0%s has been nuked by %s.", oname, user);
- IRC_GroupSay(gGroupID,channel,string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement