2 Questions !
#1

Firstly. Is IsPlayerInCheckpoint bugged / broken, because it isn't working for me.

Secondly. If I used say, PlayerHasMedicKit[MAX_PLAYERS]; how could I make them have more than 1 & detect it. Like /inventory "You have X Medic Kits". I already know the Basics of it, just not how to make numerous "Medic Kits", & how to detect how many they actually have.
Thanks.
Reply
#2

1: https://sampwiki.blast.hk/wiki/Bugs - It's mentioned there, see for yourself

2:As:

PlayerHasMedicKit[MAX_PLAYERS];

Is not boolean, you can set the value to whatever you like. So if the player has 17 med kits, set PlayerHasMedicKit[playerid] to 17.

If they have no medic kits, set it to 0.

To detect how many they have, use "PlayerHasMedicKit[playerid]" as you would any other variable.

if(PlayerHasMedicKit[playerid] > 4) // player has more than 4 med kits.
Reply
#3

Quote:
Originally Posted by Weirdosport
1: https://sampwiki.blast.hk/wiki/Bugs - It's mentioned there, see for yourself

2:As:

PlayerHasMedicKit[MAX_PLAYERS];

Is not boolean, you can set the value to whatever you like. So if the player has 17 med kits, set PlayerHasMedicKit[playerid] to 17.

If they have no medic kits, set it to 0.

To detect how many they have, use "PlayerHasMedicKit[playerid]" as you would any other variable.

if(PlayerHasMedicKit[playerid] > 4) // player has more than 4 med kits.
Bummer. Thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)