Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. IRCCMD:explode(botid, channel[], user[], host[], params[])
  2. {
  3. new
  4. string[128],
  5. ID;
  6. if(sscanf(params, "u", ID)) return IRC_GroupSay(gGroupID, channel, "3Use: !explode [ID]");
  7. else if(!IRC_IsOp(botid, channel, user)) return 0;
  8. else if(!IsPlayerConnected(ID)) return IRC_GroupSay(gGroupID, channel,"4*** Error: Invalid player ID.");
  9. else
  10. {
  11. new Float:x, Float:y, Float:z;
  12. GetPlayerPos(ID, x, y, z);
  13. CreateExplosion(x, y, z, 10, 0);
  14.  
  15. new oname[MAX_PLAYER_NAME];
  16. GetPlayerName(ID, oname, sizeof(oname));
  17.  
  18. format(string, sizeof(string), "14,0%s has been nuked by %s.", oname, user);
  19. IRC_GroupSay(gGroupID,channel,string);
  20. }
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement