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

ZP Special Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
C.Ronaldo
Senior Member
Join Date: Dec 2014
Old 12-28-2014 , 18:27   ZP Special Respawn
Reply With Quote #1

Hello , this plugin https://forums.alliedmods.net/showthread.php?t=150313

if players join server he will got respawn by server , if admins not on server and he will wait admin for respawn him ??

Yes or No ?
C.Ronaldo is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 12-28-2014 , 19:04   Re: ZP Special Respawn
Reply With Quote #2

there is folder / configs / open zombie_plague_advanse.cfg

Last edited by Firuz; 12-28-2014 at 19:08.
Firuz is offline
C.Ronaldo
Senior Member
Join Date: Dec 2014
Old 12-28-2014 , 19:20   Re: ZP Special Respawn
Reply With Quote #3

I use zombie plague 5.0.8
C.Ronaldo is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-28-2014 , 19:31   Re: ZP Special Respawn
Reply With Quote #4

The player will be respawned automatically.
zmd94 is offline
C.Ronaldo
Senior Member
Join Date: Dec 2014
Old 12-28-2014 , 19:38   Re: ZP Special Respawn
Reply With Quote #5

Yes i need this , but i need it on only "Infection Mode"

plz do it for me

Last edited by C.Ronaldo; 12-28-2014 at 19:39.
C.Ronaldo is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-28-2014 , 20:01   Re: ZP Special Respawn
Reply With Quote #6

Just try below:
PHP Code:
#include <amxmodx>
#include <zp50_gamemodes>
#include <hamsandwich>
#include <zp50_core>

new bool:g_FirstConnect[33]

new 
g_GameModeInfectionID

public plugin_init()
{
    
register_plugin("Auto Respawn""1.0""zmd94")
    
    
register_event("TeamInfo""event_TeamInfo""a""2=TERRORIST""2=CT")
}

public 
plugin_cfg()
{
    
g_GameModeInfectionID zp_gamemodes_get_id("Infection Mode")      
}

public 
client_putinserver(id)
{
    
g_FirstConnect[id] = true
}

public 
event_TeamInfo()
{
    static 
id
    id 
read_data(1)
    
    if(
g_FirstConnect[id])
    {
        
set_task(4.5"AutoRespawn"id)
    }
}
    
public 
AutoRespawn(id)
{
    if(
g_FirstConnect[id] && is_user_connected(id))
    {
        if(
zp_gamemodes_get_current() == g_GameModeInfectionID)
        {
            
// Respawn player
            
ExecuteHamB(Ham_CS_RoundRespawnid)
            
            
// Turn into zombie
            
zp_core_infect(id)
            
            
g_FirstConnect[id] = false
        
}
    }


Last edited by zmd94; 12-28-2014 at 21:19.
zmd94 is offline
C.Ronaldo
Senior Member
Join Date: Dec 2014
Old 12-28-2014 , 20:33   Re: ZP Special Respawn
Reply With Quote #7

i want him respawn zombie , not human .

only he will respawn zombie.
C.Ronaldo is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-28-2014 , 20:55   Re: ZP Special Respawn
Reply With Quote #8

I have updated the code.
zmd94 is offline
C.Ronaldo
Senior Member
Join Date: Dec 2014
Old 12-28-2014 , 21:03   Re: ZP Special Respawn
Reply With Quote #9

it is same code
C.Ronaldo is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-28-2014 , 21:04   Re: ZP Special Respawn
Reply With Quote #10

Have you tried it?
zmd94 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 02:42.


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