28.06.2011, 15:02
Acho que o /banip seria assim:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/banip", true) == 0)
{
new str[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, 0xFF0000FF, "USO: /banip [IP].");
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo estб logado na RCON.");
format(str, sizeof str, "banip %s", tmp);
SendRconCommand(str);
return 1;
}
return 0;
}