09.11.2012, 14:06
lets say the AntiCheat system has a costume function to give guns so it allows the player to have a gun and not ban them.
so. in the AntiCheat sys.
then to call that function lets say from your gamemode
so. in the AntiCheat sys.
pawn Код:
forward GiveGun(playerid,WEPID,AMO);
public GiveGun(playerid,WEPID,AMO)//it needs to be a public so we can call it
{
//what ever variable the system is using to allow the gun to the player
AllowPlayerWeapon(playerid);//example (i dont know how the AntiCheat is made)
GiveWeapon(playerid,WEPID,AMO);
}
pawn Код:
CallRemoteFunction("GiveGun", "iii", playerid,24,200);//give playerid a Desert eagle(24) with 200 amo