[Ajuda] Prefixo admin no chat + chat proximo
#8

Quote:
Originally Posted by Ryuzaki07
View Post
Opa maninho, nгo deu nenhum erro, porem agora quem tem cargo no servidor ao digitar a mensagem simplesmente nгo aparece no chat, apenas com quem ta com cargo no servidor.
Se for o que entendi, tenta assim agr:

PHP Code:
if(aInfo[playerid][Ajudante] == 1)
    {
        new 
FloatCoords[3], Nick[24], Str[256];
        
GetPlayerPos(playeridCoords[0], Coords[1], Coords[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] [{FFFF00}Ajudante{FFFFFF}]{FFFFFF} %s"Nickplayeridtext);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Coords[0], Coords[1], Coords[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
     }
        return 
0;
    }
        if(
aInfo[playerid][Moderador] == 1)
    {
        new 
FloatCoords[3], Nick[24], Str[256];
        
GetPlayerPos(playeridCoords[0], Coords[1], Coords[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] [{FF8C00}Mod{FFFFFF}]{FFFFFF} %s"Nickplayeridtext);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Coords[0], Coords[1], Coords[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
     }
        return 
0;
    }
        if(
aInfo[playerid][Admin] == 1)
    {
        new 
FloatCoords[3], Nick[24], Str[256], Str[256];
        
GetPlayerPos(playeridCoords[0], Coords[1], Coords[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] [{00FF40}Admin{FFFFFF}]{FFFFFF} %s"Nickplayeridtext);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Coords[0], Coords[1], Coords[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
     }
        return 
0;
    }
        if(
aInfo[playerid][Subdono] == 1)
    {
        new 
FloatCoords[3], Nick[24], Str[256];
        
GetPlayerPos(playeridCoords[0], Coords[1], Coords[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] [{AA00F2}Sub-Dono{FFFFFF}]{FFFFFF} %s"Nickplayeridtext);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Coords[0], Coords[1], Coords[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
     }
        return 
0;
    }
        if(
aInfo[playerid][AdminL] == 1)
    {
        new 
FloatCoords[3], Nick[24], Str[256];
        
GetPlayerPos(playeridCoords[0], Coords[1], Coords[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] [{32CD32}Staff{FFFFFF}]{FFFFFF} %s"Nickplayeridtext);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Coords[0], Coords[1], Coords[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
     }
        return 
0;
    }
    if(
BMO_GetInt(afile,"VIP") == 1)
    {
        new 
FloatPos[3], Nick[24], Str[256];
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
        
GetPlayerName(playeridNicksizeof(Nick));
        
format(Strsizeof(Str), "%s{FFFFFF}:[%d] {00FF00}[{FF0000}VIP{00FF00}]{00FFFF} %s",pname,playerid,text);
        for(new 
0MAX_PLAYERSi++)
             {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), Str);
            }
        }
        return 
0;
    } 
Reply


Messages In This Thread
Prefixo admin no chat + chat proximo - by Ryuzaki07 - 23.12.2017, 06:13
Re: Prefixo admin no chat + chat proximo - by C4rtm4n - 23.12.2017, 08:46
Re: Prefixo admin no chat + chat proximo - by Psicotico - 23.12.2017, 13:59
Re: Prefixo admin no chat + chat proximo - by ipsLuan - 23.12.2017, 14:21
Re: Prefixo admin no chat + chat proximo - by Ryuzaki07 - 23.12.2017, 17:29
Re: Prefixo admin no chat + chat proximo - by Psicotico - 23.12.2017, 18:23
Re: Prefixo admin no chat + chat proximo - by Ryuzaki07 - 23.12.2017, 20:46
Re: Prefixo admin no chat + chat proximo - by Psicotico - 23.12.2017, 22:57
Re: Prefixo admin no chat + chat proximo - by Marllun - 23.12.2017, 23:46
Re: Prefixo admin no chat + chat proximo - by Ryuzaki07 - 23.12.2017, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)