[AJUDA] Da uma ajudinha aqui galera (Cancela)
#4

Antes de mais nada.

Й desnecessбrio usar dois loops : )

pawn Код:
public IsPlayerAtToll()
{
    for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,828.90002441406,-2046.8409423828,12.89999961853))
        {
            SetObjectRot(Gate1,0,0,0);
            SendClientMessage(playerid, COR_ROXO, "Vocк Pagou o Pedagio e a Cancela se Abriu.");
            SendClientMessage(playerid, COLOR_RED, "-$500");
            GivePlayerMoney(playerid, -500);
            SetTimerEx("CloseGate", 5000, false, "i", Gate1);
        }
        if(IsPlayerInRangeOfPoint(playerid,10.0,843.3994140625,-2060.498046875,12.89999961853))
        {
            SetObjectRot(Gate2,0,0,0);
            SendClientMessage(playerid, COR_ROXO, "Vocк Pagou o Pedagio e a Cancela se Abriu.");
            SendClientMessage(playerid, COLOR_RED, "-$500");
            GivePlayerMoney(playerid, -500);
            SetTimerEx("CloseGate2", 5000, false, "i", Gate2);
        }
    }
    return 1;
}
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,10.0,828.90002441406,-2046.8409423828,12.89999961853) && PedagioPago[playerid] == false)

if(IsPlayerInRangeOfPoint(playerid,10.0,843.3994140625,-2060.498046875,12.89999961853) && PedagioPago[playerid] == false)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)