17.03.2012, 09:11
I made a script:
pawn Код:
CMD:announce(playerid, params[])
{
new playername[MAX_PLAYER_NAME], string[128], message[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLORHERE, "You Need To Be An Admin To Use This Command"); //replace COLORHERE with one of your implemented colors from your script
if(sscanf(params, "s", message))
{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "Announcement by %s: %s", playername, message);
}
else return SendClientMessage(playerid, COLORHERE, "Usage: /announce [Message]"); //replace COLORHERE with one of your implemented colors from your script
return 1;
}