SA-MP Forums Archive
afk command - 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: afk command (/showthread.php?tid=67527)



afk command - CJ101 - 02.03.2009

ok i want to make a /afk [reason]
and then display to all players 'CJ101 is AFK. (Reason: On SA-MP Forums)

how would i code this? tottaly lost.

i already made the /back command.


Re: afk command - Damon_Black - 02.03.2009

it only takes 3 functions:

GetPlayerName
format
SendClientMessageToAllPlayers


research those


Re: afk command - Rks25 - 02.03.2009

Also a addition of strtok if using normal commands, else params for dcmd or sscanf.