SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 15/01/2011, 02:17 PM   #1
Huge Clucker
Join Date: Nov 2009
Posts: 200
Reputation: 0
Default random spawns

i'm making a hydra dm, and i want to do the random spawns... when player types /hydradm he gots teleported and putted to hydra... I dont know how to make a random spawns with vehicle, so please help me here is my try:

pawn Code:
new Float:hydraspot[][7] =
    {166.3318,2469.0935,17.2020,346.1217}, // ferma

new Spawn = random(sizeof(hydraspot));
hydra[playerid] = CreateVehicle(520,hydraspot[Spawn][0],hydraspot[Spawn][1],hydraspot[Spawn][2]);

i get some warning, and random spawn not working.
jaksimaksi is offline  
Old 15/01/2011, 02:28 PM   #2
Huge Clucker
*IsBack's Avatar
Join Date: Dec 2010
Posts: 237
Reputation: 3
Default Re: random spawns

it should be
new Float:hydraspot[7][3] =

if I'm right..
From now on, I'm on this account: SiJ
*IsBack is offline  
Old 15/01/2011, 03:26 PM   #3
Huge Clucker
Join Date: Nov 2009
Posts: 200
Reputation: 0
Default Re: random spawns

not working...
jaksimaksi is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
random spawns [Lsrcr]Rafa Help Archive 1 12/09/2010 08:13 PM
Random Spawns [WF]Demon Help Archive 2 05/03/2010 12:14 AM
Random Spawns + Previous Spawns XtremeChio Help Archive 2 01/09/2009 01:57 PM

All times are GMT. The time now is 07:50 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.