04.11.2012, 12:46
pawn Код:
for(new c = 0; c < MAX_PLAYERS; c++)
{
new vehicleid = GetPlayerVehicleID(c);
if(IsPlayerInAnyVehicle(c))
{
if(GetVehicleModel(vehicleid) == 515)
{
if(GetVehicleModel(GetVehicleTrailer(vehicleid))== 584)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
SetVehicleHealth(vehicleid, health-1);
}
}
}
}
EDIT POST UPDATED