AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Stop menu being showed in each round! (https://forums.alliedmods.net/showthread.php?t=185146)

kketan77 05-13-2012 08:55

[Help] Stop menu being showed in each round!
 
There is "class menu" which appear after the team selection. Then this menu keep coming at each & every round.

How can i stop this menu from being showed in each round?


edited: solved

<VeCo> 05-13-2012 08:56

Re: [Help] Stop menu being showed in each round!
 
Hook jointeam and chooseteam commands.

kketan77 05-13-2012 09:19

Re: [Help] Stop menu being showed in each round!
 
can you give me example?

<VeCo> 05-13-2012 09:26

Re: [Help] Stop menu being showed in each round!
 
Something like this:

PHP Code:

register_clcmd("jointeam","player_jointeam")
register_clcmd("chooseteam","player_jointeam")
 
// ...
 
public player_jointeam(id)
{
static 
arg[2]
read_argv(1,arg,charsmax(arg))
 
switch(
arg[0])
{
case 
'1'// TERRORIST
case '2'// CT
case '3'// Spectator
}




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

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