01.04.2012, 19:16
how to create a When a player uses /me /b or talk to show Name Name, not to show Name_Name ?
stock RemoveUnderScore(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
command(b, playerid, params[])
{
new message[128], string[256];
if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, 0xFFFFFFF, "Server: /b [message]");
{
format(string, sizeof(string), "(( %s says: %s ))", RemoveUnderScore(playerid), message);
SendClientMessage(playerid, COLOR, string);
}
return 1;
}