01.03.2014, 06:31
Hello. So I'm trying to create pickups that randomly spawn on a custom island. Once they spawn, a player will receive a random weapon (must be specified. So they don't get miniguns, etc.) I'd like to learn how to properly place random pickups in a array and randomly generate them each round of the match, and they will give the player a random weapon.
I can easily get the coordinates, but the issue is to randomize them every match. I also need to know how to make the pickups give weapons.
What would this code be? Instead of coordinates, would it be "CreatePickup"?
If you need more information, let me know. Thanks for any assistance.
I can easily get the coordinates, but the issue is to randomize them every match. I also need to know how to make the pickups give weapons.
pawn Код:
new Float:rSpawns[][] =
{
{3878.7217,466.0317,7.4426},
{3726.5127,263.8537,7.4798},
{3695.7917,421.2384,7.4630},
{3640.9050,344.2969,7.4534},
{3967.2261,423.8549,28.4928},
{3928.4590,301.3971,38.8480}
};
If you need more information, let me know. Thanks for any assistance.