Liberty Unleashed

Scripting => Script Help => Topic started by: mimomohamed on August 12, 2012, 11:14:02 am

Title: making something to all players
Post by: mimomohamed on August 12, 2012, 11:14:02 am
I MEAN LIKE IF I NEED ALL PLAYERS GO TO ONE PLACE OR KILL ALL PLAYERS OR HEAL ALL PLAYERS ETC.........
Title: Re: making something to all players
Post by: Rocky on August 12, 2012, 11:18:46 am
Code: [Select]
local i = 0;
while(i < GetMaxPlayers())
{
   if(FindPlayer(i))
   {
       local plr = FindPlayer(i);
       //whatever you want ex: plr.Health = 0; plr.SetWeapon(4,100); etc.. plr.Pos = Vector( 126.2, 263.3, 256);
   }
    i++;
}
Title: Re: making something to all players
Post by: mimomohamed on August 12, 2012, 04:11:50 pm
OW THANKS VERY MUCH FOR UR FANTASTIC HELP  ;D :)