Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request From zp 5.0 to zp 4.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tson_
Senior Member
Join Date: Sep 2011
Old 08-11-2012 , 10:52   From zp 5.0 to zp 4.3
Reply With Quote #1

convert this to 4.3 pls
PHP Code:
#include <amxmodx>

#define ZP50

#if define ZP50
#include <zp50_ammopacks>
#include <zp50_core>
#else
#include <zombieplague>
#endif

#define COST 200

public plugin_init()
{
    
register_plugin("[ZP] Say /respawn""1.0""Khalid")
    
register_clcmd("say /respawn""cmd_respawn")
}

public 
cmd_respawn(id)
{
    if(
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
new ap
    
    
#if defined ZP50
    
ap zp_ammopacks_get(id)
    
#else
    
ap zp_get_user_ammo_packs(id)
    
#endif
    
    
if(ap >= COST)
    {
        
#if define ZP50
        
zp_core_respawn_as_zombie(idfalse)
        
zp_ammopacks_set(idap-COST)
        
#else
        
zp_respawn_user(idZP_TEAM_HUMAN)
        
zp_set_user_ammo_packs(idap-COST)
        
#endif
        
        
client_print(idprint_chat"[ZP] You have been respawed!")
        return 
PLUGIN_HANDLED
    
}
    
    else 
        
client_print(idprint_chat"[ZP] You don't have enought ammopacks to respawn")
    
    return 
PLUGIN_HANDLED

tson_ is offline
bartek93tbg
Member
Join Date: Apr 2011
Location: Poland
Old 08-11-2012 , 15:18   Re: From zp 5.0 to zp 4.3
Reply With Quote #2

Dude, just comment this line:

Code:
#define ZP50
Like this:

Code:
//#define ZP50
bartek93tbg is offline
ESPADONGAMING
Senior Member
Join Date: Mar 2011
Location: In the Game [ro]
Old 08-11-2012 , 17:27   Re: From zp 5.0 to zp 4.3
Reply With Quote #3

here

PHP Code:
#include <amxmodx>
#include <zombieplague>

#define COST 200

public plugin_init()
{
        
register_plugin("[ZP] Say /respawn""1.0""Khalid")
        
register_clcmd("say /respawn""cmd_respawn")
}

public 
cmd_respawn(id)
{
        if(
is_user_alive(id))
            return 
PLUGIN_HANDLED
    
        
new ap
        ap 
zp_get_user_ammo_packs(id)
    
        if(
ap >= COST)
        {
            
zp_respawn_user(idZP_TEAM_HUMAN)
            
zp_set_user_ammo_packs(idap-COST)
        
            
client_print(idprint_chat"[ZP] You have been respawed!")
            return 
PLUGIN_HANDLED
        
}
    
        else 
            
client_print(idprint_chat"[ZP] You don't have enought ammopacks to respawn")
    
        return 
PLUGIN_HANDLED

__________________
Skype: cristi.c94
SteamID: cristic_1994

Last edited by ESPADONGAMING; 08-11-2012 at 17:28.
ESPADONGAMING is offline
Send a message via MSN to ESPADONGAMING Send a message via Yahoo to ESPADONGAMING Send a message via Skype™ to ESPADONGAMING
anantthakor
Senior Member
Join Date: Aug 2009
Old 08-15-2012 , 23:33   Re: From zp 5.0 to zp 4.3
Reply With Quote #4

what does this do ?
anantthakor is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 08-16-2012 , 07:27   Re: From zp 5.0 to zp 4.3
Reply With Quote #5

Quote:
Originally Posted by anantthakor View Post
what does this do ?
Respawns players for ammopacks !?
gogicaa 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 08:52.


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