23.09.2011, 23:50
(
Last edited by WLSF; 24/09/2011 at 01:13 AM.
)
pawn Code:
stock eumesmo(playerid)
{
new
nome[MAX_PLAYER_NAME]
;
GetPlayerName(playerid,nome,sizeof(nome));
if(strcmp(nome,"Willian_Luigi", true) == 0)
{
return 1;
}
return 0;
}
pawn Code:
//exemplo de comando
if(!strcmp(cmd,"/kick", true))
{
if(eumesmo(playerid))
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, -1, "USE: /kick [id]");
}
new outro = strval(tmp);
if(outro == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, -1, "PLAYER DESCONHECIDO.");
}
Kick(outro);
}
return 1;
}