Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. 382: CMD:kick(playerid, params[])
  2. 383: {
  3. 384: new targetplayer, reason[64];
  4. 385: if(IsPlayerAdmin(playerid))
  5. 386: {
  6. 387 if(sscanf(params, "is[64]", targetplayer, reason))
  7. 388 SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /kick [ID] [REASON]");
  8. 389 }
  9. 390 if(targetplayer == playerid)
  10. 391 {
  11. 392 SendClientMessage(playerid, COLOR_RED, "You cannot kick yourself!");
  12. 393 }
  13. 394 else
  14. 394 {
  15. 395 SendClientMessage(playerid, COLOR_RED, "You kicked X");
  16. 396 SendClientMessage(targetplayer, COLOR_RED, "You have been kicked by admin X for REASON");
  17. 397 Kick(targetplayer);
  18. 398 }
  19. 399 }
  20. 400 else
  21. 401 {
  22. 402 SendClientMessage(playerid, -1, "SERVER: Unknown command.");
  23. 403 }
  24. 404 return 1;
  25. 404:}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement