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

Subplugin Submission [New Natives]ZP 4.3[v3.6] | ZPA 1.6.1[v3.6]


Post New Thread Reply   
 
Thread Tools Display Modes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-21-2010 , 10:53   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #11

Quote:
Originally Posted by NiHiLaNTh View Post
Everything is correct
well i sure hope so...thanks for replying
oh and to find out whether a user is burning or not can we use g_burning_duration[33]? if it's 0 it means user isn't burning and if you want to set a user on fire just set it to a number and make it decrease( g_burning_duration[id]-- )...
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 02-21-2010 , 11:18   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #12

That's actually great idea.Not sure about code...

Code:
new g_burning_duration [ 33 ]

public plugin_natives ( )
{
    register_native ( "zp_get_user_burning", "_zp_get_user_burning", 1 )
    register_native ( "zp_set_user_burning", "_zp_set_user_burning", 1 )
}

// A lot of code....

public _zp_get_user_burning ( player )
{
    if ( g_burning_duration [ player ] <= 0 )
        return false

    return true    
}

public _zp_set_user_burning ( player, bool:isburning )
{
    switch ( isburning )
    {
        case true: // Force to burn
        {
            if ( !task_exists ( player+TASK_BURN ) )
            {
                set_task ( 0.2, "burning_flame", player+TASK_BURN, _, _, "b" )
            }
            else
            {
                g_burning_duration [ player ]--
            }
        }
        case false:
        {
            if ( task_exists ( player+TASK_BURN ) )
            {
                static origin [ 3 ]
                get_user_origin ( player, origin )
                
                // Smoke sprite
                message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
                write_byte(TE_SMOKE) // TE id
                write_coord(origin[0]) // x
                write_coord(origin[1]) // y
                write_coord(origin[2]-50) // z
                write_short(g_smokeSpr) // sprite
                write_byte(random_num(15, 20)) // scale
                write_byte(random_num(10, 20)) // framerate
                message_end()
                
                remove_task ( player+TASK_BURN )
                g_burning_duration [ player ] = 0
            }
        }
    }
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-21-2010 , 11:22   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #13

Quote:
Originally Posted by NiHiLaNTh View Post
That's actually great idea.Not sure about code...

Code:
new g_burning_duration [ 33 ]

public plugin_natives ( )
{
    register_native ( "zp_get_user_burning", "_zp_get_user_burning", 1 )
    register_native ( "zp_set_user_burning", "_zp_set_user_burning", 1 )
}

// A lot of code....

public _zp_get_user_burning ( player )
{
    if ( g_burning_duration [ player ] <= 0 )
        return false

    return true    
}

public _zp_set_user_burning ( player, bool:isburning )
{
    switch ( isburning )
    {
        case true: // Force to burn
        {
            if ( !task_exists ( player+TASK_BURN ) )
            {
                set_task ( 0.2, "burning_flame", player+TASK_BURN, _, _, "b" )
            }
            else
            {
                g_burning_duration [ player ]--
            }
        }
        case false:
        {
            if ( task_exists ( player+TASK_BURN ) )
            {
                static origin [ 3 ]
                get_user_origin ( player, origin )
                
                // Smoke sprite
                message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
                write_byte(TE_SMOKE) // TE id
                write_coord(origin[0]) // x
                write_coord(origin[1]) // y
                write_coord(origin[2]-50) // z
                write_short(g_smokeSpr) // sprite
                write_byte(random_num(15, 20)) // scale
                write_byte(random_num(10, 20)) // framerate
                message_end()
                
                remove_task ( player+TASK_BURN )
                g_burning_duration [ player ] = 0
            }
        }
    }
}
wow...i'm gonna try using this code
then i'm gonna make 2 zombie classes...1 immune to freezing and 1 immune to fire
if they work and i don't get any crash i'm gonna tell you guys
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-21-2010 , 12:19   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #14

And now what?... this isn't official :-/
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 02-21-2010 , 13:06   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #15

Unfortunately yes.But it's supposed to be official.Since MerCyLeZZ doesn't care about anything, someone must be develop this plugin.And don't forget that in this forum we can just share ideas and so...
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
sabrioz
Senior Member
Join Date: Apr 2009
Old 02-21-2010 , 13:49   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #16

Quote:
Originally Posted by NiHiLaNTh View Post
Unfortunately yes.But it's supposed to be official.Since MerCyLeZZ doesn't care about anything, someone must be develop this plugin.And don't forget that in this forum we can just share ideas and so...
very agree with you.
since mercylezz no more care about this MOD, so someone must continue his work. we share idea, we coding, we use, we play together.
sabrioz is offline
Old 02-21-2010, 13:52
georgik57
This message has been deleted by georgik57. Reason: don't wanna make double post
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-21-2010 , 16:00   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #17

well i updated my zp, the include file, but it seems i can't do the zombie class too good cause i suck when it comes to making a code for myself(rather than copying from some1 else's code)
here is my zp and the zombie class
PS: i just added the freeze natives
PS2: some1 PLEASE make a good frost zombie class
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_frost.sma - 691 views - 1.6 KB)
File Type: zip zp_plugin_43new_21feb10.zip (390.3 KB, 241 views)
__________________

Last edited by georgik57; 02-21-2010 at 16:07.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-21-2010 , 16:12   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #18

Quote:
Originally Posted by NiHiLaNTh View Post
Since MerCyLeZZ doesn't care about anything
And he told you that? Whatever, he will have his reasons, maybe he does not has internet, or maybe is died o.O.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
EXteRmiNaToR
Senior Member
Join Date: Dec 2009
Old 02-21-2010 , 16:17   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #19

Or maybe he is done with this mod...
EXteRmiNaToR is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-21-2010 , 16:18   Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
Reply With Quote #20

PHP Code:
zp_user_has_infect_nade(id
It's the same as:

PHP Code:
user_has_weapon(idCSW_HEGRENADE
Useless and bad coded.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 03:25.


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