19.02.2009, 05:14
when i write in game, nuttin happns, and i dont see anythin :<
i got this:
i got this:
Код:
public OnPlayerText(playerid, text[]) { 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[playerid][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[playerid][Level] >= 1 || PlayerInfo[playerid][VIP] == 1) SendClientMessage(a, COLOR_GREY, string); }