Originally Posted by [GF]Sasino97
Put that at the end:
pawn Код:
stock GetNameEx(playerid) { new str[24], String[128]; GetPlayerName(playerid, String, 24); strmid(str, String, 0, strlen(String), 24); for(new i = 0; i < MAX_PLAYER_NAME; i++) { if (str[i] == '_') str[i] = ' '; } return str; }
and that under OnPlayerText
pawn Код:
new name[24]; name = GetNameEx(playerid); new string[128]; format(string,sizeof(string),"%s: {FFFFFF}%s", name, text); return SendClientMessageToAll(GetPlayerColor(playerid), string), 0;
|