Raised This Month: $51 Target: $400
 12% 

spawn bug preventer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 08-14-2011 , 17:07   spawn bug preventer
Reply With Quote #1

this plugin prevents players from spawning in the middle of a round when they (re)connect to the server
Attached Files
File Type: sma Get Plugin or Get Source (ARCSpawn2.sma - 688 views - 1.0 KB)

Last edited by jimaway; 08-15-2011 at 17:29.
jimaway is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-14-2011 , 17:12   Re: retry respawn preventer
Reply With Quote #2

I don't see anything in there that makes it specifically for people "reconnecting". It will affect everybody that joins the server.
__________________
fysiks is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 08-14-2011 , 17:13   Re: retry respawn preventer
Reply With Quote #3

well yea, it wont let anyone spawn in the middle of the round (also reconnecting players)
jimaway is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 08-15-2011 , 16:28   Re: retry respawn preventer
Reply With Quote #4

I think this should work better.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Anti Late Join"
#define VERSION "2.0"
#define AUTHOR "Xalus"

#define MaxSpawnTime 20

new Float:NewRound

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_roundStart""a""1=0""2=0")
    
    
RegisterHamHam_Spawn"player""Ham_PlayerSpawn");
}
public 
event_roundStart()
    
NewRound get_gametime()
    
public 
Ham_PlayerSpawn(id) {
    if((
NewRound get_gametime()) > MaxSpawnTime) {
        
user_silentkill(id)
        
        new 
szName[32]; get_user_name(idszNamecharsmax(szName));
        
client_print(0print_chat"%s got slayed for spawn buging."szName)
    }

__________________
Retired.
Xalus is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 08-15-2011 , 17:06   Re: retry respawn preventer
Reply With Quote #5

how does that work better? it slays the player after spawning, my version will never let player spawn in the first place

+ silentkill will screw up players score

Last edited by jimaway; 08-15-2011 at 17:11.
jimaway is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-15-2011 , 17:13   Re: retry respawn preventer
Reply With Quote #6

You need to rename it since it doesn't only apply to people reconnecting.
__________________
fysiks is offline
B3N4K
Senior Member
Join Date: Jun 2008
Location: Czech Republic
Old 08-15-2011 , 17:28   Re: retry respawn preventer
Reply With Quote #7

Nicely done but it could be better.

Save SteamID of 3 lastest players that disconnected and affect only these players that are in this list of 3 recently disconnected players. This will asure that noone else than recently disconnected players will be affected ;-)
Or even better - save lastest (X) players and when they disconnect save also time when they disconnected ( with function time() ). And if new player connect check if his steamid is one of these (X) saved and if he disconnected (Y) seconds ago - if yes then he will be affected. And make (X) and (Y) as cvars ;-) This will asure that only VERY recently disconnected players will be affected ;-)

But nice idea anyway! I like it! ;-)
B3N4K is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 08-15-2011 , 17:35   Re: spawn bug preventer
Reply With Quote #8

well i like it affecting everyone, since it can be annoying when like 2 last players are alive, but few new players connect and spawn immideately, meaning you have to wait longer

also name/description changed now
jimaway is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-15-2011 , 17:42   Re: spawn bug preventer
Reply With Quote #9

good job thanks
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-15-2011 , 17:55   Re: spawn bug preventer
Reply With Quote #10

Honestly, I thought that not spawning when you joined a server was part of CS already. Which is one reason I hate CS, I have to wait a millenium to play the freaking game.
__________________
fysiks 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 20:21.


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