Raised This Month: $ Target: $400
 0% 

AutoRespawn plugin... Not working...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gizmo
Senior Member
Join Date: May 2006
Location: Sweden
Old 06-30-2006 , 11:25   Re: AutoRespawn plugin... Not working...
Reply With Quote #1

You did not check all of the code
Code:
register_event("Death","spawnMe","a");

change to

Code:
register_event("DeathMsg","spawnMe","a");
Gizmo is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-30-2006 , 12:27   Re: AutoRespawn plugin... Not working...
Reply With Quote #2

You should either do cs_user_spawn, or spawn twice (there's a bug in the HL engine)

Also, the way you made this is retarded. Every time one person dies, you check if everyone is dead and end up spawning only one person. On top of that, you don't take into account spectators or just joined players.

Use read_data(2), it gives you the victim of the DeathMsg.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 08:01.


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