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

Dead info for zombie?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
rybka
Member
Join Date: Dec 2011
Old 02-22-2012 , 12:08   Dead info for zombie?
#1

Hello guys, my friend make a code with information to respawn zombie, but we have a few problems.

First it - information display on all modes, we didn't know block info on modes ( Nemesis , Survivor and Plague )
Second it - Iff zombie killing last human it too display information how many to respawn ( we want it too block )

Please fix the code and i will be wait

Srry for very very bad english.

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

#define PLUGIN "Respawn Info"
#define VERSION "0.1"
#define AUTHOR "StefaN"

new Odliczanie[33]

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event("DeathMsg", "ded", "a")
}

public ded(){
    new zombitrup=read_data(2)
    if(zp_get_user_zombie(zombitrup)) set_task(0.5, "UruchomOdliczanie", zombitrup)
}

public UruchomOdliczanie(id)
{
        Odliczanie[id] = 60    // Time to respawn
        
        if(task_exists(id + 3431))
        {
                remove_task(id + 3431)
        }
        set_task(1.0, "Koniec", id + 3431, _, _, "b")
        
        return PLUGIN_CONTINUE
}

public Koniec(task_id)
{
        new id = task_id - 3431
        
        set_hudmessage(255, 255, 255, 0.03, 0.76, 2, 0.02, 1.0, 0.01)
        show_hudmessage(id, "You will be respawned for %d second...", Odliczanie[id])
        Odliczanie[id] -= 1 
        
        if(Odliczanie[id] <= 0)
        {
                if(task_exists(task_id))
                {
                        remove_task(task_id)
                }
        }
}

Last edited by rybka; 02-22-2012 at 13:14.
rybka is offline
Old 03-03-2012, 15:35
rybka
This message has been deleted by rybka. Reason: double post
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 03-03-2012 , 15:40   Re: Dead info for zombie?
#2

Dont bump read the rules..
__________________
H.RED.ZONE is offline
rybka
Member
Join Date: Dec 2011
Old 03-03-2012 , 15:46   Re: Dead info for zombie?
#3

Srry guys, i doesn't know, where can read article with rulez?
Deleted my double post, once again i said sorry !

And will be wait to help =)
rybka is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 03-03-2012 , 15:49   Re: Dead info for zombie?
#4

http://forums.alliedmods.net/misc.php?do=showrules
And you have delete button on edit
__________________
H.RED.ZONE is offline
rybka
Member
Join Date: Dec 2011
Old 03-03-2012 , 17:33   Re: Dead info for zombie?
#5

Right now i edited and add new function =)

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

#define PLUGIN "Respawn Info"
#define VERSION "0.1"
#define AUTHOR "StefaN"

new Odliczanie[33]

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event("DeathMsg", "ded", "a")
}

public ded(){	
    new zombitrup=read_data(2)
    if(zp_get_user_zombie(zombitrup)) set_task(0.5, "UruchomOdliczanie", zombitrup)
}

public info(){
	if (!zp_is_nemesis_round() && !zp_is_plague_round() && !zp_is_survivor_round())
	return;
}

public UruchomOdliczanie(id)
{		
        Odliczanie[id] = 60    // Tutaj zmien czas do respawnu
        
        if(task_exists(id + 3431))
        {
                remove_task(id + 3431)
        }
        set_task(1.0, "Koniec", id + 3431, _, _, "b")
        
        return PLUGIN_CONTINUE
}

public Koniec(task_id)
{
        new id = task_id - 3431
        
        set_hudmessage(255, 255, 255, 0.03, 0.76, 2, 0.02, 1.0, 0.01)
        show_hudmessage(id, "Odrodzisz sie za %d sekund...", Odliczanie[id])
        Odliczanie[id] -= 1 
        
        if(Odliczanie[id] <= 0)
        {
                if(task_exists(task_id))
                {
                        remove_task(task_id)
                }
        }
}
But still don't know " WHEN I CAN BLOCK INFO DISPLAY IFF ZOMBIES KILLING LAST HUMAN? CAN YOU SOMEONE HELP ? PLEASE =)
rybka is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 03-03-2012 , 22:28   Re: Dead info for zombie?
#6

what is this?
__________________
naSTR is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 03-04-2012 , 01:04   Re: Dead info for zombie?
#7

Wrong Section please move to requests/help sub-forum.

moderators please close thread.
__________________
jc980 is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-04-2012 , 01:33   Re: Dead info for zombie?
#8

Closed for wrong section.
Excalibur.007 is offline
Closed Thread



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 22:28.


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