Quote:
Originally Posted by Kuddy
Tem um exemplo desse cуdigo no gamemode LVDM, que vem com o SA-MP Server:
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
Para 3 pontos seria:
pawn Код:
new Float:gCopPlayerSpawns[3][3] = { {2297.1064,2452.0115,10.8203}, {2297.1064,2452.0115,10.8203}, {2297.0452,2468.6743,10.8203} };
|
Boa cara valeo, tava procurando isso para vбrias ocasiхes. + REP ae