Raised This Month: $ Target: $400
 0% 

Respawn connected player.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-26-2009 , 11:21   Re: Respawn connected player.
Reply With Quote #1

Again not working
P.S. I'm using this plugin http://forums.alliedmods.net/showthread.php?p=610161
xbatista is offline
Send a message via Skype™ to xbatista
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-27-2009 , 19:52   Re: Respawn connected player.
Reply With Quote #2

Try this(not tested):

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
new FirstJoin[33];
 
public 
plugin_init()
        
register_logevent("JoinedTeam"3"1=joined team");
 
public 
client_connect(Client)
        
FirstJoin[Client] = true;
 
public 
JoinedTeam()
{
        new 
Client get_loguser_index();
 
        if (
FirstJoin[Client] && !is_user_alive(Client) && <= get_user_team(Client) < 3)
        {
                
FirstJoin[Client] = false;
 
                
set_task(1.0"RespawnPlayer"Client);
        }
}
 
public 
RespawnPlayer(Client)
        
ExecuteHamB(Ham_CS_RoundRespawnClient);

stock get_loguser_index()
{
    static 
loguser[80], name[32];
    
read_logargv(0,loguser,79);
    
parse_loguser(loguser,name,31);

    return 
get_user_index(name);

__________________

Last edited by alan_el_more; 05-27-2009 at 19:55.
alan_el_more is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-28-2009 , 08:38   Re: Respawn connected player.
Reply With Quote #3

Join team event will not work, cuz exolents plugin blocks it :
Need other way to do it :0
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-28-2009 , 08:58   Re: Respawn connected player.
Reply With Quote #4

Edit Exolent's plugin?
__________________
hleV is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-28-2009 , 11:41   Re: Respawn connected player.
Reply With Quote #5

I don't edit it ;)
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-28-2009 , 13:26   Re: Respawn connected player.
Reply With Quote #6

Edit it.
__________________
hleV 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 01:31.


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