Raised This Month: $ Target: $400
 0% 

Menu-Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lagayo
Junior Member
Join Date: Mar 2012
Old 03-06-2013 , 18:45   Menu-Help
Reply With Quote #1

how do you get a menu appears automatly every rounds? whitout a player type any comand?

thank you.
lagayo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-06-2013 , 19:28   Re: Menu-Help
Reply With Quote #2

Detect round start and then display the menu. There are plenty of threads already that explain each of these 2 things separately, it isn't that hard to combine them.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-06-2013 , 19:39   Re: Menu-Help
Reply With Quote #3

hook it to ham spawn function.

edit:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Project"
#define VERSION "1.0"
#define AUTHOR "Blizzard"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fwd_post_spawn"1);
    
}


public 
fwd_post_spawn(id)
{
    
some_menu_function(id// hook menu command here, this will show menu to player's every spawn.
    


Last edited by Blizzard_87; 03-06-2013 at 22:55.
Blizzard_87 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2013 , 02:09   Re: Menu-Help
Reply With Quote #4

Quote:
Originally Posted by Blizzard_87 View Post
hook it to ham spawn function.
Just to clarify, the answer to the question is not "hook spawn". The correct answer is "hook new round". Huge difference (especially since you don't technically know what game s/he is playing). Search "new round" in the tutorials section.
__________________
fysiks is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-07-2013 , 04:26   Re: Menu-Help
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Just to clarify, the answer to the question is not "hook spawn". The correct answer is "hook new round". Huge difference (especially since you don't technically know what game s/he is playing). Search "new round" in the tutorials section.
no worries my bad. want me to edit my post with the new round code?
Blizzard_87 is offline
Reply



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 21:44.


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