14.06.2011, 23:54
_ hidden in as chat?
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;
}
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;
}
new name[24];
name = GetNameEx(playerid);
new string[128];
format(string,sizeof(string),"%s: {FFFFFF}%s", name, text);
return SendClientMessageToAll(GetPlayerColor(playerid), string), 0;
Put that at the end:
pawn Код:
pawn Код:
|