SA-MP Forums Archive
need help with afk - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with afk (/showthread.php?tid=88949)



need help with afk - tommy5933 - 30.07.2009

i know how to make an afk system, but i have one slight problem. I would like it where when the person does /afk his name becomes white and he has an [afk] next to his name. then when he types /back it resets his tag color and name. can somebody help me with this?

here's how i want it:

/afk

Tommy[AFK]


/back
Tommy





Re: need help with afk - abhinavdabral - 30.07.2009

Just change the name using SetPlayerName and store their colors in an array and then change their colors and restore them whenever you want