Function not working - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Function not working (
/showthread.php?tid=95760)
Function not working -
XeoN_13 - 04.09.2009
SetPlayerDisableWeapons or SetDisableWeapons does not work
Re: Function not working -
Correlli - 04.09.2009
It's called SetDisabledWeapons and it's disabled in 0.3:
Quote:
Warning: This function is removed in SA-MP 0.3. Alternatively you can return 0 in OnPlayerUpdate if they use a bad weapon, and change their weapon.
|
Re: Function not working -
C0ld_ - 04.09.2009
Look this
http://forum.sa-mp.com/index.php?topic=119943.0
Re: Function not working -
Balon - 05.09.2009
pawn Код:
#define DISABLED_WEAPONS 35, 36, 37, 38
public OnPlayerUpdate(playerid)
{
#if defined DISABLED_WEAPONS
new weapon = GetPlayerWeapon(playerid);
switch(weapon)
{
case DISABLED_WEAPONS:
{
GivePlayerWeapon(playerid, weapon, -GetPlayerAmmo(playerid));
return 0;
}
}
#endif
return 1;
}