05.02.2014, 20:25
Example
You store all spawns in this array
then In onplayerspawn (example) you will use random function using the spawns array
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}
};
pawn Код:
new rand = random(sizeof Spawns);
SetPlayerPos(playerid,Spawns[rand][0],Spawns[rand][1],Spawns[rand][2]);