Raised This Month: $ Target: $400
 0% 

teams & time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 11-28-2010 , 23:40   Re: teams & time
Reply With Quote #1

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?
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2010 , 23:57   Re: teams & time
Reply With Quote #2

Just auto join to spectator then when you want them to see the menu show the menu again.
__________________
fysiks is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-29-2010 , 05:23   Re: teams & time
Reply With Quote #3

i want like when they joined the server. they can't see the team selection menu.
zombieplague is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-29-2010 , 12:56   Re: teams & time
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Just auto join to spectator then when you want them to see the menu show the menu again.
__________________
fysiks is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-29-2010 , 23:19   Re: teams & time
Reply With Quote #5

PHP Code:
public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
            return 
PLUGIN_HANDLED

     cs_set_user_team
id)

     return 
PLUGIN_HANDLED

? is it correct ?
zombieplague is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-30-2010 , 00:28   Re: teams & time
Reply With Quote #6

Quote:
Originally Posted by zombieplague View Post
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.
__________________
fysiks is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-30-2010 , 02:20   Re: teams & time
Reply With Quote #7

Quote:
Originally Posted by zombieplague View Post
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
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-30-2010 , 10:07   Re: teams & time
Reply With Quote #8

Quote:
Originally Posted by abdul-rehman View Post
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

it didn't work..

this when i join a team then i die. but i still in the current team that i choose.

PHP Code:
public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
          return 
PLUGIN_HANDLED

     set_task
0.1"team"id )

     return 
PLUGIN_HANDLED
}

public 
teamid )
{
     
cs_set_user_teamidCS_TEAM_SPECTATOR )

another one is nothing happen

PHP Code:
public client_connectid )
{
     if ( !
is_user_connectedid ) )
          return 
PLUGIN_HANDLED

     set_task
0.1"team"id )

     return 
PLUGIN_HANDLED


public 
teamid )
{
     
cs_set_user_teamidCS_TEAM_SPECTATOR )


Last edited by zombieplague; 11-30-2010 at 10:19.
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-30-2010 , 12:51   Re: teams & time
Reply With Quote #9

Quote:
Originally Posted by zombieplague View Post
it didn't work..
That's because this idea was wrong in the first place:

Quote:
Originally Posted by zombieplague View Post
PHP Code:
public client_putinserverid )
{
     if ( !
is_user_connectedid ) )
            return 
PLUGIN_HANDLED

     cs_set_user_team
id)

     return 
PLUGIN_HANDLED

? is it correct ?
And this idea wasn't any better.

Quote:
Originally Posted by abdul-rehman View Post
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
The best way would be to look at auto-join plugins and see how they force them to teams when the player connects.
You can look at the one by me or VEN.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 11:20.


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