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); }
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[a][VIP] == 1)
SendClientMessage(a, COLOR_GREY, string);
}
Originally Posted by hctiB_selffaW_yM
when i use taht tihs happns:
when i write @LOL My_Waffles_Bitch: @LOL [VIP] My_Waffles_Bitch: LOL and when i write #LOL nuttin happns :< |
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; }
Originally Posted by hctiB_selffaW_yM
ok, now tah VIP chat works perfect :> but i got probs with tah admin chat :<
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; } |
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; }
Originally Posted by hctiB_selffaW_yM
i fixd it by myself :>
Код:
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; } |