19.02.2009, 08:12
i fixd it by myself :>
now teh chats works perfecto :>
Код:
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]);
MessageToAdmins(COLOR_GREEN, string);
return 0;
}
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;
}

