Commands for rcon admin
#11

Where should I put commands? Because I'm making a fs..
I mean how can I make so I'm not got weapon directly when I login.. Just get them with
a command.. Hmm I think how..


Does it works with this:

pawn Код:
public OnFilterScriptInit()
{

    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}
    public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/weapon", cmdtext, true, 10) == 0)
    {
        CMD:command(playerid,params[])  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 0;
}
public OnFilterScriptExit()
{
    return 0;
}

#else
#endif
But I don't get any weapon... Idk if it will work like that my first FS xD..
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: 2 Guest(s)