giving all pursuers money
#1

hey is it possible to give all the players that have the varible (pursuer) 1500 dollars when a player with the varible (escaper) dies.
I have tried but dont got a clue how to do it so this is what i got:
OnPlayerDeath
pawn Код:
if(escaper[playerid] == 1)
        {
            MoveDynamicObject(gate, 1584.7552490234, -1638.1544189453, 12.365068435669, 5);
            escaper[playerid] = 0;
            GivePlayerMoney(pursuer, 1500);
            SendClientMessage(pursuer, COLOR_GREEN, "$1500");
        }
thank you for your help and your time
Reply
#2

bump
Reply
#3

bump!
Reply
#4

2* bump? = Forum banned maybe.., but as for what you mean, nobody will help a bumper.
Reply
#5

what do you want me to do. i posted it the 22/5 who are looking 10 days back in this forum?
Reply
#6

Make the variable pursuer an array of all the players. Seeing as you want to give every single pursuer 1,500 upon an escapees death, you'll need to loop through them giving them money.

Quote:
Originally Posted by getty154
Посмотреть сообщение
2* bump? = Forum banned maybe.., but as for what you mean, nobody will help a bumper.
/facedesk
Reply
#7

Quote:
Originally Posted by iFriSki
Посмотреть сообщение
Make the variable pursuer an array of all the players. Seeing as you want to give every single pursuer 1,500 upon an escapees death, you'll need to loop through them giving them money.


/facedesk
okay thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)