16.08.2011, 15:26
pawn Код:
COMMAND:adv(playerid, params[])
{
new message[128], string[128], name[MAX_PLAYER_NAME];
if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, WHITE, "USAGE: /adv [message]);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Advertisement by %s: %s.", name, message);
SendClientMessageToAll(GREEN, string);
return 1;
}