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

how i make players get auto revived when they joined the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 06-20-2013 , 00:19   how i make players get auto revived when they joined the server
Reply With Quote #1

hello everybody

i want know something

on my deathmatch server i has a proplem

that's a people when they join the server

they dead so i have to revive them 1 by 1 and 1 time by my self

so how i make when anyone join the server get auto revive

because its deathmatch server

UaExFanTasY is offline
Haskyutza
Junior Member
Join Date: May 2013
Location: Romania
Old 06-20-2013 , 02:02   Re: how i make players get auto revived when they joined the server
Reply With Quote #2

Take a look
http://forums.alliedmods.net/showpos...53&postcount=4

If you want only to revive when the player connected, delete this line
PHP Code:
RegisterHamHam_Killed"player""RespawnPlayer" ); 
Haskyutza is offline
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 06-20-2013 , 12:04   Re: how i make players get auto revived when they joined the server
Reply With Quote #3

Quote:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

new const PLUGIN[] = "Auto Respawn"
new const VERSION[] = "1.0"
new const AUTHOR[] = "platzpatrone"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Killed, "player", "RespawnPlayer" );

register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")

}

public RespawnPlayer(id)
{
if (get_user_team(id) == 3)
return PLUGIN_HANDLED

if (!is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id);
}

return PLUGIN_CONTINUE
}

public team_join(id)
here is the plugins can u do it for me
I want it to be auto revive on connect and only 1 time enaugh

Last edited by UaExFanTasY; 06-20-2013 at 12:05.
UaExFanTasY is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-20-2013 , 13:15   Re: how i make players get auto revived when they joined the server
Reply With Quote #4

Really ? he gave you the key you only have to put it in the right lock.

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
 
new const PLUGIN[]  = "Auto Respawn"
new const VERSION[] = "1.0"
new const AUTHOR[]  = "platzpatrone"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")
    
}

public 
RespawnPlayer(id)
{
    if (
get_user_team(id) == 3)
        return 
PLUGIN_HANDLED
        
    
if (!is_user_alive(id))
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid);
    }

    return 
PLUGIN_CONTINUE
}

public 
team_join(id)
{
      
set_task(12.0"RespawnPlayer"id);

Moody92 is offline
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 06-21-2013 , 02:46   Re: how i make players get auto revived when they joined the server
Reply With Quote #5

not work its crash the server =.=
UaExFanTasY is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-21-2013 , 04:34   Re: how i make players get auto revived when they joined the server
Reply With Quote #6

Untested
Code:
#include < amxmodx > #include < amxmisc > #include < hamsandwich > new g_pluginInformations[ 3 ][ ] = {     "Respawn Player On Connect",     "1.0",     "De{a}gLe" }; public plugin_init( )     register_plugin( g_pluginInformations[ 0 ], g_pluginInformations[ 1 ], g_pluginInformations[ 2 ] );     public client_putinserver( client ) {     if( !is_user_alive( client ) || get_user_team( client != 3 ) )         ExecuteHamB( Ham_CS_RoundRespawn, client ); }

Last edited by TheDS1337; 06-21-2013 at 05:49. Reason: typo
TheDS1337 is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 06-21-2013 , 05:06   Re: how i make players get auto revived when they joined the server
Reply With Quote #7

Quote:
Originally Posted by DeagLe.Studio View Post
Untested
Code:
#include < amxmodx > #include < amxmisc > #include < hamsandwich > new g_pluginInformations[ 3 ][ ] = {     "Respawn Player On Connect",     "1.0",     "De{a}gLe" }; public plugin_init( )     register_plugin( g_pluginInformations[ 0 ], g_pluginInformations[ 1 ], g_pluginInformations[ 2 ] );     public client_putinserver( client ) {     if( !is_user_alive( client ) && get_user_team( client != 3 ) )         ExecuteHamB( Ham_CS_RoundRespawn, client ); }
Which team does a player belong to when he joins a server?

Last edited by EpicMonkey; 06-21-2013 at 05:09.
EpicMonkey is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-21-2013 , 05:09   Re: how i make players get auto revived when they joined the server
Reply With Quote #8

Quote:
Originally Posted by EpicMonkey View Post
Which team does a player belong to when he joins the server?
Only DEAD T and CT.
TheDS1337 is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 06-21-2013 , 05:44   Re: how i make players get auto revived when they joined the server
Reply With Quote #9

Quote:
Originally Posted by DeagLe.Studio View Post
Untested
Code:
#include < amxmodx > #include < amxmisc > #include < hamsandwich > new g_pluginInformations[ 3 ][ ] = {     "Respawn Player On Connect",     "1.0",     "De{a}gLe" }; public plugin_init( )     register_plugin( g_pluginInformations[ 0 ], g_pluginInformations[ 1 ], g_pluginInformations[ 2 ] );     public client_putinserver( client ) {     if( !is_user_alive( client ) && get_user_team( client != 3 ) )         ExecuteHamB( Ham_CS_RoundRespawn, client ); }
This will cause bugs cause he will respawn the player and also if the player will not have choosen any team...
Use uaxfantasy's plugin istead of this
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-21-2013 , 08:30   Re: how i make players get auto revived when they joined the server
Reply With Quote #10

PHP Code:
new g_pluginInformations][ ] =
{
    
"Respawn Player On Connect",
    
"1.0",
    
"De{a}gLe"
}; 
Can't express how useless this is..
__________________
Kia 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 16:35.


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