Need Really Help Please.
#1

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..
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: