Posts: 10
Threads: 4
Joined: Nov 2012
Reputation:
0
E ai galera, queria pedir se vocкs tem as coordenadas limites das 3 cidades (LS, SF, LV), tou querendo fazer uma funзгo "GetPlayerCity", pra verificar se o player ta em tal cidade.
Agradeзo desde jб.
Posts: 1,124
Threads: 75
Joined: Nov 2012
pawn Код:
new City[500];
new Float:Position[4];
stock GetPlayerCity(playerid)
{
GetPlayerPos(playerid,Position[0],Position[1],Position[2]);
if(Position[0] >= 44.50 && Position[1] >= -2893.0 && Position[0] <= 2997.0 && Position[1] <= -768.0)
{
City[playerid] = "Los Santos";
}
if(Position[0] >= -1378.0 && Position[1] >= -2990.0 && Position[0] <= 1600.0 && Position[1] <= -1005.0)
{
City[playerid] = "San Fierro";
}
if(Position[0] >= 870.0 && Position[1] >= 596.50 && Position[0] <= 2997.0 && Position[1] <= 2994.0)
{
City[playerid] = "Las Venturas";
}
return City[playerid];
}
Posts: 1,124
Threads: 75
Joined: Nov 2012
vlw
Se precisar, add Skype biel_cop
Ou msn
biel_cop@live.com