07.01.2011, 12:59
Like while doing an Announcement from an Admin...
How to remove "_" from message? Thanks!
Code:
new sendername[MAX_PLAYER_NAME]; new msg[256]; if (sscanf(params, "s", msg)) SendClientMessage(playerid, COLOR_RED, "USAGE: /ann [text]"); else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(msg, sizeof(msg), "Announcement from %s: %s", sendername, msg); SendClientMessageToAll(COLOR_LOCALMSG, msg); } } return 1; }