27.09.2009, 12:18
pawn Код:
if (strcmp("/afk", cmdtext, true, 4) == 0)
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is Afk,:(.", name);
SendClientMessageToAll(GREEN, string);
format(string, sizeof(string),"[AFK]%s", name);
SetPlayerName(playerid, string);
return 1;
}
There you go 
P.S I moved the Message before It sets the name, so It says "3xPloSioNxXx is Afk
." instead of "[AFK]3xPloSioNxXx is Afk
."
