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

How to fix that problem?


Post New Thread Reply   
 
Thread Tools Display Modes
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 14:21   Re: How to fix that problem?
Reply With Quote #11

But someone know how to add a command that the nemesis get slay only after 10 secs of zp_delay ?
Torge is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-05-2012 , 14:30   Re: How to fix that problem?
Reply With Quote #12

Quote:
Originally Posted by Devil259 View Post
I don't know the zombieplague include so the forward either.
It took me under a minute to go into the zombieplague.inc (including the download time for the .zip and extracting) and look at the functions and forwards.

Quote:
Originally Posted by Torge View Post
But someone know how to add a command that the nemesis get slay only after 10 secs of zp_delay ?
Use a set_task() in that forward.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-05-2012 at 14:30.
Exolent[jNr] is offline
Old 01-05-2012, 14:31
Napoleon_be
This message has been deleted by Napoleon_be.
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 14:32   Re: How to fix that problem?
Reply With Quote #13

Quote:
Originally Posted by Exolent[jNr] View Post
It took me under a minute to go into the zombieplague.inc (including the download time for the .zip and extracting) and look at the functions and forwards.



Use a set_task() in that forward.
ok, thank you
Torge is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 14:38   Re: How to fix that problem?
Reply With Quote #14

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
new customtime

public plugin_init() {
    
customtime register_cvar("zp_nemesis_slaytime""10")

PHP Code:
public zp_user_infected_post(idinfectornemesis)
{
    if (
nemesis && get_pcvar_num(round))
    {
        
i=0
    
new slaytime get_pcvar_num(customtime)
        
set_task(slaytime"Slay_Task"id)
    }
}  

public 
Slay_Task(id
{
    
user_kill(id)
    new 
szName[32]; get_user_name(idszNamecharsmax(szName)
    
client_print(idprint_chat"%s has been slayed for being nemesis too early"szName)

Untested but it should work.
Ok, i will test it now ! ;)
Torge is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 14:49   Re: How to fix that problem?
Reply With Quote #15

I got a error
warning 213: tag mismatch
Torge is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-05-2012 , 14:55   Re: How to fix that problem?
Reply With Quote #16

customtime = register_cvar("zp_nemesis_slaytime", "10")

->

customtime = register_cvar("zp_nemesis_slaytime", "10.0")



new slaytime = get_pcvar_num(customtime)

->

new Float:slaytime = get_pcvar_float(customtime)
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-05-2012 , 14:59   Re: How to fix that problem?
Reply With Quote #17

PHP Code:
public plugin_init() {
    
customtime register_cvar("zp_nemesis_slaytime""10.0")
}

public 
zp_user_infected_post(idinfectornemesis)
{
    if (
nemesis && get_pcvar_num(round))
    {
        
i=0
    
new Float:slaytime get_pcvar_num(customtime)
        
set_task(slaytime"Slay_Task"id)
    }
}  

public 
Slay_Task(id
{
    new 
szName[32]; get_user_name(idszNamecharsmax(szName))
    
client_print(idprint_chat"%s has been slayed for being nemesis too early"szName)
    
user_kill(id)

This should do.
__________________

Last edited by Napoleon_be; 01-05-2012 at 14:59.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 15:00   Re: How to fix that problem?
Reply With Quote #18

@Devil259
Thanks, it working now i changed Slay_Task because i got there errors too

It work, Napoleon be, Thank you ^^

EDIT: It work great thank you all!

Last edited by Torge; 01-05-2012 at 15:07.
Torge is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 01-05-2012 , 15:05   Re: How to fix that problem?
Reply With Quote #19

One question, if player become auto to nemesis/survivor he got slay? if yes can someone script that the player dont get it ?
Torge is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-06-2012 , 00:52   Re: How to fix that problem?
Reply With Quote #20

Test by yourself.
__________________
You can do anything you set your mind to, man.

Devil259 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 11:08.


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