need example
#5

Example

You store all spawns in this array
pawn Код:
new Float:Spawns[5][4] ={
    {2109.4585,919.2332,10.8203,209.6226},
    {2323.5815,1283.3816,97.4613,252.0876},
    {2180.7927,1285.2844,42.7996,83.3940},
    {1479.1537,2120.1230,24.1066,247.9501},
    {1779.4329,2821.8000,8.3359,20.4845}
};
then In onplayerspawn (example) you will use random function using the spawns array

pawn Код:
new rand = random(sizeof Spawns);
        SetPlayerPos(playerid,Spawns[rand][0],Spawns[rand][1],Spawns[rand][2]);
Reply


Messages In This Thread
need example - by Equuuuin0X - 05.02.2014, 18:18
Re: need example - by Ghazal - 05.02.2014, 18:46
Re: need example - by Equuuuin0X - 05.02.2014, 20:16
Re: need example - by Vanter - 05.02.2014, 20:21
Re: need example - by HammerHeadZ - 05.02.2014, 20:25
Re: need example - by Equuuuin0X - 05.02.2014, 20:51
Re: need example - by Equuuuin0X - 05.02.2014, 21:15
Re: need example - by Equuuuin0X - 07.02.2014, 00:33

Forum Jump:


Users browsing this thread: 1 Guest(s)