27.02.2012, 17:14
pawn Код:
dcmd_vchat( playerid, params[] )
{
if( Vip[ playerid ] < 1 )
return SendClientMessage( playerid, COLOR_CERVENA, " [!] Only Vips can do that !" );
if(Vip[playerid] >= 1)
{
if(!strlen(params)) return SendClientMessage( playerid, COLOR_CERVENA, "Usage: /vchat [text]" );
new name[24];
GetPlayerName(playerid, name, 24);
new string[300];
format(string, sizeof(string), "[VIP CHAT] %s [%d]: %s", name, playerid, string[1]);
for(new i=0; i<MAX_PLAYERS; i++) if(Vip[i]>=1) SendClientMessage(i, COLOR_WHITE, string);
}
return 1;
}