03.01.2015, 13:16
pawn Код:
if(text[0] == '!' && PlayerInfo[playerid][LevelCLAN] >= 1){
new string[188];
new pname[28];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Chat clг ~ %s: (%i): %s",pname,playerid,text[1]);
MessageToCla(green,string);
for(new i; i < GetMaxPlayers(); ++i){
if(IsPlayerConnected(i) && (CallRemoteFunction("GetPlayerAdminLevel","i",i) >= 4)) {
if(PlayerInfo[playerid][Clan] != PlayerInfo[i][Clan]) { //Vocк aqui tкm de colocar a variavel correta do clan
format(string, sizeof(string), "CHAT CLГ >> %s (%i): %s", pname, playerid, text[1]);
SendClientMessage(i, 0xFF9900AA, string);
}
}
}
}