09.12.2009, 01:26
This should be posted in script request section although to do this:
Create a loop or timer and make an expression where it checks the vehicle health for 300 or below; example:
or by using foreach by ***** (awesome)
Create a loop or timer and make an expression where it checks the vehicle health for 300 or below; example:
pawn Код:
for(new i=0 <MAX_PLAYERS; i++)
{
if(GetVehicleHealth(GetPlayerVehicleID) <= 300)
{
//his hp is lower than 300
}
}
pawn Код:
foreach(Player, i)
{
if(GetVehicleHealth(GetPlayerVehicleID) <= 300)
{
//his hp is lower than 300
}
}