16.04.2017, 20:10
Help me :confuso::confuso::confuso::confuso::confuso:
What to do to not flood the message when the vehicle reaches 280 health
What to do to not flood the message when the vehicle reaches 280 health
PHP код:
if(IsPlayerInAnyVehicle(playerid))
{
new Float:Vehicle, id = GetPlayerVehicleID(playerid);
GetVehicleHealth(id, Vehicle);
if(Vehicle <= 280.0 )
{
SetVehicleHealth(id, 280.0);
new engine, lights, alarm, doors, bonnet, boot, objective;
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine) SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective); // engine off
SendClientMessage(playerid, -1," Text flood ? :(");
}
}