Results 1 to 10 of 11

Thread: Exchange weapons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    I will show you based on this code:

    Code:
    if(self.name == Loveboy)      //<- for example if player got name "Loveboy" then continue
    {
           players = getentarray("player", "classname");
           aimedplayer = undefined;              //undefined yet
           for(i = 0; i < players.size; i++)
           {
                  if(self islookingat (players[i]) )   //here is used IsLookingAt function... so if player is looking at the target(on other player) then continue also...
                  {
                          aimedplayer = players[i];
                          players[i] iprintlnBold("something!")      //this text is visible only for aimed player...
                  }
           }
    }
    I hope you understand now, if you have questions write.
    Last edited by Jeplaa; 28th December 2012 at 16:08.

  2. The Following User Says Thank You to Jeplaa For This Useful Post:

    kung foo man (28th December 2012)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •