Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item : FlameXM1014


Post New Thread Reply   
 
Thread Tools Display Modes
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 01-09-2010 , 06:01   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #31

Quote:
Originally Posted by I0ri View Post
i use the plugin u gave me.. then when i enter my svr it does download the model that i want.. but when i buy it, it shows the normal xm1014 mdl..
mm. Little error.

Search in the .sma
PHP Code:
            // Give auto-shotgun
            
give_item(id"weapon_xm1014")
            
            
// Give ammo
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot")

            
// Set FlameXM1014
            
g_bFlameXM1014[id] = true 
and change it to
PHP Code:
            // Set FlameXM1014
            
g_bFlameXM1014[id] = true
            
            
// Give auto-shotgun
            
give_item(id"weapon_xm1014")
            
            
// Give ammo
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot")
            
give_item(id"ammo_buckshot"
__________________
Javivi is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 01-09-2010 , 06:23   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #32

Code:
if(!zp_has_round_started() || g_bFlameXM1014[id])
        {
            client_print(id, print_chat, "You can't buy the FlameXM1014 at this moment!")
            zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + WEAPON_COST)    
        }
--->
Code:
if(!zp_has_round_started() || g_bFlameXM1014[id])
        {
            client_print(id, print_chat, "You can't buy the FlameXM1014 at this moment!")
           return ZP_PLUGIN_HANDLED
        }
Code:
// If some human drop the FlameXM1014
    if(is_user_alive(id) && !zp_get_user_zombie(id)
    && get_user_weapon(id) == CSW_XM1014 && g_bFlameXM1014 [id])
    {
        g_bFlameXM1014[id] = false
    }
--->
Code:
// If some human drop the FlameXM1014
    if(is_user_alive(id) && get_user_weapon(id) == CSW_XM1014 && g_bFlameXM1014 [id])
    {
        g_bFlameXM1014[id] = false
    }
Zombies cannot hold xm1014 is any case
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 01-09-2010 , 07:36   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #33

Quote:
Originally Posted by NiHiLaNTh View Post
Code:
if(!zp_has_round_started() || g_bFlameXM1014[id])
        {
            client_print(id, print_chat, "You can't buy the FlameXM1014 at this moment!")
            zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + WEAPON_COST)    
        }
--->
Code:
if(!zp_has_round_started() || g_bFlameXM1014[id])
        {
            client_print(id, print_chat, "You can't buy the FlameXM1014 at this moment!")
           return ZP_PLUGIN_HANDLED
        }
Code:
// If some human drop the FlameXM1014
    if(is_user_alive(id) && !zp_get_user_zombie(id)
    && get_user_weapon(id) == CSW_XM1014 && g_bFlameXM1014 [id])
    {
        g_bFlameXM1014[id] = false
    }
--->
Code:
// If some human drop the FlameXM1014
    if(is_user_alive(id) && get_user_weapon(id) == CSW_XM1014 && g_bFlameXM1014 [id])
    {
        g_bFlameXM1014[id] = false
    }
Zombies cannot hold xm1014 is any case

No, i want support old versions
I will add a define for old versions


Ok.


Plugin Updated!
__________________
Javivi is offline
Shoul
BANNED
Join Date: Aug 2009
Location: VietNam
Old 01-10-2010 , 07:33   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #34

Nothing happens when i bought it , it looks like a normal xm1014
Shoul is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 01-10-2010 , 10:33   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #35

Quote:
Originally Posted by Shoul View Post
Nothing happens when i bought it , it looks like a normal xm1014
It's a normal xm1014, with fire bullets.
__________________
Javivi is offline
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 01-10-2010 , 20:46   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #36

you can add a custom model

V P and W

for more stuff
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
Shoul
BANNED
Join Date: Aug 2009
Location: VietNam
Old 01-11-2010 , 00:55   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #37

Quote:
Originally Posted by Javivi View Post
It's a normal xm1014, with fire bullets.
I knew but no fire bullets , too .
Shoul is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 01-11-2010 , 09:35   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #38

Quote:
Originally Posted by eXacT View Post
you can add a custom model

V P and W

for more stuff
I already added a unofficial version with model.

Quote:
Originally Posted by Shoul View Post
I knew but no fire bullets , too .
So ok, i will fix it with my mind

Please, type these commands in rcon console and show me the output:

meta version
meta list
amxx plugins


Thanks!
__________________
Javivi is offline
Shoul
BANNED
Join Date: Aug 2009
Location: VietNam
Old 01-12-2010 , 00:58   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #39


Last edited by Shoul; 01-12-2010 at 09:20.
Shoul is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 01-12-2010 , 09:08   Re: [ZP] Extra Item : FlameXM1014
Reply With Quote #40

Code:
[ 2] dproto RUN - dproto_i386.so v0.3.6 ini Start Never
Non-Steam = No Support
__________________
Javivi 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 12:21.


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