UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Custom Wallweapons

broken avatar :(
Created 2 years ago
by Smol
0 Members and 1 Guest are viewing this topic.
755 views
broken avatar :(
×
broken avatar :(
Location: deBaden-Württemberg
Date Registered: 30 October 2021
Last active: 2 days ago
Posts
62
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Working on a map after 2 years
Signature
-Smol
×
Smol's Groups
Smol's Contact & Social LinksSmolPotatusSmol
Hi
 
So here we go again.
 
i added custom wallweapons to Standoff and for some reason i doesnt show the text when you want to buy the weapon.
 
This is my line of code i added in zombiemode_weapons.gsc:
Code Snippet
Plaintext
add_zombie_weapon( "zm_mpl",                                         &"MPL [Cost: 1000]",                         1000,    "",    6 );
    add_zombie_weapon( "zm_mpl_upgraded",                                 &"MPL [Cost: 1000]",                         1000,    "",    6 );
Hope you can help me
Probably gympie :derp:
 
-Smol
 
 
Marked as best answer by Smol 2 years ago
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 3 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
Hi there :)
 
You almost got it right, it's the & that's being used to get localized strings.
 
Examples of what does work without:
 
add_zombie_weapon( "zm_m1911",                                "Press & hold &&1 to buy M1911 [Cost: 100]",                     100,    "vox_crappy",    2 );
add_zombie_weapon( "zm_m1911_upgraded",                        "Press & hold &&1 to buy M1911 upgraded [Cost: 100]",             100,    "vox_crappy",    2 );
add_zombie_weapon( "zm_m1911_upgraded_upgraded",            "Press & hold &&1 to buy M1911 upgraded upgraded [Cost: 100]",    100,    "vox_crappy",    2 );
add_zombie_weapon( "zm_python",                             "Press & hold &&1 to buy Python [Cost: 250]",                     250,     "vox_357",        5 );
add_zombie_weapon( "zm_python_upgraded",                     "Press & hold &&1 to buy Python upgraded [Cost: 250]",             250,     "vox_357",        5 );
add_zombie_weapon( "zm_python_upgraded_upgraded",             "Press & hold &&1 to buy Python upgraded [Cost: 250]",             250,     "vox_357",        5 );
add_zombie_weapon( "zm_hk21",                                 "Press & hold &&1 to buy HK21 [Cost: 1800]",                     1800,    "vox_mg",        5 );
add_zombie_weapon( "zm_hk21_upgraded",                         "Press & hold &&1 to buy HK21 upgraded [Cost: 1800]",             1800,    "vox_mg",        5 );
add_zombie_weapon( "zm_hk21_upgraded_upgraded",             "Press & hold &&1 to buy HK21 upgraded [Cost: 1800]",             1800,    "vox_mg",        5 );
add_zombie_weapon( "zm_mp5",                                "Press & hold &&1 to buy MP5K [Cost: 1000]",                     1000,    "",    2 );
add_zombie_weapon( "zm_mp5_upgraded",                        "Press & hold &&1 to buy MP5K upgraded [Cost: 1000]",             1000,    "",    2 );
add_zombie_weapon( "zm_mp5_upgraded_upgraded",                "Press & hold &&1 to buy MP5K upgraded [Cost: 1000]",             1000,    "",    2 );
 
This is how you use localized strings:
add_zombie_weapon( "tesla_gun",                                &"ZOMBIE_BUY_TESLA",                         10,        "vox_tesla",    5 );
add_zombie_weapon( "tesla_gun_upgraded",                    &"ZOMBIE_BUY_TESLA",                         10,        "vox_tesla",    5 );
Last Edit: January 16, 2022, 07:14:52 pm by gympie6
broken avatar :(
×
broken avatar :(
Location: deBaden-Württemberg
Date Registered: 30 October 2021
Last active: 2 days ago
Posts
62
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Working on a map after 2 years
×
Smol's Groups
Smol's Contact & Social LinksSmolPotatusSmol
Ok nice thank you gympie got it
ofc you it was you who answered, sadly the forum is kinda dead :./
 
Last Edit: January 17, 2022, 03:59:19 pm by Smol
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 3 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
I don't think that the forum is dead, there are currently not many scripters available.
broken avatar :(
×
broken avatar :(
Location: deBaden-Württemberg
Date Registered: 30 October 2021
Last active: 2 days ago
Posts
62
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Working on a map after 2 years
×
Smol's Groups
Smol's Contact & Social LinksSmolPotatusSmol
Yeah you have a point there probably everyone went to Black ops 3 :/
 

 
Loading ...