need help with OnPlayerUpdate
#3

considering the new update there is a much better way of doing this then checking it every update.
or even by a timer ! you should consider that.

pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    TrailerIsAttached[playerid] = IsTrailerAttachedToVehicle(vehicleid)
    if(IsTrailerAttachedToVehicle(vehicleid)==1)//trailer attached
    {
        SendClientMessage(playerid, COLOR_MAXZONE, "Test");
    }else if(IsPlayerInAnyVehicle(playerid) && TrailerIsAttached[playerid] == 1) return SendClientMessage(playerid, COLOR_MAXZONE, "Nu mai esti test.");
    return 1;
}
Reply


Messages In This Thread
need help with OnPlayerUpdate - by danielpalade - 24.04.2015, 23:22
Re: need help with OnPlayerUpdate - by Abagail - 24.04.2015, 23:45
Re: need help with OnPlayerUpdate - by park4bmx - 24.04.2015, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)