[ New Updates · Members · Rules · Search · RSS ]
Page 1 of 11
Forum » DevCen (Developer Center) » AMX Mod X » Scripting Help » Custom Hud (mau master kek, nyubi kek, bantuin dong :D)
Custom Hud
ir-ham97Date: Saturday, 20 Dec 2014, 7:35 PM | Message # 1
New Member
Group: Member
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
apakah yang salah dari plugin yang daku coba buat ini :(


problem:
-hp cuma muncul setelah kena damage
gimana cara fixnya ya???

maap kalo acak2kan, first time bikin thread :D

help me please.... :D
 
DavidJrDate: Sunday, 21 Dec 2014, 7:18 AM | Message # 2
CEO
Group: Executive Team
Messages: 471
Awards: 0
Reputation: 224
Status: Offline
set_task(1.0,"drawhealth",id) gak kepake tuh, di client_putinserver kasih event_Health(id)

Code
public client_putinserver(id)  
  {  
      set_task(1.0,"drawPNG",id)  
     event_Health(id)
  }


InitFont cuma boleh sekali aja, bikin task baru di client_putinserver untuk initfont


Auto Aim Bot Detector: http://youtu.be/NiKY0rG7cNg
 
callmetoto2008Date: Wednesday, 31 Dec 2014, 5:45 PM | Message # 3
New Member
Group: Member
Messages: 5
Awards: 0
Reputation: 0
Status: Offline
Coba seperti ini gan  kiki

public event_Health(id)
{
new  Float:health, hp_hud[32]
format(hp_hud, 31, "Health Point %d Remaining", pev(id, pev_health, health))
BX_InitFont(id, "arial", 0, 0, 0, 20, 1);
BX_DrawFont(id, hp_hud, 255, 255, 255, 0.7, 1, 0.5, 0.985, 0, 1)
BX_DrawPNG(id, "hud", 255, 255, 255, 1.0, 0, 0, 0, 0.0, 0.0, 0, 2)
}

~jadi tidak harus menambah 2 perintah set_task..


Seorang pemula yang mencoba belajar dengan berbagai keterbasannya. :)

Message edited by callmetoto2008 - Wednesday, 31 Dec 2014, 6:03 PM
 
Forum » DevCen (Developer Center) » AMX Mod X » Scripting Help » Custom Hud (mau master kek, nyubi kek, bantuin dong :D)
Page 1 of 11
Search:

Create a free website with uCoz