Random Pickups Spawns
#1

Hey guys, I made a filterscript that currently should only spawns randomly a Pickup. PAWNO says me that the code is right, but I can't see the Pickup in any place I go.
I want to precise that I put all the code in the callback "public OnFilterscriptInit()" so maybe that's why it doesn't work (but that should ).

Anyway, here is the code, what's wrong whith it?

Код:
 new Float:RandomSpawns[0][3] =
 {
 {331.0169,2592.1196,17.4321},
 {-36.2954,2349.6096,24.3026},
 {549.1324,2273.1812,34.7290},
 {-393.5911,2488.7756,41.2797},
 {-552.6669,2593.8730,53.9348},
 {-246.0845,2580.4900,63.5703}
 };

new drugs;
new rand = random(sizeof(RandomSpawns));
drugs = CreatePickup(1279, 1, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2], 0);
Thanks.
Reply


Messages In This Thread
Random Pickups Spawns - by Steeve_Smith - 10.07.2011, 00:56
Re: Random Pickups Spawns - by Babul - 10.07.2011, 10:19
Re : Random Pickups Spawns - by Steeve_Smith - 10.07.2011, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)