Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:kick (playerid, params[])
- {
- if(Player[playerid][Admin] < 3) return SendClientMessage(playerid, VERMELHO, "[ERRO]{FFFFFF} Vc Precisa Ser Da Equipe Staff Para Ter Uso Deste Comando");
- new PlayerIDKickado, Motivo[10], Mensagem[256];
- if(sscanf(params, "us[30]",PlayerIDKickado,Motivo))return SendClientMessage(playerid, VERMELHO,"[BVR]{FFFFFF}Use /kick [ID] [MOTIVO]!");
- if(PlayerIDKickado == INVALID_PLAYER_ID)return SendClientMessage(playerid, VERMELHO, "[BVR]{FFFFFF}ID DO PLAYER INVALIDO");
- if( strlen(Motivo) > 10) return SendClientMessage(playerid, VERMELHO, "[ERRO]{FFFFFF} MOTIVO INVALIDO/GRANDE");
- format(Mensagem, sizeof(Mensagem), "[BVR] O Admin: %s Kickou o Player: %s Motivo: %s",GetPlayerNameEx(PlayerIDKickado) );
- SendClientMessageToAll(VERMELHO, Mensagem);
- Kick(PlayerIDKickado);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement