Need Really Help Please. - 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: Need Really Help Please. (
/showthread.php?tid=134837)
Need Really Help Please. -
SpanishMan - 17.03.2010
Hello, i need to remove the weapons when someone reaches an area, like City Hall.. someone say to me, its with IsPlayerInArea, but, i dont now how to do this..
When someone reach the city hall, weapons remove, and when he left the area, the weapons come back..
Re: Need Really Help Please. -
Correlli - 17.03.2010
Search to learn how to use IsPlayerInArea function. You'll also need GetPlayerWeaponData function (you can learn more about it on the SA:MP wiki) to store players weapons and the use ResetPlayerWeapons to remove the weapons.
If player isn't in that area anymore, then give him his weapons back by using the GivePlayerWeapon function with the global variables in which you've stored the old weapons and ammo.