Idle Check
#1

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)
Reply
#2

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

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!
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)