help do a background check
#1

help do a background check
PHP код:
if(if the car is damaged visual)
{
SendClientMessage(playerid,COLOR_WHITE,"write to the player if the car has visual damage")
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"write to the player if the car has no visual damage")

Thanks in advance
Reply
#2

up up up
Reply
#3

Quote:

new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health < 1000)
{
SendClientMessage(playerid,COLOR_WHITE,"Your vehicle is damaged!")
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Your vehicle is not damaged!");
}

Normally when you hit something you lose veh hp & visual damage.
I don't think there's another way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)