SA-MP Forums Archive
Bonus Player - 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: Bonus Player (/showthread.php?tid=503113)



Bonus Player - Recko - 27.03.2014

I would like to create a system : server chooses a random player who will be the "Bonus Player" and whoever kills the bonus player receive a reward(score & money).

But I do not know how to start,
if you could inform me the way please


Re: Bonus Player - AlonzoTorres - 27.03.2014

https://sampwiki.blast.hk/wiki/Random


Re : Bonus Player - Recko - 27.03.2014

Thanks but how to do Random with playerid


Re : Bonus Player - Recko - 27.03.2014

help plz


Re: Bonus Player - MattTucker - 27.03.2014

Perhaps you can do like /coolguy and it makes a loop of all the players logged in, get a random number out of those ids, save it to a global variable which you created, and add the rewards onplayerdeath. (if killed guy = bonusguy then bla bla bla)