help cmd
#1

iwant to change color chat always like
level 1 - level 3 = green
level 4 -level 5 = red
level 6 level 7= blue

not MessageToAdmins(blue,string); its only 1 color
Reply
#2

Код:
CMD:a(playerid,params[]) 
{ 
    if(PlayerInfo[playerid][Level] >= 1) 
    { 
        new string[128]; format(string, sizeof(string), "[ADMIN-CHAT] %s: %s", PlayerName2(playerid), params[0] );
        switch(PlayerInfo[playerid][Level])
        {
                case 1, 2, 3:MessageToAdmins(green,string); 
                case 4, 5   :MessageToAdmins(red,string); 
                case 6, 7   :MessageToAdmins(blue,string); 
        } 

         #if ADM_CHAT_LOG == true 
        SaveToFile("AdmChatLog",string); 
        #endif 
    } 
    else return SendClientMessage(playerid,red,"ERROR: You need to be admin to use this command"); 
    return 1; 
}
Reply
#3

thx Golimad

+1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)