SA-MP Forums Archive
Need Fs Vehicle When Crashed hp lower than 300 can drive and send messege to rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Fs Vehicle When Crashed hp lower than 300 can drive and send messege to rep (/showthread.php?tid=112518)



Need Fs Vehicle When Crashed hp lower than 300 can drive and send messege to rep - jame20702 - 08.12.2009

Vehicle When Crashed hp lower than 300 can drive and send messege to repair car


Re: Need Fs Vehicle When Crashed hp lower than 300 can drive and send messege to - lolumadd - 09.12.2009

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:

pawn Код:
for(new i=0 <MAX_PLAYERS; i++)
{
if(GetVehicleHealth(GetPlayerVehicleID) <= 300)
{
//his hp is lower than 300
}
}
or by using foreach by ***** (awesome)

pawn Код:
foreach(Player, i)
{
if(GetVehicleHealth(GetPlayerVehicleID) <= 300)
{
//his hp is lower than 300
}
}