Car Health[Problem]
#8

if i hit the car more this happens the message appears like 3 times do i need a timer?

PHP код:
        public OnVehicleDamageStatusUpdate(vehicleid, playerid)
                {
                new 
Float:v;
                
GetVehicleHealth(vehicleid, v);
                if(
v <= 300) { TogglePlayerControllable(playerid, 0); {
                
SendClientMessage(playerid, -1, "Motorul sa stricat,poti suna mecanicul!");
                
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, 0, 0, 0, VEHICLE_PARAMS_ON, 0, 0);
                
SetVehicleHealth(vehicleid, 300);
                }
                }
                return 
1;
                } 
Reply


Messages In This Thread
Car Health[Problem] - by Dan_Barocu - 27.04.2012, 11:48
Re: Car Health[Problem] - by antonio112 - 27.04.2012, 12:18
Re: Car Health[Problem] - by milanosie - 27.04.2012, 12:21
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:45
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:47
Re: Car Health[Problem] - by zbt - 27.04.2012, 13:50
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:15
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:44
Re: Car Health[Problem] - by zbt - 27.04.2012, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)