[FilterScript] HidBar - Displaying the damage above players' heads!
#21

Whoh Nice ! But i need it for a car xD
Reply
#22

Quote:
Originally Posted by Michael@Belgium
View Post
Whoh Nice ! But i need it for a car xD
You might be able to do it yourself by looking at the code. Do notice that the vehicle health decreases very rapidly when on fire, so you might wish not to execute the code there. You'll most probably need to find another callback, as there isn't anything like OnPlayerUpdate for vehicles.
Reply
#23

Quote:
Originally Posted by Hiddos
View Post
You might be able to do it yourself by looking at the code. Do notice that the vehicle health decreases very rapidly when on fire, so you might wish not to execute the code there. You'll most probably need to find another callback, as there isn't anything like OnPlayerUpdate for vehicles.
Mmm... ok i gonna edit a few things and hope it works x)
Reply
#24

another awesome release hiddos
Reply
#25

Quote:
Originally Posted by Hiddos
View Post
So I made them for nothing?
Not quite, I just found Turty Turtle useful as finding hackers when flying.

But cows kinda are useless :]. Your script are epic, but sometimes useless lol. You didn't make them for nothing, I wuw them. I actually use the turtle as an Admin Command in new mAdmin.
Reply
#26

Great Awesome, Best FS I've saw on my freaky life!!, Keep go in
Reply
#27

Quote:
Originally Posted by Michael@Belgium
View Post
Mmm... ok i gonna edit a few things and hope it works x)
Lol it just work fine when i keep it under OnPlayerUpdate()
Reply
#28

Wooh! Nice work man :P
Reply
#29

cool,nice
Reply
#30

: warning 219: local variable "Pos" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    new 
str[4];
    new 
Float:Pos[3];
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    
format(str4"%.1f"amount);
    new 
Text3D:hitbar Create3DTextLabel(str0xFF0000FFPos[0], Pos[1], Pos[2] + 0.630.00);
    
SetTimerEx("UpdateHitBar"660"iffffii"playeridamountPos[0], Pos[1], Pos[2] + 0.8160xFF0000FF);
    
SetPVarInt(playerid"hidbar_HitBar"_:hitbar 1);
    return 
1;

line is :
PHP Code:
new Float:Pos[3]; 
pleas help ?
Reply
#31

Quote:
Originally Posted by s3ek
View Post
...
PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    new 
str[4];
    new 
Float:tPos[3];
    
GetPlayerPos(playeridtPos[0], tPos[1], tPos[2]);
    
format(str4"%.1f"amount);
    new 
Text3D:hitbar Create3DTextLabel(str0xFF0000FFtPos[0], tPos[1], tPos[2] + 0.630.00);
    
SetTimerEx("UpdateHitBar"660"iffffii"playeridamounttPos[0], tPos[1], tPos[2] + 0.8160xFF0000FF);
    
SetPVarInt(playerid"hidbar_HitBar"_:hitbar 1);
    return 
1;

Reply
#32

Quote:
Originally Posted by Kolstin
View Post
PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    new 
str[4];
    new 
Float:tPos[3];
    
GetPlayerPos(playeridtPos[0], tPos[1], tPos[2]);
    
format(str4"%.1f"amount);
    new 
Text3D:hitbar Create3DTextLabel(str0xFF0000FFtPos[0], tPos[1], tPos[2] + 0.630.00);
    
SetTimerEx("UpdateHitBar"660"iffffii"playeridamounttPos[0], tPos[1], tPos[2] + 0.8160xFF0000FF);
    
SetPVarInt(playerid"hidbar_HitBar"_:hitbar 1);
    return 
1;

i change Pos to pos and this fixed !!! but thnx for help
Reply
#33

Nice and simple..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)