24.01.2013, 14:43
pawn Код:
public newbie_sendMsg(color,const string[])
{
for(new i = MIN_PLAYERID; i < MAX_PLAYERS_CURRENT+1; i++)
{
if(IsPlayerConnected(i))
{
if (pack_isAdmin(i,1) && PlayerVip[i][VipLevel] == 4 && PlayerInfo[i][pLevel] <= 18)
return SendClientMessage(i, color, string);
SendClientMessage(i, color, string);
if (pack_isAdmin(i,1) && PlayerVip[i][VipLevel] == 4)
return SendClientMessage(i, color, string);
if (PlayerVip[i][VipLevel] == 4 && PlayerInfo[i][pLevel] <= 18)
return SendClientMessage(i, color, string);
if (pack_isAdmin(i,1) && PlayerInfo[i][pLevel] <= 18)
return
if (pack_isAdmin(i,1) || PlayerVip[i][VipLevel] == 4 || PlayerInfo[i][pLevel] <= 18)
{SendClientMessage(i, color, string);}
}
}
return 1;
}