Looking for decision - 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)
+--- Thread: Looking for decision (
/showthread.php?tid=588533)
Looking for decision -
bo4eto - 09.09.2015
How to make the static pick up (health, armor) to be used only from one faction ? GameMode [GangWars]
Re: Looking for decision -
saffierr - 09.09.2015
Use, CreatePickup()
Here's one,
PHP код:
CreatePickup(1240, 2, X, Y, Z, 0); // Health pickup
PHP код:
CreatePickup(1242, 2, X, Y, Z, 0); // Armour pickup
Re: Looking for decision -
bo4eto - 09.09.2015
Yes i know this but i need that one faction for ex. Grove Street can't take the health and the armor from for ex. Ballas.
Re: Looking for decision -
Andre02 - 09.09.2015
Use Enumerators to stock the Player Faction Data (
https://sampforum.blast.hk/showthread.php?tid=318307)
Use OnPlayerPickUpPickup & if statements to check if the player is in the right Faction and to give him the hp/armor if he is in the right Faction. (
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup)
Re: Looking for decision -
DarkLored - 09.09.2015
Refer to this, simply create if statements that check if a player is from one faction he will be able to use it, and if the other faction can't simply return a 0 value.
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
Re: Looking for decision -
bo4eto - 09.09.2015
I'll try thanks guys.