Raised This Month: $32 Target: $400
 8% 

Help / Support [T] How to Give Any Extra Item to Survivor


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-26-2014 , 11:43   Re: [TUT] How to Give Any Extra Item to Survivor
Reply With Quote #21

Just try this code:
PHP Code:
#include <zp50_core>

// Custom include for plasma class
// Just change it into your own include name if it is not the same. ;)
#include <p50_class_plasma>

public zp_fw_core_cure_post(idattacker)
{
    
// If the player is using the plasma class
    
if(zp_class_plasma_get(id))
    {
        
// Free plasma weapon. ;)
        
g_HasRifle[id] = true
        give_item
(id"weapon_famas")
    }

zmd94 is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 11-26-2014 , 12:07   Re: [TUT] How to Give Any Extra Item to Survivor
Reply With Quote #22

Wow,this one working perfectly

I think that clcmd_drop code didnt work,because plasma class(that I creadet from survivor) has a clcmd_drop code too,to prevent droping weapon of plasma.....

I totally forgot we have this zp_fw_core_cure_post

And i have another question,how can I add a p_model knife for survivor?
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-26-2014 , 12:13   Re: [TUT] How to Give Any Extra Item to Survivor
Reply With Quote #23

;)

Just extract the method for p_model from this code: https://forums.alliedmods.net/showpo...&postcount=259
zmd94 is offline
Reply


Thread Tools
Display Modes

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 02:17.


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