|
Post by K!nG on Feb 7, 2018 18:48:11 GMT 5.5
Hey Cs India Members , Hope You fine . Well , Now I will Make Tutorial About "How to Add Hudmessage When You Bought Any Extra Item" Example : We Have Golden Ak47 on Extra Items Menu with 30 Ammo Packs , When You Bought it will Show
Hud Message with Info :
I hope You understand , So Let Start . Please , Follow me Step by Step ...
Step 1 : Open Your zp_extra_goldenak.sma Or Any another extra item source file ...
Step 2 : Find public zp_extra_item_selected
public zp_extra_item_selected(player, itemid) { if ( itemid == g_itemid ) { if ( user_has_weapon(player, CSW_AK47) ) { drop_prim(player) }
give_item(player, "weapon_ak47") client_print(player, print_chat, "[ZP] You bought Golden Ak - 47")
g_HasAk[player] = true; } } Step 3 : After The Line
client_print(player, print_chat, "[ZP] You bought Golden Ak - 47")
Put :
set_hudmessage(0, 0, 255, -1.0, 0.33, 0, 6.0, 12.0)
show_hudmessage(id, "[You Bought Golden Ak47]^n|Cost : 30 AP|" Then Compile it Without Any Wrongs ...
|
|