pawn Код:
if(strcmp("/kickar", cmdtext, true) == 0)
{
new idkickado,string[100];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, vermelho, "Uso Correto:{FFFFFF} /Kickar [ID]");
idkickado = strval(tmp);
Kick(idkickado);
format(string, sizeof(string), "[ADM-INFO] %s kickou %s", pNome(playerid), pNome(idkickado));
SendClientMessageToAll(-1, string);
return 1;
}
pawn Код:
if(strcmp("/banir", cmdtext, true) == 0)
{
new idbanido,string[100];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, vermelho, "Uso Correto:{FFFFFF} /Kickar [ID]");
idbanido = strval(tmp);
Kick(idbanido);
format(string, sizeof(string), "[ADM-INFO] %s baniu %s", pNome(playerid), pNome(idbanido));
SendClientMessageToAll(-1, string);
return 1;
}
pawn Код:
stock pNome(playerid)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
return nome;
}