SA-MP Forums Archive
Afk system - 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: Afk system (/showthread.php?tid=364664)



Afk system - [M.A]Angel[M.A] - 31.07.2012

hello , i searched for afk system but i did not found what i want i want when player type /afk , server set them name
: [AFK]Player1 , so all can see in tab that he is afk , thanks.


Re: Afk system - Glint - 31.07.2012

There are millions of these systems in he filterscripts section and there are tutorials on how to make them in the tutorials section.


Re: Afk system - [M.A]Angel[M.A] - 31.07.2012

I know i need when someone type /afk set them name with [AFK] : [AFK]Lexi' (In TaB)


Re: Afk system - XStormiest - 31.07.2012

read my signature...

for setting the name use this in your command

pawn Код:
new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid,name,sizeof(name));
      format(string,sizeof(string),"[AFK]%s",name);
     SetPlayerName(playerid,string);
and removing
pawn Код:
new name[MAX_PLAYER_NAME], string[256];
    GetPlayerName(playerid,name,sizeof(name));
      format(string,sizeof(string),"%s",name);
     SetPlayerName(playerid,string);