Raised This Month: $32 Target: $400
 8% 

On connection to server.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 04-04-2013 , 11:21   On connection to server.
Reply With Quote #1

Hi guys, I am here to ask how intercept once the player that has connected to the server clicks the "OK" button of the MOTD then switches to the select team menu on which I want to intercept and change something like showing an AMXX menu that lets you select a class instead.

Also, how to make them automatically CT except for bots.(because I use podbots as zombies and other bots as AI humans.)

Kinda dunno how to do this.

I am hoping for a fast response. Thanks for whoever helped me solve this problem.
__________________
jc980 is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-04-2013 , 13:05   Re: On connection to server.
Reply With Quote #2

Something like this?

I think client_putinserver its called after a user clicked Ok on MOTD. If not, no worries.
You need to block the team menus anyways. The team menu is usually called right after someone clicked Ok on MOTD.

Hope thats helpful enough for you since you are an experienced coder
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-04-2013 , 13:05   Re: On connection to server.
Reply With Quote #3

Quote:
Originally Posted by Leon M. View Post
I think client_putinserver its called after a user clicked Ok on MOTD. If not, no worries.
It is called just before the MOTD is shown
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 04-05-2013 , 00:39   Re: On connection to server.
Reply With Quote #4

Quote:
Originally Posted by Leon M. View Post
Something like this?

I think client_putinserver its called after a user clicked Ok on MOTD. If not, no worries.
You need to block the team menus anyways. The team menu is usually called right after someone clicked Ok on MOTD.

Hope thats helpful enough for you since you are an experienced coder
I just need to block the Choose team and join team menus since it automatically switches you to CT once you chosen your class in the amxx menu.(after the OK button)

Just like in ZP Rabs by mottzi.
__________________
jc980 is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-05-2013 , 04:36   Re: On connection to server.
Reply With Quote #5

Sounds like server cvar:
Code:
humans_join_team "ct"
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 04-05-2013 , 04:41   Re: On connection to server.
Reply With Quote #6

Quote:
Originally Posted by Leon M. View Post
Sounds like server cvar:
Code:
humans_join_team "ct"
What is that? I'm not familiar with that.
__________________
jc980 is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 04-05-2013 , 10:10   Re: On connection to server.
Reply With Quote #7

Quote:
Originally Posted by jc980 View Post
What is that? I'm not familiar with that.
its server var, the provided value above lets clients join only in CT team.

Last edited by seriousspot; 04-05-2013 at 10:10.
seriousspot is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 04-07-2013 , 07:21   Re: On connection to server.
Reply With Quote #8

Quote:
Originally Posted by seriousspot View Post
its server var, the provided value above lets clients join only in CT team.
Basically it only let PLAYERS (join) and not BOTS, yes?
__________________
jc980 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-07-2013 , 07:28   Re: On connection to server.
Reply With Quote #9

Quote:
Originally Posted by jc980 View Post
Basically it only let PLAYERS (join) and not BOTS, yes?
Correct. Bots will be left sitting in spec.
But TBH why not just test it?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 04-07-2013 , 08:33   Re: On connection to server.
Reply With Quote #10

Quote:
Originally Posted by hornet View Post
Correct. Bots will be left sitting in spec.
But TBH why not just test it?
The mod is not finished how would test it?

BTW about the bots left sitting in spec...

They can still choose their team right? (POD Bots, CZ Bots, etc.)
__________________
jc980 is offline
Reply


Thread Tools
Display Modes

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 06:55.


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