Raised This Month: $ Target: $400
 0% 

[CSS] stop respawning after JoinClass


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
IamREZOR
Junior Member
Join Date: Jul 2011
Old 07-29-2011 , 08:34   [CSS] stop respawning after JoinClass
Reply With Quote #1

when player connected to server and choosing class he is auto spawning when round is started. Is it a way to block it?
IamREZOR is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 07-29-2011 , 13:03   Re: [CSS] stop respawning after JoinClass
Reply With Quote #2

try this
Attached Files
File Type: sp Get Plugin or Get Source (teamchange.sp - 633 views - 1.2 KB)
Nail is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 07-29-2011 , 16:14   Re: [CSS] stop respawning after JoinClass
Reply With Quote #3

Nail, I think that if someone already has the class screen up they could still spawn because class is after team selection.

One way is to force a joinclass command as soon as a team is selected. The jailbreak team balance plugin has code that does that as well as blocks the class window from appearing if you want to borrow.
__________________
databomb is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 07-29-2011 , 19:59   Re: [CSS] stop respawning after JoinClass
Reply With Quote #4

I had not met with a similar problem, I can advise how to block these. I do not know how they work, maybe it will help

AddCommandListener(command_spectate, "spectate");
AddCommandListener(command_jointeam, "jointeam");
AddCommandListener(command_joinclass, "joinclass");
and "return Plugin_Handled;" for block it if necesary

As an variant - you can make a timer after which kill all who attempt to join the game
hookevent -> player_spawn

Maybe I do not quite understand the problem. JoinClass - what is it?

Last edited by Nail; 07-29-2011 at 20:07.
Nail 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 15:07.


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