17.06.2010, 14:15
Here the function i use, you can have it.
E.g.
Код:
stock Name(playerid) { new name[MAX_PLAYER_NAME], stri[24]; GetPlayerName(playerid,name,24); strmid(stri,name,0,strlen(name),24); for(new i = 0; i < MAX_PLAYER_NAME; i++) { if (stri[i] == '_') stri[i] = ' '; } return stri; }
Код:
OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "%s: %s", Name(playerid), text); SendClientMessage(playerid, 0xFFFFFFFF, string); return 0; }