Looking for decision
#1

How to make the static pick up (health, armor) to be used only from one faction ? GameMode [GangWars]
Reply
#2

Use, CreatePickup()
Here's one,
PHP код:
CreatePickup(12402XYZ0); // Health pickup 
PHP код:
CreatePickup(12422XYZ0); // Armour pickup 
Reply
#3

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

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)
Reply
#5

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
Reply
#6

I'll try thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)