28.03.2014, 21:22
Bom galera й o seguinte eu crio o comando em ZCMD e talz crio direitinho sу que quando eu uso ele no servidor nгo aparece as mensagens para o player banido, sу aparece "Server Closed Connection"
Comando:
Sу pra informar que acontece o mesmo com o cmd Kick ...
Espero ajudas !!!
Comando:
pawn Код:
CMD:ban(playerid, params[]) {
new id;
new str[128];
new Motivo;
new pName[MAX_PLAYER_NAME];
new aName[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Laranja, "| ERRO | Vocк nгo й administrador(a)!");
if(sscanf(params,"ds", id, Motivo)) return SendClientMessage(playerid, Vermelho, "| ERRO |{FFFFFF}Digite: /Ban [id] [Motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Laranja, "| ERRO | ID Invбlido");
GetPlayerName(playerid, aName, sizeof(aName));
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "O(A) Administrador(a) %s baniu o jogador(a) %s (Motivo: %s)!",aName, pName, Motivo);
SendClientMessageToAll(COLOR_BLUE, str);
format(str, sizeof(str), "» {FFFFFF}Vocк foi banido(a) pelo administrador(a) %s (Motivo: %s)!",aName, Motivo);
SendClientMessage(id,Vermelho, str);
Ban(id);
return 1;
}
Espero ajudas !!!

