SA-MP Forums Archive
Idle Check - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Idle Check (/showthread.php?tid=508444)



Idle Check - xDeadlyBoy - 22.04.2014

as i've noticed, when a player is idle (aka pressed the ESC key) there is a little icon shown near his nickname.
is there a possible way of knowing it in the script? (something like IsPlayerIdle)


Re: Idle Check - BroZeus - 22.04.2014

https://sampforum.blast.hk/showthread.php?tid=490436
very usefull include this has what u needs


Re: Idle Check - xDeadlyBoy - 22.04.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=490436
very usefull include this has what u needs
i'll check it out.. thanks!


Re: Idle Check - Bingo - 22.04.2014

The SA-MP nametag can now show the alt-tab/paused status of a player. Use the client command /nametagstatus to toggle this feature on/off.

In script something,

pawn Код:
if (strcmp("/hidetags", cmdtext, true) == 0)
    {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
  }
  return 1;
}

if (strcmp("/showtags", cmdtext, true) == 0)
    {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, true);
  }
  return 1;
}
The player who typed /hidetag will not be able to see any other players nametag

https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
https://sampwiki.blast.hk/wiki/ShowNameTags