Raised This Month: $ Target: $400
 0% 

[ZP] Auto Revive After Connect


Post New Thread Reply   
 
Thread Tools Display Modes
sk@.@
Senior Member
Join Date: Feb 2010
Location: Hong Kong
Old 09-03-2010 , 12:48   Re: [ZP] Auto Revive After Connect
Reply With Quote #21

wow!

this plugin is very good!!

register_event("TeamInfo","fwPlayerJoinedTeam ","a","2=TERRORIST","2=CT");

thx your plugin !!
__________________
This is my Game-Blog:
http://hsk-game.blogspot.hk/
sk@.@ is offline
Send a message via MSN to sk@.@
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-03-2010 , 14:11   Re: [ZP] Auto Revive After Connect
Reply With Quote #22

Posting bug
Vechta is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 09-04-2010 , 05:58   Re: [ZP] Auto Revive After Connect
Reply With Quote #23

How to make that on Plague round it not respawn player?
__________________
edgaras85 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-04-2010 , 06:03   Re: [ZP] Auto Revive After Connect
Reply With Quote #24

Code:
 if (zp_is_plague_round())
          return;
Vechta is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-04-2010 , 06:05   Re: [ZP] Auto Revive After Connect
Reply With Quote #25

Try this:
Code:
#include <amxmodx> #include <amxmisc> #pragma semicolon 1 #define TASK_TIME 5.0 #define ZP_TEAM_ZOMBIE (1<<0) native zp_respawn_user(id, team); native zp_is_plague_round(); new g_TeamJoin[33]; public plugin_init () {     register_plugin("[ZP]Auto-Respawn","1.1","LuqqasBugsy&Hattrick");     register_dictionary("zp_auto_respawn.txt");     register_event("TeamInfo","fwPlayerJoinedTeam","a","2=TERRORIST","2=CT"); } public client_connect(id) {     g_TeamJoin[id]=0; } public fwPlayerJoinedTeam() {     if ( zp_is_plague_round( ) );         return;     static id;     id=read_data(1);     if(!g_TeamJoin[id])g_TeamJoin[id]=1;     else     {         g_TeamJoin[id]=0;         set_task(TASK_TIME,"respawn_player",id);     } } public respawn_player(id) {     client_print(id,print_chat,"[ZP] %L",LANG_PLAYER,"YOU_HAVE_BEEN_REVIVED");     zp_respawn_user(id,ZP_TEAM_ZOMBIE); }
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 09-04-2010 , 07:09   Re: [ZP] Auto Revive After Connect
Reply With Quote #26

Quote:
Originally Posted by abdul-rehman View Post
Try this:
Code:
#include <amxmodx> #include <amxmisc> #pragma semicolon 1 #define TASK_TIME 5.0 #define ZP_TEAM_ZOMBIE (1<<0) native zp_respawn_user(id, team);
native zp_is_plague_round();

new g_TeamJoin[33];

public plugin_init () { &nbsp;&nbsp;&nbsp;&nbsp;register_plugin("[ZP]Auto-Respawn","1.1","LuqqasBugsy&Hattrick");
&nbsp;&nbsp;&nbsp;&nbsp;register_dictionar y("zp_auto_respawn.txt");
&nbsp;&nbsp;&nbsp;&nbsp;register_event("TeamInfo","fwPlayerJoinedTeam","a","2=TERRORIST","2=CT");
} public client_connect(id) { &nbsp;&nbsp;&nbsp;&nbsp;g_TeamJoin[id]=0;
} public fwPlayerJoinedTeam() { &nbsp;&nbsp;&nbsp;&nbsp;if ( zp_is_plague_round( ) );
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;return;

&nbsp;&nbsp;&nbsp;&nbsp;static id;
&nbsp;&nbsp;&nbsp;&nbsp;id=read_data(1);
&nbsp;&nbsp;&nbsp;&nbsp;if(!g_TeamJoin[id])g_TeamJoin[id]=1;
&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;g_TeamJoin[id]=0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;set_task(TASK_TIME,"respawn_player",id);
&nbsp;&nbsp;&nbsp;&nbsp;} } public respawn_player(id) { &nbsp;&nbsp;&nbsp;&nbsp;client_print(id,print_chat,"[ZP] %L",LANG_PLAYER,"YOU_HAVE_BEEN_REVIVED");
&nbsp;&nbsp;&nbsp;&nbsp;zp_respawn_user(id,ZP_TEAM_ZOMBIE);
}

Thanks
__________________
edgaras85 is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 09-04-2010 , 07:23   Re: [ZP] Auto Revive After Connect
Reply With Quote #27

I made some changes:

PHP Code:
#include <amxmodx>
#include <zombieplague>

#define TASK_TIME 5.0

new g_TeamJoin[33]

public 
plugin_init()
{
    
register_plugin("[ZP]Auto-Respawn","1.1","LuqqasBugsy&Hattrick")
    
register_dictionary("zp_auto_respawn.txt")
    
register_event("TeamInfo","fwPlayerJoinedTeam","a","2=TERRORIST","2=CT")
}

public 
client_connect(id)
{
    
g_TeamJoin[id] = 0
}

public 
fwPlayerJoinedTeam()
{
    static 
id
    id
=read_data(1)
    
    if(!
g_TeamJoin[id])
        
g_TeamJoin[id] = 1
    
else
    {
        
g_TeamJoin[id] = 0
        set_task
(TASK_TIME,"respawn_player",id)
    }
}

public 
respawn_player(id)
{
    
client_print(id,print_chat,"[ZP] %L",LANG_PLAYER,"YOU_HAVE_BEEN_REVIVED")
    
zp_respawn_user(id,ZP_TEAM_ZOMBIE)

Is unnecessary create the natives and consts when you already have on the include zombie plague.
__________________
alan_el_more is offline
Shidla
Senior Member
Join Date: Nov 2008
Location: Russia, Moscow
Old 09-04-2010 , 08:15   Re: [ZP] Auto Revive After Connect
Reply With Quote #28

Code:
[ru]
YOU_HAVE_BEEN_REVIVED = Вы ожили!
Lang file + Russian
Attached Files
File Type: txt zp_auto_respawn.txt (532 Bytes, 208 views)
__________________
[Russian Federation] NOT USSR
This is madness?! This is Shidla!
[ZP] Laser Mine 2.8.2 ML (NEW !!2013!!) | [ZP] New Win Msg 1.4
| [ZP] MutaDote 1.1
Shidla is offline
Send a message via ICQ to Shidla Send a message via Skype™ to Shidla
chriss
Member
Join Date: Dec 2009
Location: Estonia
Old 09-22-2010 , 12:54   Re: [ZP] Auto Revive After Connect
Reply With Quote #29

you should too , only for infection and multi-infection round , right now is respawning , nemesis , surv , plague and swarm too .
__________________
Hey
chriss is offline
Send a message via MSN to chriss Send a message via Skype™ to chriss
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 09-22-2010 , 18:18   Re: [ZP] Auto Revive After Connect
Reply With Quote #30

I use this.
It respawns connected player after 15 second if it is NOT swarm / plague / nemesis / survivor / only 1 human is alive. Will respawn player as a zombie (so some suckers won't abuse this plugin to reconnect and spawn as a human)
Works like a charm.
Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "Respawn"
#define VERSION "1.0"
#define AUTHOR "ILUSION"

new respawn_connect

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    respawn_connect = register_cvar("zp_respawn_connect", "1")
    register_cvar("zp_respawn_version", VERSION, FCVAR_SERVER)
}

public client_putinserver(id)
{
    set_task(15.0, "check", id)
}

public check(id)
{
    if (get_pcvar_num(respawn_connect))
    {
        if (!is_user_alive(id) && !zp_is_nemesis_round() && !zp_is_plague_round() && !zp_is_survivor_round() && !zp_is_swarm_round() && (zp_get_human_count() > 1))
        {
            zp_respawn_user(id, ZP_TEAM_ZOMBIE)
        }
    }
    
    return PLUGIN_HANDLED
}
Hammerfallerz 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 17:06.


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