SA-MP Forums Archive
Is this possible? - 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: Is this possible? (/showthread.php?tid=65434)



Is this possible? - harrold - 12.02.2009

Is it possible to lock player weapons
If they are in a safe zone then they can't shoot
?


Re: Is this possible? - Jefff - 12.02.2009

Yes :P

Код:
GetPlayerWeaponData + ResetPlayerWeapons
and if he is not in the zone

Код:
for/while + GivePlayerWeapon



Re: Is this possible? - harrold - 12.02.2009

Ok there isn't a function for it?


Re: Is this possible? - [LDT]LuxurY - 12.02.2009

sure. you must save player's weapons (use array) and when the player enters the zone delete his weapons. when the player left the zone give him weapons from array. for checking player in/out of zone use old dcallbacks by dracoblue http://dracoblue.net/download/dcallbacks-11/40/
or LGZ in my signature (with gangzones)

Cheers, [LDT]LuxurY