Raised This Month: $ Target: $400
 0% 

Hook Team Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 05-24-2018 , 10:31   Hook Team Menu
Reply With Quote #1

Code:
RegisterHookChain(RG_HandleMenu_ChooseTeam, "RG_Hook_ChooseTeam", false);
Hello,
I am using this above hook to block team change/force some specific team on some specific conditions.
Recently viewed smiley's pugmod. It uses some another method :
Code:
register_menucmd(-2,MENU_KEY_1|MENU_KEY_2|MENU_KEY_5|MENU_KEY_6,"fnTeamSelect"); register_menucmd(register_menuid("Team_Select",1),MENU_KEY_1|MENU_KEY_2|MENU_KEY_5|MENU_KEY_6,"fnTeamSelect");

Are the two equivalent ? If so, could someone explain me what the -2 in the first line stands for ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 05-24-2018 at 10:31.
ish12321 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 04:34.


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