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

Subplugin Submission [ZP] Addon: Ice Cube (ZP5.0 + ZP 4.3)


Post New Thread Reply   
 
Thread Tools Display Modes
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 07-23-2014 , 03:56   Re: [ZP5.0] Addon: Ice Cube v1.2
Reply With Quote #21

Remove the cvar pointer of plugin_init and put it on plugin_cfg, like this:

PHP Code:
public plugin_init( ) {
    
register_plugin"[ZP] Addon:Ice Cube""1.2""H.RED.ZONE" )
    
    
RegisterHamHam_Killed"player""_fw_PlayerKilled" )
}

public 
plugin_cfg( ) {
    
    
_pCvarNemesisFreeze get_cvar_pointer"zp_grenade_frost_nemesis" )


Last edited by wicho; 07-23-2014 at 03:57.
wicho is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-23-2014 , 04:16   Re: [ZP5.0] Addon: Ice Cube v1.2
Reply With Quote #22

Thank you for helping. However it still giving the same error. I have tested it.
zmd94 is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-23-2014 , 06:30   Re: [ZP5.0] Addon: Ice Cube v1.2
Reply With Quote #23

The cvar registration is good where is it now however the problem is that the author has used nemesis cvar from ZP 4.3 this cvar doesn't exists in ZP 5.0 since you enable zp43compat.amxx plugin but not sure will work too

So open the .SMA of Ice cube and change
Code:
_pCvarNemesisFreeze = get_cvar_pointer( "zp_grenade_frost_nemesis" )
to
PHP Code:
_pCvarNemesisFreeze get_cvar_pointer"zp_nemesis_grenade_frost" ); 
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 07-23-2014 at 06:31.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Old 07-23-2014, 06:45
H.RED.ZONE
This message has been deleted by asherkin. Reason: Cleanup
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-23-2014 , 06:48   Re: [ZP5.0] Addon: Ice Cube v1.2
Reply With Quote #24

Thank you guys, wicho and CryWolf. I have combined both of your solutions. Now, the plugin is working well.

This line should be changed:
PHP Code:
public plugin_init( ) {
    
register_plugin"[ZP] Addon:Ice Cube""1.2""H.RED.ZONE" )
    
    
RegisterHamHam_Killed"player""_fw_PlayerKilled" )
    
    
_pCvarNemesisFreeze get_cvar_pointer"zp_grenade_frost_nemesis" )

--->
PHP Code:
public plugin_init( ) {
    
register_plugin"[ZP] Addon:Ice Cube""1.2""H.RED.ZONE" )
    
    
RegisterHamHam_Killed"player""_fw_PlayerKilled" )
}

public 
plugin_cfg( ) {
    
    
_pCvarNemesisFreeze get_cvar_pointer"zp_nemesis_grenade_frost" );

zmd94 is offline
Old 07-23-2014, 06:54
H.RED.ZONE
This message has been deleted by asherkin. Reason: Cleanup
Old 07-23-2014, 07:05
zmd94
This message has been deleted by asherkin. Reason: Cleanup
Old 07-23-2014, 07:10
H.RED.ZONE
This message has been deleted by asherkin. Reason: Cleanup
Old 07-23-2014, 07:15
Just4Games
This message has been deleted by asherkin. Reason: Cleanup
Old 07-23-2014, 07:31
.Dare Devil.
This message has been deleted by asherkin. Reason: Cleanup
Old 07-23-2014, 07:36
H.RED.ZONE
This message has been deleted by asherkin. Reason: Cleanup
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-23-2014 , 10:45   Re: [ZP5.0] Addon: Ice Cube v1.4
Reply With Quote #25

Updated the code.
__________________
H.RED.ZONE is offline
Dragan015Bre
Senior Member
Join Date: Nov 2013
Location: Serbia
Old 07-24-2014 , 03:51   Re: [ZP5.0] Ice Cube
Reply With Quote #26

Can u make it for zp 4.3 fix5a please
Dragan015Bre is offline
Send a message via MSN to Dragan015Bre Send a message via Yahoo to Dragan015Bre Send a message via Skype™ to Dragan015Bre
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-24-2014 , 07:58   Re: [ZP5.0] Ice Cube
Reply With Quote #27

Quote:
Originally Posted by Dragan015Bre View Post
Can u make it for zp 4.3 fix5a please
I have updated it and now you have version 4.3 it was not tested so report back.
__________________
H.RED.ZONE is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-24-2014 , 09:16   Re: [ZP] Addon: Ice Cube (ZP5.0 + ZP 4.3)
Reply With Quote #28

Tested it on Zombie Plagues Shade and it seems to not work.
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
Old 07-24-2014, 09:31
.Dare Devil.
This message has been deleted by .Dare Devil..
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-24-2014 , 09:49   Re: [ZP] Addon: Ice Cube (ZP5.0 + ZP 4.3)
Reply With Quote #29

Quote:
Originally Posted by Just4Games View Post
Tested it on Zombie Plagues Shade and it seems to not work.
Friend tested it just now it works. Redownload it i had a mistake in checking for nemesis for version 4.3.
__________________

Last edited by H.RED.ZONE; 07-24-2014 at 10:10.
H.RED.ZONE is offline
Old 07-24-2014, 10:14
Just4Games
This message has been deleted by Just4Games.
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-24-2014 , 10:14   Re: [ZP5.0] Addon: Ice Cube
Reply With Quote #30

( That first message was too kind. )
Right now i dont really see the difference between me and you. We both acting like children yet
i am one, im not sure about you.

If you want that your zp4.3 one will work you should copy/paste exacly the code not just take an idea.
( idea of hooking think. )

You cant just leave out the functions i wrote without knowing what they are for.
2. IF you can make it work somehow ( probably by taking my idea again ... )
What if zombie is near the explosion while having madness?
( This is way i checked pev_maxspeed )

Also, I tested your plugin even tho i was 100% sure that it wont work.

For asherkin:
Sometimes i cant even tell if im serious or not.
Im just really sad that you took away my cute costom title.

For Just4Games
That zp mod you're using might be different from zp4.3. That would be reason why mine did not work for you even tho it is working fine in 4.3.

Last edited by .Dare Devil.; 07-24-2014 at 10:16.
.Dare Devil. 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 14:04.


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