08.08.2011, 01:28
Encontrei
alguem pode fazer pra mim? so sei por coordenada completa
Coord Pista: AddPlayerClass(265,1920.2704,-1416.8081,13.5703,182.7669,0,0,0,0,0,0); // pista skate
Coord Park: AddPlayerClass(106,1956.4116,-1241.7155,19.8134,177.8527,0,0,0,0,0,0); // /parqe gleen
pawn Код:
stock IsPlayerInParqueGlen(playerid)
{
new Float:X,
Float:Y,
Float:Z;
GetPlayerPos(playerid, X, Y, Z);//Pega a Posiзгo.
if(X >= 1876.7298 && Y >= -1145.8150 && X <= 2056.8627 && Y <= -1250.8861)//Verifica se ele esta na GangZone.
{
return 1;//Isto significa que ele ESTA na GangZone.
}
return 0;//Isto significa que ele NГO ESTA na GangZone.
}
stock IsPlayerInPistaDeSkate(playerid)
{
new Float:X,
Float:Y,
Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= 1862.1929 && Y >= -1351.2478 && X <= 1976.6811 && Y <= -1450.5447)
{
return 1;
}
return 0;
}
Coord Pista: AddPlayerClass(265,1920.2704,-1416.8081,13.5703,182.7669,0,0,0,0,0,0); // pista skate
Coord Park: AddPlayerClass(106,1956.4116,-1241.7155,19.8134,177.8527,0,0,0,0,0,0); // /parqe gleen