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

Give a certain player something.

broken avatar :(
Created 8 years ago
by J17K
0 Members and 1 Guest are viewing this topic.
2,873 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 February 2014
Last active: 7 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
J17K's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
J17K's Contact & Social Links
How would I give a player say 500 points at the beginning of the game based on the name being "JimBob204". I want to give specific player names things when they start up the map. Any help is greatly appreciated.
Marked as best answer by J17K 8 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
first off why would you do that? lol anyways this is how you would do it
Code Snippet
Plaintext
onPlayerConnect()
{
          while(1)
          {
                     level waittill( "connecting", player );
                     player thread onPlayerSpawn();
           }
}
onPlayerSpawn()
{
          self waittill("spawned_player");
          if(self.playername =="JimBob204")
                  self  maps\_zombiemode_score::add_to_player_score(500);
}
broken avatar :(
×
broken avatar :(
Location: usMissouri
Date Registered: 6 August 2013
Last active: 6 months ago
Posts
513
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
My Contact & Social Links
More
Signature
Projects:
Unnamed Project: 5%
Mutliple Downloadable Items for Mappers: (Released after map releases)
×
GerardS0406's Groups
GerardS0406's Contact & Social LinksGerardS0406Gerard0406GerardS0406MrGerard0406
first off why would you do that? lol anyways this is how you would do it
I would assume it's his WaW username and he wants to give himself a head-start on his map? lol
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 3 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
I would assume it's his WaW username and he wants to give himself a head-start on his map? lol
i figured that too lol, i guess i dont understand why
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 February 2014
Last active: 7 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
J17K's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
J17K's Contact & Social Links
I would assume it's his WaW username and he wants to give himself a head-start on his map? lol
Well now that I know how to do this I'm going to make it so it downs one of my friends who plays my map when it starts. Just a joke, thats all lol.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Well now that I know how to do this I'm going to make it so it downs one of my friends who plays my map when it starts. Just a joke, thats all lol.

You guys and your trolling, lol. Please remember to mark best answer.  :D from buttkicker845

 
Loading ...