[HELP] COps Robber - 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: [HELP] COps Robber (
/showthread.php?tid=227405)
[HELP] COps Robber -
[MKD]Max - 17.02.2011
I need help guys please tell me please please what random(5000); man i need to know so for i maker rob commands for los santos cops robber my one! thanks all!
Код:
new zrand = random(5000);
if(zrand >=0 && zrand <=1000) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Robbery Failed_|");
SendClientMessage(playerid,COLOR_ERROR,"Your attempt to Grotti has failed");
UsedAutoRecently[playerid] += 120;
return 1;
}
Re: [HELP] COps Robber -
[MKD]Max - 17.02.2011
Please Guys Help With
random(5000);
what its mean
Re: [HELP] COps Robber -
spedico - 17.02.2011
Returns a random number from the range 0-5000. In that script, if the random number is over 0 and below 1000, the robbery fails.
Re: [HELP] COps Robber -
[MKD]Max - 17.02.2011
so if i want to make for exampel place from myself not from lvrcr what random i should put thats what i need