20.12.2012, 20:08
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;
}