26.01.2011, 21:47
Hello guys... How to put this cmd only for rcon admins?
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Some Owner CMDS by Ricardo_Manuel");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/sos", true) == 0)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, 500000);
GivePlayerWeapon(playerid, 16, 5000);
GivePlayerWeapon(playerid, 24, 5000);
GivePlayerWeapon(playerid, 25, 5000);
GivePlayerWeapon(playerid, 28, 5000);
GivePlayerWeapon(playerid, 31, 5000);
GivePlayerWeapon(playerid, 34, 5000);
GivePlayerWeapon(playerid, 35, 5000);
return 1;
}
return 0;
}