Raised This Month: $ Target: $400
 0% 

[ZP] Class witch cannot be freezed.


Post New Thread Reply   
 
Thread Tools Display Modes
VaLo1
Junior Member
Join Date: Jan 2011
Location: Kosovo
Old 01-10-2011 , 15:45   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #21

@ardi Tip: All zombie's are effect by freeze. I don't see'd zombie which is non-freeze.
VaLo1 is offline
Send a message via MSN to VaLo1 Send a message via Yahoo to VaLo1
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 01-10-2011 , 16:48   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #22

Quote:
Originally Posted by abdul-rehman View Post
Infact it is ineffecient
Why? How?

Tested and works perfectly.

Just put the bool here:

Code:
while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)     {         // Only effect alive zombies
        if (!is_user_valid_alive(victim) || !g_zombie[victim] || g_nodamage[victim] || myboolhere[victim])
            continue;                  // More code...

And make a native.
AfteR. is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 01-11-2011 , 05:44   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #23

Quote:
Originally Posted by AfteR. View Post
Why? How?

Tested and works perfectly.

Just put the bool here:

Code:
while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)     {         // Only effect alive zombies
        if (!is_user_valid_alive(victim) || !g_zombie[victim] || g_nodamage[victim] || myboolhere[victim])
            continue;                  // More code...

And make a native.
Ya, and then you would need to check that native everytime in PlayerPrethink to catch da exact moment when da player becomes frozen, instead it would be better to use a forward to execute at da specific time and return ZP_PLUGIN_HANDLED
__________________

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
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 01-11-2011 , 15:32   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #24

Quote:
Originally Posted by abdul-rehman View Post
Ya, and then you would need to check that native everytime in PlayerPrethink to catch da exact moment when da player becomes frozen, instead it would be better to use a forward to execute at da specific time and return ZP_PLUGIN_HANDLED
What are you talking about?

You just need to set the native here:

PHP Code:
public zp_user_infected_post(id)
{
    if (
zp_get_user_zombie_class(id) == myclasszp_set_user_inmunity(id1)

And that's it. Prethink is not necesary for that.

Last edited by AfteR.; 01-11-2011 at 15:34.
AfteR. is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 01-12-2011 , 04:46   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #25

Quote:
Originally Posted by AfteR. View Post
What are you talking about?

You just need to set the native here:

PHP Code:
public zp_user_infected_post(id)
{
    if (
zp_get_user_zombie_class(id) == myclasszp_set_user_inmunity(id1)

And that's it. Prethink is not necesary for that.
Ohh, i though you meant something else, my mistake !
__________________

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
ardi
Senior Member
Join Date: Sep 2009
Old 01-12-2011 , 04:50   Re: [ZP] Class witch cannot be freezed.
Reply With Quote #26

Okey guys, I'm now using the new natives by Excalibur.007, so now would some one give me that class .
ardi is offline
Send a message via Skype™ to ardi
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:30.


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