30.03.2013, 15:36
pawn Код:
CMD:asay(playerid, params[])
{
new String[100];
if(PlayerInfo[playerid][AdminLevel] < 1)
return SendClientMessage(playerid, -1, "You need to be an Adminstrator to use this command!");
else if(sscanf(params, "s[100]", String))
return SendClientMessage(playerid, -1, "Usage: /asay <text>");
else
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(String, 100, "Adminstrator %s : %s", pName, String);
SendClientMessageToAll(-1, String);
}
return 1;
}