Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 382: CMD:kick(playerid, params[])
- 383: {
- 384: new targetplayer, reason[64];
- 385: if(IsPlayerAdmin(playerid))
- 386: {
- 387 if(sscanf(params, "is[64]", targetplayer, reason))
- 388 SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /kick [ID] [REASON]");
- 389 }
- 390 if(targetplayer == playerid)
- 391 {
- 392 SendClientMessage(playerid, COLOR_RED, "You cannot kick yourself!");
- 393 }
- 394 else
- 394 {
- 395 SendClientMessage(playerid, COLOR_RED, "You kicked X");
- 396 SendClientMessage(targetplayer, COLOR_RED, "You have been kicked by admin X for REASON");
- 397 Kick(targetplayer);
- 398 }
- 399 }
- 400 else
- 401 {
- 402 SendClientMessage(playerid, -1, "SERVER: Unknown command.");
- 403 }
- 404 return 1;
- 404:}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement