Results 1 to 5 of 5

Thread: status icon

  1. #1
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    status icon

    Hey all,
    Could someone help me?
    I have one question.
    I am going to give status icon over head for everyone enemy.
    If self.statuspoint = 2
    {
    give all enemies status icon over head but only this one who has self.statuspoint = 2 can see this status icons.
    }

    hmm... something like wh xD,
    If self.statuspoint = 2 this self see over enemies stausicon, but in the same moment all selfs who have self.statuspoint = 1 see nothing over enemies.

    my script:

    PHP Code:
    if self.statuspoint 2
    self thread skrypt
    ()

    skrypt()
    {
    self endon("disconnect");
    self endon("player_killed");

    players getentarray("player""classname");
    for(
    0players.sizei++)
    {
    player players;
    if (
    self.pers["team"] != player.pers["team"])
    {
    player.statusicon "example_img";
    }
    }


  2. #2
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Use player = players[i]; instead

  3. The Following User Says Thank You to EvoloZz For This Useful Post:

    kung foo man (29th March 2013)

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Please write [php][/php] next time around your code (color indention).
    timescale 0.01

  5. #4
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    Just take a look in the _friendicons.gsc
    No ... No ... this is not possible .......

  6. The Following User Says Thank You to Earliboy For This Useful Post:

    kung foo man (29th March 2013)

  7. #5
    ... connecting
    Join Date
    Jan 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I mean Head Icon not status icon

Posting Permissions

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