14.04.2011, 14:06
if you have included zcmd, why don't you use it?
btw you should search for it first after ask. same topic opened about 1 hour ago.
pawn Код:
//Announcer script by Seven_of_Nine :]
COMMAND:announce(playerid,params[]) {
new
poster[40],
mess[128];
sscanf(params,"s",mess);
if(PlayerInfo[playerid][pAdminLevel] >= 3) {
if(!isnull(mess)) {
new text[128];
GetPlayerName(playerid,poster,sizeof(poster));
format(text,sizeof(text),"[Announce] | Administrator \"%s\" has announced his message. (%s)",poster,mess);
SendClientMessageToAll(COLOR_LIGHTBLUE,text);
GameTextForAll(mess,5000,3);
} else {
return SendClientMessage(playerid,red,"USAGE: /announce [message], and all players will see this message on-screen.");
}
} else {
return SendClientMessage(playerid,red,"Only lvl3 admins can use this command. Looking for a way to announce? Try /message!");
}
return 1;
}