04.11.2012, 13:36
PHP код:
for(new c = 0; c < MAX_PLAYERS; c++)
{
new vehicleid = GetPlayerVehicleID(c);
if(IsPlayerInAnyVehicle(c))
{
if(GetVehicleModel(vehicleid) == 515)
{
new vtrailer = GetVehicleTrailer(vehicleid);
if(GetVehicleModel(vtrailer == 584))
{
new Float:health;
GetVehicleHealth(vtrailer, health);//vtrailer = trailer
SetVehicleHealth(vtrailer, health-1);//vtrailer = trailer
}
}
}
}