Random Pickup Spawn
#9

Quote:
Originally Posted by blackwave
Посмотреть сообщение
pawn Код:
new Float:RandomSpawns[][3] =
{
    {x coord, y coord, z coord},
    {x coord, y coord, z coord}
};

new rand = random(sizeof(RandomSpawns));
CreatePickup(model, type, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2], 0);
You can also do it many times by looping them and also putting as random the type / model.
Allright, i get that, but ive used this method with random spawns and i could only use like 3...

Another thing i need is that there be five pickups spawned every round of a game...
Reply


Messages In This Thread
Random Pickup Spawn - by airsoft - 13.03.2011, 06:48
Re: Random Pickup Spawn - by Antonio [G-RP] - 13.03.2011, 07:43
Re: Random Pickup Spawn - by airsoft - 13.03.2011, 16:01
Re: Random Pickup Spawn - by blackwave - 13.03.2011, 16:09
Re: Random Pickup Spawn - by Sasino97 - 13.03.2011, 16:12
Re: Random Pickup Spawn - by blackwave - 13.03.2011, 16:19
Re: Random Pickup Spawn - by ElChapoGuzman - 13.03.2011, 16:21
Re: Random Pickup Spawn - by Mauzen - 13.03.2011, 16:26
Re: Random Pickup Spawn - by airsoft - 13.03.2011, 16:29
Re: Random Pickup Spawn - by airsoft - 13.03.2011, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)