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

Quote:
Originally Posted by Psicotico
View Post
Esqueci de um detalhe.

Ponha esse:
PHP Code:
if(aInfo[playerid][Ajudante] == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] [{FFFF00}Ajudante{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
        for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    }
        if(
aInfo[playerid][Moderador] == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] [{FF8C00}Mod{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
           for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    }
        if(
aInfo[playerid][Admin] == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] [{00FF40}Admin{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
        for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    }
        if(
aInfo[playerid][Subdono] == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] [{AA00F2}Sub-Dono{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
        for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    }
        if(
aInfo[playerid][AdminL] == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] [{32CD32}Staff{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
        for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    }
    if(
BMO_GetInt(afile,"VIP") == 1)
    {
        new 
stringv[128], Float:Pos[3];
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(stringvsizeof(stringv), "%s{FFFFFF}:[%d] {00FF00}[{FF0000}VIP{00FF00}]{00FFFF} %s",pname,playerid,text);
        for(new 
i!= GetMaxPlayers(); i++)
        {
            if(
IsPlayerInRangeOfPoint(i20.0Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(iGetPlayerColor(playerid), stringv);
            }
        }
        return 
0;
    } 
Se der erros, ponha a linha do erro por gentileza
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.
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: 2 Guest(s)