Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP4.3 & 5.0] Extra Item: Deadly Shot v1.0 (For Human)(Now Support ZP5.0)


Post New Thread Reply   
 
Thread Tools Display Modes
e1242656
Junior Member
Join Date: Nov 2011
Location: Taiwan
Old 02-02-2013 , 07:06   Re: [ZP4.3 & 5.0] Extra Item: Deadly Shot v1.0 (For Human)(Now Support ZP5.0)
Reply With Quote #11

The plugin for ZP5.0 was bad load in game.
Why?
I'm use ZP5.0.8 now.
__________________
HI!~
e1242656 is offline
Send a message via MSN to e1242656 Send a message via Yahoo to e1242656 Send a message via Skype™ to e1242656
FearyDust
Member
Join Date: Aug 2012
Old 06-02-2013 , 05:16   Re: [ZP4.3 & 5.0] Extra Item: Deadly Shot v1.0 (For Human)(Now Support ZP5.0)
Reply With Quote #12

For ZP 5.0.5 how to make it only for human !??

Last edited by FearyDust; 06-02-2013 at 05:16.
FearyDust is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-02-2013 , 11:38   Re: [ZP4.3 & 5.0] Extra Item: Deadly Shot v1.0 (For Human)(Now Support ZP5.0)
Reply With Quote #13

Add :
PHP Code:
public zp_fw_items_select_pre(iditemid)
{
     if(
itemid == g_deadlyshot)
     {  
        if(
zp_core_is_zombie(id)
        return 
ZP_ITEM_DONT_SHOW
 
        
else
        return 
ZP_ITEM_AVAILABLE
         
     
}
     return 
PLUGIN_CONTINUE

right before :

PHP Code:
public zp_fw_items_select_post(iditemid)
{
    if(
itemid != g_deadlyshot)
        return 
PLUGIN_HANDLED
        
    
if(!has_item[id] || using_item[id])
    {
        
client_print(idprint_chat"[ZP] You bought Deadly Shot !!!")
        
        
has_item[id] = true
        using_item
[id] = false
        
        set_task
(0.1"show_hud"id+TASK_HUD__"b")
    } else {
        
client_print(idprint_chat"[ZP] You can't buy Deadly Shot at this time...")
        
zp_ammopacks_set(idzp_ammopacks_get(id) + get_pcvar_num(cvar_deadlyshot_cost))
    }
    
    return 
PLUGIN_CONTINUE

__________________
You will find everything u need :-
Catastrophe is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 06-16-2014 , 07:24   Re: [ZP4.3 & 5.0] Extra Item: Deadly Shot v1.0 (For Human)(Now Support ZP5.0)
Reply With Quote #14

This plugin still working. I have tested it i my ZPA 1.6.1 server.

Please have a visit at the new list of 3rd party:

Last edited by zmd94; 08-15-2014 at 06:25.
zmd94 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 23:29.


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