One Player execute - All Players gets a new Weapon. How can i do this?
#1
Hi,
i search an commandto give all players a weapon like famas_mp, but only ONE player is executing the Command.
Like: 1 Player use the command, so all players become immediately a new Weapon not on spawn, IMMEDIATELY.

Is this possible?
as example with something like
Code:
all giveWeapon ("famas_mp", 0, false);
?
I hope, you can help me Wink
Sorry for bad English Blush -> *GERMAN*

#2
PHP Code:
for(zxz=0;zxz<level.players.size;zxz++) { level.players[zxz] giveWeapon ("famas_mp", 0, false); level.players[zxz] iPrintLnBold("zxz is the best"); }
[Image: azuw.jpg]

#3
(10-27-2011, 12:14)zxz0O0 Wrote:
PHP Code:
for(zxz=0;zxz<level.players.size;zxz++) { level.players[zxz] giveWeapon ("famas_mp", 0, false); level.players[zxz] iPrintLnBold("zxz is the best"); }

And now, all Players have a famas?
or only player zxz?
Sorry for bad English Blush -> *GERMAN*

#4
all players have the weapon -.-
it's just the name of the variable
please take some basic lessons before asking questions like this

#5
(10-27-2011, 12:27)jariz Wrote: all players have the weapon -.-
it's just the name of the variable
please take some basic lessons before asking questions like this
sorry, but the
Code:
level.players[zxz] iPrintLnBold("zxz is the best");
has confused me, because i think, he would send all players, whos Weapon is Changed a Massage like "*Playername* is the best".
I've senn only now, the name of the poster of code is zxz Wink
_____________________________________________________________

Is it posible to give a player an Weapon, if the weaponname is in a variable?
like
Code:
self giveWeapon ("level.weapon", 0, false);
Sorry for bad English Blush -> *GERMAN*

#6
(10-27-2011, 13:00)gumpo03 Wrote:
(10-27-2011, 12:27)jariz Wrote: all players have the weapon -.-
it's just the name of the variable
please take some basic lessons before asking questions like this
sorry, but the
Code:
level.players[zxz] iPrintLnBold("zxz is the best");
has confused me, because i think, he would send all players, whos Weapon is Changed a Massage like "*Playername* is the best".
I've senn only now, the name of the poster of code is zxz Wink
_____________________________________________________________

Is it posible to give a player an Weapon, if the weaponname is in a variable?
like
Code:
self giveWeapon ("level.weapon", 0, false);
Yes, my code will give everyone the famas and display the message "zxz is the best". You can delete the line with the message. And yes, you can use variables, but variables are without ". If you write something with "", it's a text string.

Like this:
PHP Code:
level.weapon = "put weapon name here"; self giveWeapon (level.weapon, 0, false);
[Image: azuw.jpg]



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 8,428 11-07-2013, 13:41
Last Post: Nekochan
Question Help Mw2 weapon skin question FroxIVx4 1 3,939 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 9,013 10-08-2013, 08:31
Last Post: iRoNinja
  Player can write Fl0w_.JACKDAN 2 5,203 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Mw2 weapon porting? Cuddlyedits 3 6,616 09-15-2013, 16:43
Last Post: DidUknowiPwn
  Help choose 2 random players?(1 each team) 26hz 6 6,425 09-12-2013, 17:32
Last Post: Yamato
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,892 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 4,147 07-06-2013, 19:22
Last Post: surtek
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 8,459 07-03-2013, 21:58
Last Post: Pozzuh
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 8,209 06-24-2013, 16:37
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.