19.02.2009, 07:25
ok, now tah VIP chat works perfect :> but i got probs with tah admin chat :<
what i got:
what i got:
Код:
if(text[0] == '#' && PlayerInfo[playerid][Level] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"[ADMIN] %s: %s",string,text[1]);
for (new a = 0; a < MAX_PLAYERS; a++) if(IsPlayerConnected(a) && PlayerInfo[a][Level] == 1)
SendClientMessage(a, COLOR_GREEN, string);
}
if(text[0] == '@' && PlayerInfo[playerid][Level] >= 1 || PlayerInfo[playerid][VIP] == 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"[VIP] %s: %s",string,text[1]);
for (new a = 0; a < MAX_PLAYERS; a++) if(IsPlayerConnected(a) && PlayerInfo[a][Level] >= 1 || PlayerInfo[playerid][VIP] == 1)
SendClientMessage(a, COLOR_GREY, string);
return 0;
}

