18.05.2012, 23:45
eu do /ban meu id teste e n me kicka..
PHP код:
CMD:ban(playerid, params[])
{
new id, Motivo, str[128], snd[MAX_PLAYER_NAME], snd2[MAX_PLAYER_NAME];
if(sscanf(params,"is",id,Motivo)) return SCM(playerid, Cinza, "Use: /ban (id) (motivo)");
PlayerInfo[id][pBan] = 1;
GetPlayerName(playerid, snd, sizeof(snd));
GetPlayerName(id, snd2, sizeof(snd2));
format(str, sizeof(str), "[{00FFFF}Atenзгo{FFFFFF}] - O Administrador (%s) Baniu o player (%s) Pelo simples motivo: (%s)",snd,snd2,Motivo);
SendClientMessageToAll(-1, str);
Kick(id);
return 1;
}