[Ajuda] Detectar se o Trailer й do player
#7

pawn Код:
new bool: a[MAX_PLAYERS];

public OnPlayerUpdate(playerid) {
    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid) && !a[playerid])) {
        SendClientMessage(playerid, -1, "Um trailer foi anexado ao veнculo");
        if(GetVehicleTrailer(GetPlayerVehicleID(playerid) == InfoEmprego[playerid][Carga])) {
            //enjoy;
            a[playerid] = true; //evitar flood.
        }
    }
    return true;
}
Reply


Messages In This Thread
Detectar se o Trailer й do player - by EditPawn - 20.12.2012, 18:01
Re: Detectar se o Trailer й do player - by BielCOP - 20.12.2012, 19:02
Re: Detectar se o Trailer й do player - by @FatalFormat - 20.12.2012, 19:12
Re: Detectar se o Trailer й do player - by GTO.DoDo - 20.12.2012, 19:22
Re: Detectar se o Trailer й do player - by EditPawn - 20.12.2012, 19:44
Re: Detectar se o Trailer й do player - by GTO.DoDo - 20.12.2012, 19:48
Re: Detectar se o Trailer й do player - by FeelLikeASir_ - 20.12.2012, 20:08
Re: Detectar se o Trailer й do player - by EditPawn - 20.12.2012, 20:12

Forum Jump:


Users browsing this thread: 3 Guest(s)