AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block team select (https://forums.alliedmods.net/showthread.php?t=296440)

ish12321 04-21-2017 03:23

Block team select
 
Hello,
Actually I wished to block player choose teams through my plugin
I was successful to do completely with hooking chooseteam and jointeam but how to hook the menu that appears when plaeyr joins server for teams.
I wish to hook that and if(codition) { remove the menu } :-\

Please someone tell any way ?

Natsheh 04-21-2017 05:06

Re: Block team select
 
Already been done thousands time search

ish12321 04-21-2017 05:46

Re: Block team select
 
If you know solution pls atleast attach link

wickedd 04-21-2017 06:18

Re: Block team select
 
Here you go

Craxor 04-21-2017 12:13

Re: Block team select
 
Just search on the google how to do it and learn from another plugin, don't take things easy.

Code:
#include <amxmodx> public plugin_init( ) {     register_clcmd( "chooseteam" , "test" );     register_clcmd("jointeam", "test"); } public test( id ) return PLUGIN_HANDLED;

edon1337 04-21-2017 12:18

Re: Block team select
 
Quote:

Originally Posted by Craxor (Post 2514092)
Code:
#include <amxmodx> public plugin_init( ) {     register_clcmd( "chooseteam" , "test" );     register_clcmd("jointeam", "test"); } public test( id ) return PLUGIN_HANDLED;

Quote:

Originally Posted by ish12321 (Post 2514005)
I was successful to do completely with hooking chooseteam and jointeam but how to hook the menu that appears when plaeyr joins server for teams.


Craxor 04-21-2017 12:33

Re: Block team select
 
Take a look into this code: https://forums.alliedmods.net/showthread.php?t=69819

ish12321 04-21-2017 21:03

Re: Block team select
 
Quote:

Originally Posted by Craxor (Post 2514103)

Already did ...
But in that how to block that menu i was unable to understand
There were two register message which is needed


All times are GMT -4. The time now is 17:51.

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