/getgift random prizes - 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: /getgift random prizes (
/showthread.php?tid=621847)
/getgift random prizes -
PepsiCola23 - 15.11.2016
Hello,how can i make a /getgift with random prizes? so you type /getgift and you get one of the following for example: 500k money,1 level up,etc...
any tips?ty in advance
Re: /getgift random prizes -
Vince - 15.11.2016
PHP код:
switch(random(3))
{
case 0: ...
case 1: ...
case 2: ...
}
Re: /getgift random prizes -
PepsiCola23 - 15.11.2016
so i use switch insstead..thank you :P trying to do it