[ASK] tutorial membuat scoreboard metahook/acg di amxmodx - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Saturday, 03 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » AMX Mod X » Scripting » Code Snippets/Tutorials » [ASK] tutorial membuat scoreboard metahook/acg di amxmodx
[ASK] tutorial membuat scoreboard metahook/acg di amxmodx
Grade: Copral PriambudiDate: Friday, 30 January 15, 5:13 AM | Message # 1
Copral
Clan: Member
Experience: 17
Status: Offline
salam para senior yg saya hormati dan saya banggakan  neutral
barang kali ada yg mau berbagi ilmu cara bikin scoreboard tga, dan cara ganti font scoreboardnya ama posisi font nya sesuai selera??

trims


 
Grade: Trainee dandreanto1Date: Friday, 30 January 15, 5:39 AM | Message # 2
Trainee
Clan: Member
Experience: 2
Status: Offline
hruz pinter plugin ^^
 
Grade: Copral PredoDate: Friday, 30 January 15, 5:59 AM | Message # 3
Copral
Clan: Member
Experience: 16
Status: Offline
wah ane gk pande bikin tutor amxx
 
Grade: Commander DavidJrDate: Friday, 30 January 15, 8:21 AM | Message # 4
Commander
Clan: Executive
Experience: 2256
Status: Offline
xPhere version
Code
#include <acg>
#include <amxmodx>
#include <amxmisc>

const SB_TGA = 1;
const SB_FONT = 1;

public plugin_precache()
{
     precache_generic("scoreboard.tga");
}

public client_putinserver(id)
{
     set_task(1.0, "Task_InitFont", id);
     set_task(1.0, "Task_ShowScoreboard", id, _, _, "b");
}

public Task_InitFont(id)
{
     acg_initfont(id, "Arial", 16, 0, 0, 0, SB_FONT); // index, font file, size, bold, italic, underline, channel
}

public Task_ShowScoreboard(id)
{
     acg_drawtga(id, "scoreboard.tga", 255, 255, 255, 200, 0.5, 0.015, 0, 0.0, 0.0, 0.0, 0.0, SB_TGA); // id, targa file, red, green, blue, alpha, coord x, coord y, center, effects, fadintime, fadouttime, fxtime, holdtime, channel)
     acg_drawtext(id, 0.5, 0.015, "Scoreboard", 255, 255, 255, 200, 0.0, 0.0, 0.0, 0, 0, 0, 0, SB_FONT) //id, coord x, coord y, text, color red, color green, color blue, color alpha, fadeintime, fadouttime, holdtime, center, style, inlinecolor, background, channel
}


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral PriambudiDate: Friday, 30 January 15, 1:06 PM | Message # 5
Copral
Clan: Member
Experience: 17
Status: Offline
thx mastah biggrin ,
btw, yg atur posisi font bagian mana?


 
Grade: Copral callmetoto2008Date: Friday, 30 January 15, 2:48 PM | Message # 6
Copral
Clan: Donator
Experience: 11
Status: Offline
Itu udah jelas disebutin ama om David..

Codeacg_drawtext(id, 0.5, 0.015, "Scoreboard", 255, 255, 255, 200, 0.0, 0.0, 0.0, 0, 0, 0, 0, SB_FONT)

Yang ane kasih warna merah itu posisi atur koordinat font.
0.5 posisi paling tengah
0.015 posisi yang diatur untuk menyesuaikan arah atas atau kebawah..

Added (30 January 15, 12:30 PM)
---------------------------------------------
Om david, kenapa pake perintah constituen untuk baris ini?

const SB_TGA = 1;
const SB_FONT = 1;

Dalam AMX situasi seperti apa sebenarnya digunakan constituen?
Saya tidak mengerti penggunaan constituen ini, biasanya kan kalo mau mereplace penamaan dalam code bisanya digunakan prepocessor #define.. Ini yang saya mengerti.


Message edited by callmetoto2008 - Friday, 30 January 15, 2:48 PM
 
Grade: Commander DavidJrDate: Friday, 30 January 15, 4:07 PM | Message # 7
Commander
Clan: Executive
Experience: 2256
Status: Offline
Define hanya di pakai sekali dalam memory, sedangkan const disimpan ke memory semuanya.

const test = 1;

Log(test)
Log(test)

Disimpan 2x

Sulit dijelaskan sih om Toto, saya jg dapat infonya disini
https://forums.alliedmods.net/showthr....&page=2


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Copral callmetoto2008Date: Friday, 30 January 15, 4:18 PM | Message # 8
Copral
Clan: Donator
Experience: 11
Status: Offline
Ohh gitu yah bang?? baik, saya obok2 dulu ini alliedmod.  cool
 
Grade: Commander DavidJrDate: Friday, 30 January 15, 6:30 PM | Message # 9
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote callmetoto2008 ()
Ohh gitu yah bang?? baik, saya obok2 dulu ini alliedmod. cool
Sip biggrin


posted via BlackBerry

Personal Site | CSF Website
 
Forum » AMX Mod X » Scripting » Code Snippets/Tutorials » [ASK] tutorial membuat scoreboard metahook/acg di amxmodx
Page 1 of 11
Search:

Mirum
sample map