14.01.2015, 00:41
pawn Код:
CMD:abrirportabase(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -882.71, 2759.00, 44.97))
{
if(Player[playerid][Organizacao] == GangueGrove)
{
KillTimer(timerportagrove);
MoveObject(portagrove,-882.71, 2759.00, 44.97,1, 0.00, 0.00, -92.64);
timerportaGrove = SetTimer("fecharportagrove", 5000, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, -422.40, 612.66, 15.64))
{
if(Player[playerid][Organizacao] == GangueBallass)
{
KillTimer(timerportaballass);
MoveObject(portaballass,-422.40, 612.66, 15.64,1, 0.00, 0.00, -15.54);
timerportaballass = SetTimer("fecharportaballass", 5000, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 774.68, 1621.78, 4.74))
{
if(Player[playerid][Organizacao] == GangueVagos)
{
KillTimer(timerportavagos);
MoveObject(portavagos,774.68, 1621.78, 4.74,1, 0.00, 0.00, -96.30);
timerportavagos = SetTimer("fecharportavagos", 5000, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, -511.81, 1898.73, 86.32))
{
if(Player[playerid][Organizacao] == GangueAztecas)
{
KillTimer(timerportaaztecas);
MoveObject(portaaztecas,-511.81, 1898.73, 86.32,1, 0.00, 0.00, -241.74);
timerportaaztecas = SetTimer("fecharportaaztecas", 5000, 0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, -268.2000100,2610.8999000,1051.6000000))
{
if(Player[playerid][Organizacao] == Policia)
{
KillTimer(timerportapolicialp);
MoveObject(portapolicialp,-268.2002000,2610.9004000,1051.6000000,1, 0.00, 0.00, 2.7470000);
timerportapolicialp = SetTimer("fecharportapolicialp", 5000, 0);
}
}
return 1;
}
To pelejando aqui e nгo consigo fazer funcionar x.x ... jб tentei de varias formas e nada... onde foi que eu errei?