dylan4021

kick

Sep 5th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1. CMD:kick(playerid, params[])
  2. {
  3.     if(AdminInfo[playerid][Admin] < 4) return SendClientMessage(playerid, -1, "[ERRO]: Você tem que ser ADM nv 4+");
  4.     new causa[128];
  5.     if(sscanf(params, "us[128]", id, causa)) return SendClientMessage(playerid, -1, "[ERRO]: Use /kick [ID/Nome] [Causa]");
  6.     format(string, sizeof(string), "O Admin : [ %s ] Kickou [ %s ] [Motivo: %s ]", GetPlayerNameEx(playerid), GetPlayerNameEx(id), causa);
  7.     SendClientMessageToAll(-1, string);
  8.     Kick(id);
  9.     return true;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment