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

Help / Support [ZP] Buy Extra Weapon Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
serjaka
Senior Member
Join Date: Oct 2011
Old 11-19-2013 , 15:33   [ZP] Buy Extra Weapon Message
Reply With Quote #1

Hello Guys , i want to add Buy Message to Extra Weapons (when you buy fire, frost, light grenade, auto sniper, magnup etc.) but i have 1 problem with code , i want real name of weapon like in Extra Items Menu!
CODE:
PHP Code:
default:
        {
            if (
itemid >= EXTRA_WEAPONS_STARTID && itemid <= EXTRAS_CUSTOM_STARTID-1// Weapons
            
{
                
// Get weapon's id and name
                
static weaponidwname[32]
                
ArrayGetString(g_extraweapon_itemsitemid EXTRA_WEAPONS_STARTIDwnamecharsmax(wname))
                
weaponid cs_weapon_name_to_id(wname)
                
zp_colored_print(0"^x04[ZP]^x01 You bought^x04 %s^x01!"wname
SCREEN:
serjaka is offline
serjaka
Senior Member
Join Date: Oct 2011
Old 11-21-2013 , 10:11   Re: [ZP] Buy Extra Weapon Message
Reply With Quote #2

SOLVED!!!

Last edited by serjaka; 11-21-2013 at 10:14.
serjaka is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-21-2013 , 11:48   Re: [ZP] Buy Extra Weapon Message
Reply With Quote #3

Post the solucion..
wicho is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-21-2013 , 18:07   Re: [ZP] Buy Extra Weapon Message
Reply With Quote #4

Quote:
Originally Posted by wicho View Post
Post the solucion..
Nice translator

Post the solution for another ppl that want something like this
__________________
alan_el_more 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 18:05.


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