Raised This Month: $ Target: $400
 0% 

show menu every 3 rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KiloV92
New Member
Join Date: Jan 2024
Old 01-13-2024 , 03:23   show menu every 3 rounds
Reply With Quote #1

i know we cant pass id to global event . but how can i do this ?

new g_iAdMenuUsage[33] = 0

public plugin_init()
{
register_logevent( "Logevent_RoundStart", 2, "1=Round_Start" );
register_clcmd("say /adminmenu", "clcmd_adminmenu")
}
public Logevent_RoundStart(id)
{
g_iAdMenuUsage[id] ++

}
public clcmd_adminmenu(id)
{
if(g_iAdMenuUsage[id] > 3)
{

show_menu(id)
}
}
KiloV92 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode