Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public cmd_showmenu(id)
{
new mHandleId = menu_create("Mua Sung", "menu_handler")
menu_additem(mHandleId, "He Grenade | 800$", "1")
menu_additem(mHandleId, "AWP Magnum Sniper Rifle | 10000$", "2")
menu_display(id, mHandleId)
return PLUGIN_HANDLED
}
public fw_UpdateClientData_Post(Player, SendWeapons, CD_Handle)
{
if(!is_user_alive(Player) || (get_user_weapon(Player) != CSW_AK47 || !g_has_wp[Player]))
return FMRES_IGNORED
set_cd(CD_Handle, CD_flNextAttack, halflife_time () + 0.001)
return FMRES_HANDLED
}
public forward_CmdStart(id, uc_handle, seed)
{
if (!is_user_alive(id))
return FMRES_IGNORED
if (g_has_wp[id])
{
new wid, clip, ammo
wid = get_user_weapon(id, clip, ammo)
if (wid == CSW_AK47)
{
static Float:flNextAttack ; flNextAttack = get_pdata_float(id, m_flNextAttack, 5)
new iEnt = find_ent_by_owner(-1, "weapon_ak47", id)
new fInReload = get_pdata_int(iEnt, m_fInReload, 4)
new button = get_uc(uc_handle, UC_Buttons)
if (button & IN_ATTACK)
{
if (in_launcher[id] )
{
set_uc(uc_handle, UC_Buttons, button &= ~IN_ATTACK)
if (g_m203_loaded[id] && !fInReload)
{
launch_grenade(id)
}
}
}
}
}
return FMRES_IGNORED
}

. Nên check thêm oldbutton nữa

new button = get_uc(uc_handle, UC_Buttons)
static button
button = get_uc(uc_handle, UC_Buttons)
CSO-NST Refresh Edition đang cần thêm coder. Ai giúp đc ko?
P/s: @teobrvt1995: cậu thử đổi cái
thànhPHP:new button = get_uc(uc_handle, UC_Buttons)
xem có đc ko?PHP:static button button = get_uc(uc_handle, UC_Buttons)
Toujou Aya - My Everlasting Love






Dấu "==" trong plugin là phép so sánh bằng.cho em hỏi dấu == trong plugin co tác dụng gì? còn print_chat khi hiển thị nó màu vàng... có cách nào đổi màu cho nó không ?

