Raised This Month: $ Target: $400
 0% 

would like help with get_user_menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 06:19   would like help with get_user_menu
Reply With Quote #1

I would just like to know the proper way to use get_user_menu in an if statement, say a user being in the skin selection menu. If anyone could help me that would be great.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-13-2004 , 10:48  
Reply With Quote #2

i bet im wrong but i think its 'cs_get_user_menu'
dont take my word for it!
__________________
Burnzy is offline
Send a message via AIM to Burnzy
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 13:28  
Reply With Quote #3

cs_get_user_menu isn't a function anywhere in the includes. I just want to do a detection, I wrote an auto-assign script that doesn't select skins (cuz of a menu closing problem) so now I want to do a detection to detect whether a user still has the skin menu open after 30 seconds basically stating that he is AFK and did not select a skin in time. and get_user_menu is the only way I think this might be possible, and now it seems like my timer (I'm using get_user_time) will lock up the server when it starts to run through the loop for the checks until a player reaches the certain seconds he is in the server (it locks up before complete connect), someone mind helping me with code that will do everything I'm trying to do, cuz it's pissing me off, lol
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 14:15  
Reply With Quote #4

alright, I came up with a more efficient way of doing my timer check (much more stable) but I still need to detect whether the player is in the skin selection menu or not
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-13-2004 , 14:20  
Reply With Quote #5

well in the 'lastmanbets' plugin
they use plain our get_user_menu
__________________
Burnzy is offline
Send a message via AIM to Burnzy
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 14:21  
Reply With Quote #6

maybe I'll look into it...
what I have going so far is...a set_task after 35 seconds
Code:
public check_time(id){     new menu,keys     get_user_menu(id,menu,keys)     /*if(menu==)     {         server_cmd("kick #%d ^"You failed to select a skin in time^"",id)     }*/ }

I know that code is wrong, I'm not sure entirely how to do this right, can anybody help? right now in testing it calls the function after 10 seconds (I don't wanna wait 30 seconds for it to execute every test >.< and yes, I know there's comments in there, but of course if you read them the condition has nothing cuz I'm not sure what to do with it!
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 06-13-2004 , 15:52  
Reply With Quote #7

That'll never work... They can stay at the select team thing as long as they want... I'm not sure, but do some checking on what ther "model" infokey is while they're on the menu
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 15:56  
Reply With Quote #8

could you give me an example? would it be get_user_info or something? and I want this to work in amx 9.8 as well so, cs_get_user_model is out of the question (at least I think)...can someone please help me?
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 06-13-2004 , 19:20  
Reply With Quote #9

get_user_info(id, "model")
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-13-2004 , 19:23  
Reply With Quote #10

wouldn't that always return "gordon" tho?
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Reply


Thread Tools
Display Modes

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 14:54.


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