15.12.2014, 04:29
here you go again
pawn Код:
//Orange For Admin Name - F6970C ( done )
//so now this is a admin command
#define adminOrange "{F6970C}"
#define chatGrey "{00efad}"
command(b, playerid, params[])
{
new Message[128], string[128];
if(Player[playerid][AdminLevel] >= 1)
{
if(sscanf(params, "z", Message))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /b [message]");
}
else
{
if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
{
return 1;
}
else
{
if(Player[playerid][PrisonID] == 1)
{
SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
}
else
{
format(string, sizeof(string), ""adminOrange"%s: "chatColor"((%s)) ", GetName(playerid), Message);
NearByMessage(playerid, WHITE, string);
}
}
}
}
return 1;
}