[Ajuda] /bangu
#2

Acho que o /banip seria assim:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/banip"true) == 0)
    {
        new 
str[64];
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
            return 
SendClientMessage(playerid0xFF0000FF"USO: /banip [IP].");
        if(!
IsPlayerAdmin(playerid))
            return 
SendClientMessage(playerid0xFF0000FF"Vocк nгo estб logado na RCON.");
        
format(strsizeof str"banip %s"tmp);
        
SendRconCommand(str);
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
[Ajuda] /bangu - by IILeonII - 28.06.2011, 14:23
Re: [Ajuda] /bangu - by Shadoww5 - 28.06.2011, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)