13.04.2012, 09:01
I wonder if Player name accepts '<' or '>' as a character..
pawn Код:
CMD:afk(playerid, params[])
{
new tempstr[MAX_PLAYER_NAME + 6], message[42];
GetPlayerName(playerid, tempstr, sizeof tempstr);
format(message, sizeof message, "%s is now <AFK>", tempstr);
SendClientMessageToAll(cyellow, message);
format(tempstr, sizeof tempstr, "%s[AFK]", tempstr);
SetPlayerName(playerid, tempstr);
return 1;
}