giving all pursuers money - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: giving all pursuers money (
/showthread.php?tid=256842)
giving all pursuers money -
Madsen - 22.05.2011
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
Re: giving all pursuers money -
Madsen - 23.05.2011
bump
Re: giving all pursuers money -
Madsen - 06.06.2011
bump!
Re: giving all pursuers money -
iGetty - 06.06.2011
2* bump? = Forum banned maybe.., but as for what you mean, nobody will help a bumper.
Re: giving all pursuers money -
Madsen - 06.06.2011
what do you want me to do. i posted it the 22/5 who are looking 10 days back in this forum?
Re: giving all pursuers money -
iFriSki - 06.06.2011
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
Re: giving all pursuers money -
Madsen - 06.06.2011
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