24.04.2015, 23:45
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.
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;
}