Raised This Month: $ Target: $400
 0% 

teams & time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-29-2010 , 12:56   Re: teams & time
Reply With Quote #1

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 #2

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 #3

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 #4

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 #5

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 #6

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
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-30-2010 , 23:29   Re: teams & time
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
That's because this idea was wrong in the first place:



And this idea wasn't any better.



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.
i see your plugin. but i get very confuse with the codes, i don't know which is from auto join to spectator when connected. as for ven plugin i looked it but somehow is team and class but i don't know how to remove the class code. and i compile many error.

Last edited by zombieplague; 11-30-2010 at 23:42.
zombieplague is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-01-2010 , 02:31   Re: teams & time
Reply With Quote #8

Quote:
Originally Posted by zombieplague View Post
i see your plugin. but i get very confuse with the codes, i don't know which is from auto join to spectator when connected. as for ven plugin i looked it but somehow is team and class but i don't know how to remove the class code. and i compile many error.
Do you know scripting ??
It deosnt seems like when i looked how many threads u have started in the scripting help
__________________

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
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