Commands for rcon admin
#13

Quote:
Originally Posted by TheDominator
Посмотреть сообщение
It seems as if your using strcmp and Zcmd to use for commands which isn't possible, what you should try is:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/weapon", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid,-1,"You are not logged into Rcon"); //    Sends client message that he     is not logged into rcon
        GivePlayerWeapon(playerid,38,500); // Gives player weapon if he is logged into RCON
        return 1;
    }
    return 0;
}
I am sorry if it doesn't work but at the moment I am unable to test it due to the fact that my GTA_SA has suddenly decided it wants to crash.
Okay thanks alot!! . I hope it will help.

Edit didn't workt .
Reply


Messages In This Thread
Commands for rcon admin - by davve95 - 25.05.2012, 19:17
AW: Commands for rcon admin - by EthanR - 25.05.2012, 19:18
Re: Commands for rcon admin - by davve95 - 25.05.2012, 19:22
Re: Commands for rcon admin - by TheDominator - 25.05.2012, 19:28
AW: Commands for rcon admin - by EthanR - 25.05.2012, 19:30
Re: Commands for rcon admin - by davve95 - 25.05.2012, 19:38
Re: Commands for rcon admin - by Hoss - 25.05.2012, 19:41
Re: Commands for rcon admin - by TheDominator - 25.05.2012, 19:49
Re: Commands for rcon admin - by davve95 - 25.05.2012, 19:58
Re: Commands for rcon admin - by Saad_ - 25.05.2012, 20:25
Re: Commands for rcon admin - by davve95 - 26.05.2012, 16:28
Re: Commands for rcon admin - by TheDominator - 26.05.2012, 16:57
Re: Commands for rcon admin - by davve95 - 26.05.2012, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)