22.10.2015, 12:08
Actually it is very easy.
Greekz
PHP код:
stock const Float:spawns[][3] = {
{0.0, 0.0, 0.0},
{3102.0, 3102.0, 3102.0}
//Just fill here all x,y,z coords
};
//Then under OnPlayerSpawn
new idx = pInfo[playerid][Spawn];
/*
You create the Spawn index in your PlayerInfo Array.
Then you can set it from 0 to x (x=the amount of indexes in the spawn array)
*/
SetPlayerPos(playerid,spawns[idx][0],spawns[idx][1],spawns[idx][2]);
/*
Here you set the player to the x,y,z coords you put in the array.
*/