17.09.2012, 08:52
pawn Код:
command(v, playerid, params[])
{
if(!Player[playerid][VipRank]) return 0; //or 1, a message, whatever you want
if(!isnull(params))
{
new string[128], color[9];
if(Player[playerid][AdminLevel]) format(color, sizeof(color), "{CC0000}");
else format(color, sizeof(color), "{}");
format(string, sizeof(string), "[VIP] %s%s{999999} says (%d): %s", color, GetName(playerid), Player[playerid][VipRank], params);
for(new i=0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && Player[i][VipRank] && !Player[i][ToggedVIP])
SendClientMessage(i, 0xF2C200FF, string);
}
else return SendClientMessage(playerid, WHITE, "SYNTAX: /(v)ip [message]");
return 1;
}