26.05.2012, 16:28
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:
But I don't get any weapon... Idk if it will work like that my first FS xD..
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