guys need help - 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)
+--- Thread: guys need help (
/showthread.php?tid=386648)
guys need help -
Gamer_007 - 21.10.2012
Hey guys i want help in 3dlabel,
How can i blink the 3dlabel health bar when the car's god mod on
Re: guys need help -
XtremeR - 21.10.2012
well, i think u need OnPlayerVehicleDamage
https://sampforum.blast.hk/showthread.php?tid=276059
and in that do this:
pawn Код:
public OnPlayerVehicleDamage(playerid,vehicleid,Float:Damage)
{
Update3DTextLabelText(labelid, TheNewColorHere, "Health and Stuff here");
SetTimer("normal", 1000, false); //setting the color back to normal
return 1;
}
pawn Код:
forward normal();
public normal()
{
Update3DTextLabelText(labelid, OldColorHere, "Health and Stuff here");
}
hope that helps
Re: guys need help -
Gamer_007 - 21.10.2012
My question is how i blink the 3d text not to create it.i already created it
Re: guys need help -
XtremeR - 21.10.2012
what if you create a new function like
pawn Код:
forward 3dColorChange(textdraw);
public 3dColorChange(textdraw)
{
Update3DTextLabelText(labelid, ColorHere, "Health and Stuff here");
return 1;
}
pawn Код:
public OnPlayerVehicleDamage(playerid,vehicleid,Float:Damage)
{
SetTimerEx("3dColorChange", 5000, true, "s", Example);
return 1;
}
it will change the color after 5 seconds
Re: guys need help -
Gamer_007 - 21.10.2012
u dont understand me.Like i created the 3dlabel health for Vehicle okay??
then if the Car is on god mod,it starts blinking
Re: guys need help -
Gamer_007 - 21.10.2012
sorry for spam but can anyone help me in this?