Help me please with spawn...
#1

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...
Reply
#2

https://sampwiki.blast.hk/wiki/Random
Reply
#3

Yes, i know this... But i dont understand how to add this to my command
Reply
#4

Код:
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)
}
Reply
#5

It give me crash when i add new rand = random(5);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)