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

Quote:
Originally Posted by Ryuzaki07
View Post
Boa tarde, o primeiro cуdigo funcionou perfeitamente, Obrigado.

Porem o segundo esta dando esses erros...


Tentei resolver mais nгo consegui, Como posso resolver ? Desde jб Obrigado Observaзгo, peguei as alteraзoes do Psicotico.
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
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)