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

how to stop someone buying a wall weapon

broken avatar :(
Created 11 years ago
by Tommy Rampage
0 Members and 1 Guest are viewing this topic.
3,138 views
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 25 February 2015
Last active: 9 years ago
Posts
42
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Lets Slay Some Stiff's
Signature
the victim is the victim, regardless of how their demise manifests itself.
×
Tommy Rampage's Groups
Tommy Rampage's Contact & Social LinksTommyRampagedaslovegloveTommy_rampage@DASLOVEGLOVE
Hello guys dose anyone know how to make it so a player cant buy a select weapon from off the wall. id like to try and troll my gun hungry friend with a mini gun he cant buy.  if someone could help me out id much appreciate it  thanks alot
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: gbEast Midlands
Date Registered: 7 February 2015
Last active: 5 years ago
Posts
643
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Donations massively appreciated: paypal.me/DanT98
Signature
Stranded
Nacht Der Untoten: Reimagined
Encampment
Encampment V2: BO3 Mod

Mapper and Weapon Porter - I release what I can of my work for the community to enjoy :)
×
ProRevenge's Groups
Mapper Has released one or more maps to the UGX-Mods community.
ProRevenge's Contact & Social LinksProRevenge
Make a chalk but dont put a script gunmodel or trigger
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 25 February 2015
Last active: 9 years ago
Posts
42
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Lets Slay Some Stiff's
×
Tommy Rampage's Groups
Tommy Rampage's Contact & Social LinksTommyRampagedaslovegloveTommy_rampage@DASLOVEGLOVE
i thought about that but i wanted to troll my friend with a mini gun ive already ported the mini gun just need to make it so only i can buy it
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 3 months ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Make a chalk but dont put a script gunmodel or trigger

I think he means so on only one specified player can't buy it, and everyone also can. Like what people do to NGT and stuff.
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
Signature
My Custom Zombie Maps:

- Nazi zombie Legion
- City of Hell
- The Abandoned Mine
- The Last Undead House (Finished)

more custom zombie maps coming soon
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
hello,

you can also try that only the host can take the weapon and that you all times play as the host :)


best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 25 February 2015
Last active: 9 years ago
Posts
42
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Lets Slay Some Stiff's
×
Tommy Rampage's Groups
Tommy Rampage's Contact & Social LinksTommyRampagedaslovegloveTommy_rampage@DASLOVEGLOVE
thanks for your help...  im not sure how would i go about doing it so just the host can take the weapon 
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
you would add this to the function that is run when you buy a wall weapon

Code Snippet
Plaintext
players = get_players();
if ( current_player != players[ 0 ] )
    return;
Marked as best answer by Tommy Rampage 11 years ago
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
you would add this to the function that is run when you buy a wall weapon

Code Snippet
Plaintext
players = get_players();
if ( current_player != players[ 0 ] )
    return;
Eh no do this:
(weapon_spawn_think of _zombiemode_weapons.gsc)
Code Snippet
Plaintext
	self.first_time_triggered = false;
for( ;; )
{
self waittill( "trigger", player );
// if not first time and they have the weapon give ammo

if( !is_player_valid( player ) || player.playername == "his_name")
{
player thread ignore_triggers( 0.5 );
continue;
}

if( !player can_buy_weapon() )
{
wait( 0.1 );
continue;
}
Last Edit: March 28, 2015, 02:08:45 am by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
players[ i ] also returns his name yknow

so if your name is "HarryBo"

Then players[ 0 ] would equal "HarryBo" - in which case you just need to end the function early.
Last Edit: March 28, 2015, 03:44:38 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 25 February 2015
Last active: 9 years ago
Posts
42
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Lets Slay Some Stiff's
×
Tommy Rampage's Groups
Tommy Rampage's Contact & Social LinksTommyRampagedaslovegloveTommy_rampage@DASLOVEGLOVE
Eh no do this:
(weapon_spawn_think of _zombiemode_weapons.gsc)
Code Snippet
Plaintext
	self.first_time_triggered = false;
for( ;; )
{
self waittill( "trigger", player );
// if not first time and they have the weapon give ammo

if( !is_player_valid( player ) || player.playername == "his_name")
{
player thread ignore_triggers( 0.5 );
continue;
}

if( !player can_buy_weapon() )
{
wait( 0.1 );
continue;
}
  Thanks for your help guys..  just to make sure this gose in my _zombiemode_weapons.gsc  now will that be at the bottom, middle, or im i replacing something sorry im still getting the hang of this.  again thanks
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
Eh no do this:
(weapon_spawn_think of _zombiemode_weapons.gsc)

In the   weapon_spawn_think(  ( just search for that )  function in zombiemode_weapons, and i think only the part:

Code Snippet
Plaintext
 || player.playername == "his_name" 

is new, paste that in the correct place, and enter the waw-profile name instead of   his_name  in the line above
Last Edit: March 28, 2015, 11:40:46 am by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 25 February 2015
Last active: 9 years ago
Posts
42
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Lets Slay Some Stiff's
×
Tommy Rampage's Groups
Tommy Rampage's Contact & Social LinksTommyRampagedaslovegloveTommy_rampage@DASLOVEGLOVE
In the   weapon_spawn_think(  ( just search for that )  function in zombiemode_weapons, and i think only the part:

Code Snippet
Plaintext
 || player.playername == "his_name" 

is new, paste that in the correct place, and enter the waw-profile name instead of   his_name  in the line above
 

Thanks man il give it a try

 
Loading ...