10.02.2013, 23:24
como dexo o meu nome sem underline sу o meu nick tipo ADM Avenger??
public OnPlayerText(playerid, text[])
{
new nick[24],
string[128]
;
GetPlayerName(playerid, nick, 24);
for(new n; n < strlen(nick); ++n)
{
if (nick[n] == '_') nick[n] = ' ';
}
format(string, sizeof string, "%s: %s", nick, text);
SendClientMessageToAll(-1, string);
return 0;
}
public OnPlayerText(playerid, text[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
if(!strcmp(pName, "_", true))
{
for(new i = 0; i < MAX_PLAYER_NAME; ++i)
{
if(pName[i] == '_') pName[i] = ' ';
}
}
format(string, sizeof(string), "%s: %s", pName, text);
SendClientMessageToAll(COR, string);
return 0;
}