Help me please with spawn... - 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: Help me please with spawn... (
/showthread.php?tid=384840)
Help me please with spawn... -
StAsMaNn - 13.10.2012
My gamemode is using this commad
SetSpawnInfo( playerid, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
How can i make random spawns with this command? Help me please...
Re: Help me please with spawn... -
Stigg - 13.10.2012
https://sampwiki.blast.hk/wiki/Random
Re: Help me please with spawn... -
StAsMaNn - 13.10.2012
Yes, i know this... But i dont understand how to add this to my command
Re: Help me please with spawn... -
JhnzRep - 13.10.2012
Код:
new rand = random(5);
switch (rand)
{
case 0: SetSpawnInfo(blah, bla)
case 1: SetSpawnInfo(blah, bla)
case 2: SetSpawnInfo(blah, bla)
case 3: SetSpawnInfo(blah, bla)
case 4: SetSpawnInfo(blah, bla)
case 5: SetSpawnInfo(blah, bla)
}
Re: Help me please with spawn... -
StAsMaNn - 13.10.2012
It give me crash when i add new rand = random(5);