Raised This Month: $ Target: $400
 0% 

respawn player before next round?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-27-2007 , 17:22   Re: respawn player before next round?
Reply With Quote #5

Put a delay. Tested and it works fine.

Code:
#include <amxmodx> #include <cstrike> new p_respawn; public plugin_init( ) {     register_plugin( "Auto_Respawn", "0.2", "MadMaurice" )         register_event( "DeathMsg", "eDeath", "a" );       p_respawn = register_cvar( "respawn_power", "1" ); } public eDeath( ) {     if( !get_pcvar_num( p_respawn) )         return;         new iVictim = read_data( 2 );         if( !is_user_connected( iVictim ) )         return;             set_task( 0.1, "spawn_players", iVictim ); } public spawn_players( id ) {     cs_user_spawn( id ); }
__________________

Last edited by Arkshine; 04-27-2007 at 17:25.
Arkshine is offline
 



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:43.


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