26.05.2012, 21:14
Hi!
I'm working on a simple admin SF but I can't use the command that I made.. It dosen't happen
anything when I type the command...
I'm working on a simple admin SF but I can't use the command that I made.. It dosen't happen
anything when I type the command...
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)
{
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;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif