28.07.2013, 21:03
Tem um exemplo desse cуdigo no gamemode LVDM, que vem com o SA-MP Server:
Para 3 pontos seria:
pawn Код:
// Topo:
new Float:gCopPlayerSpawns[2][3] = { // tabela de 2 coordenadas de 3 valores
{2297.1064,2452.0115,10.8203},
{2297.0452,2468.6743,10.8203}
};
// Cуdigo de spawn:
new rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
pawn Код:
new Float:gCopPlayerSpawns[3][3] = {
{2297.1064,2452.0115,10.8203},
{2297.1064,2452.0115,10.8203},
{2297.0452,2468.6743,10.8203}
};