AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [New Natives]ZP 4.3[v3.6] | ZPA 1.6.1[v3.6] (https://forums.alliedmods.net/showthread.php?t=119431)

Excalibur.007 02-21-2010 06:48

[New Natives]ZP 4.3[v3.6] | ZPA 1.6.1[v3.6]
 
22 Attachment(s)
[New Natives] Zombie Plague 4.3 Fix 5a

Click above to relink to the newer version.

To other moderators:
Keep this thread first. If the new version doesn't contains major bug, this thread will be closed/deleted. Attachments will still stay intact in case of the newer version causes more problems.

georgik57 02-21-2010 07:01

Re: [New Natives] Zombie Plague 4.3
 
wow
i wanted to make a plugin some time ago and didn't knew how to find out if a user is frozen or not
i guess this is what i needed
thanks

Excalibur.007 02-21-2010 07:03

Re: [New Natives] Zombie Plague 4.3
 
Np I recently saw some people requesting for Frost Zombie. So I decided to release this instead of keeping it private :D

NiHiLaNTh 02-21-2010 07:09

Re: [New Natives] Zombie Plague 4.3
 
you should add
Code:

zp_set_user_unfrozen
zp_get_user_burning
zp_user_has_infect_nade


Russiaboy 02-21-2010 07:09

Re: [New Natives] Zombie Plague 4.3
 
GJ :crab:

georgik57 02-21-2010 07:13

Re: [New Natives] Zombie Plague 4.3
 
Quote:

Originally Posted by Excalibur.007 (Post 1095386)
Np I recently saw some people requesting for Frost Zombie. So I decided to release this instead of keeping it private :D

exactly...i really want that class too...simple classes like this one would be very usefull
also...can you make some natives to get whether if user is on fire or not?
that would be usefull too...
i will add these natives for sure in the next version of my ZP

Excalibur.007 02-21-2010 07:16

Re: [New Natives] Zombie Plague 4.3
 
Quote:

Originally Posted by NiHiLaNTh (Post 1095393)
you should add
Code:

zp_set_user_unfrozen
zp_get_user_burning
zp_user_has_infect_nade


1. zp_set_user_frozen(id, 0) <- 0 = Unfreeze user 1 = Freeze user
2. I don't know if I can do this
3. DONE :D Added in v1.1

EDIT: Idk how to do it for 2. Anybody can help?

NiHiLaNTh 02-21-2010 08:19

Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
 
Code:

new g_isburning [ 33 ]

// Then you have to set g_isburning true or false everywhere at the code

public plugin_natives ( )
{
    register_native ( "zp_get_user_burning",  "native_get_user_burning", 1 )
}

public native_get_user_burning ( player )
{
    return g_isburning [ player ]
}

P.S That's just the easiest way...

georgik57 02-21-2010 10:03

Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
 
excalibur...at zp_set_user_frozen native do u really have to specify all those things? cause those actions are allready defined once in the plugin...if you just set g_frozen[id] = true wouldn't they automatically apply from the rest of the plugin? pls reply as soo as u can

NiHiLaNTh 02-21-2010 10:47

Re: [New Natives] Zombie Plague 4.3 - v1.1 - 21/02/2010
 
Quote:

Originally Posted by georgik57 (Post 1095520)
excalibur...at zp_set_user_frozen native do u really have to specify all those things? cause those actions are allready defined once in the plugin...if you just set g_frozen[id] = true wouldn't they automatically apply from the rest of the plugin? pls reply as soo as u can

Everything is correct :wink:


All times are GMT -4. The time now is 14:33.

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