Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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*
Reply

#2
PHP Code:
for(zxz=0;zxz<level.players.size;zxz++)
{
    
level.players[zxzgiveWeapon ("famas_mp"0false);
    
level.players[zxziPrintLnBold("zxz is the best");

[Image: azuw.jpg]
Reply

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


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

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

#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*
Reply

#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.weapon0false); 
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 5,921 11-07-2013, 13:41
Last Post: Nekochan
Question Help Mw2 weapon skin question FroxIVx4 1 2,969 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,636 10-08-2013, 08:31
Last Post: iRoNinja
  Player can write Fl0w_.JACKDAN 2 3,375 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Mw2 weapon porting? Cuddlyedits 3 4,770 09-15-2013, 16:43
Last Post: DidUknowiPwn
  Help choose 2 random players?(1 each team) 26hz 6 4,691 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,551 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,779 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,939 07-06-2013, 19:22
Last Post: surtek
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 5,910 07-03-2013, 21:58
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.