AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   teams & time (https://forums.alliedmods.net/showthread.php?t=144046)

zombieplague 11-28-2010 06:55

teams & time
 
how to remove the team selection menu when a user is connected to the server ?

how to check if it was the third day already ?

like when a user type /timing then the time function start. when it is the third day it show the player hey message.

ANTICHRISTUS 11-28-2010 13:31

Re: teams & time
 
Quote:

Originally Posted by zombieplague (Post 1358686)
how to remove the team selection menu when a user is connected to the server ?

http://forums.alliedmods.net/showthread.php?t=69819
http://forums.alliedmods.net/showthread.php?t=51098 :wink:

zombieplague 11-28-2010 23:14

Re: teams & time
 
thanks for your help though. but i don't need these. i just want to know how to block the team selection menu when a player haven't something etc and display the menu again when he has done that. is like function.

nikhilgupta345 11-28-2010 23:40

Re: teams & time
 
register system???


anyway, would it work hooking jointeam and chooseteam and then returning plugin_handled if they haven't done whatever you want them to do?

fysiks 11-28-2010 23:57

Re: teams & time
 
Just auto join to spectator then when you want them to see the menu show the menu again.

zombieplague 11-29-2010 05:23

Re: teams & time
 
i want like when they joined the server. they can't see the team selection menu.

fysiks 11-29-2010 12:56

Re: teams & time
 
Quote:

Originally Posted by fysiks (Post 1359279)
Just auto join to spectator then when you want them to see the menu show the menu again.


zombieplague 11-29-2010 23:19

Re: teams & time
 
PHP Code:

public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
            return 
PLUGIN_HANDLED

     cs_set_user_team
id)

     return 
PLUGIN_HANDLED


? is it correct ?

fysiks 11-30-2010 00:28

Re: teams & time
 
Quote:

Originally Posted by zombieplague (Post 1359968)
PHP Code:

public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
            return 
PLUGIN_HANDLED

     cs_set_user_team
id)

     return 
PLUGIN_HANDLED


? is it correct ?

I doubt it. Look at plugins that do it already.

abdul-rehman 11-30-2010 02:20

Re: teams & time
 
Quote:

Originally Posted by zombieplague (Post 1359968)
PHP Code:

public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
            return 
PLUGIN_HANDLED

     cs_set_user_team
id)

     return 
PLUGIN_HANDLED


? is it correct ?

This will give you a tag mismatch error so you need to use CS_TEAM_SPECTATOR

Btw try delaying the function by 0.1 secs after client_putiinserver


All times are GMT -4. The time now is 11:21.

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