[Ajuda] Ajuda comando /h
#1

Tipo q o chat helper atй aparece mas sу para o helper q digito ... os outros helper n consegue ver
Pensei q era isso
PHP код:
if (PlayerInfo[playerid][pHelper] >= 1
mas n й, ja troquei e tal e n deu .

Entгo se for possivel podem me dizer onde q ta o erro .

PHP код:
if(strcmp(cmd"/helper"true) == || strcmp(cmd"/h"true) == 0)
    {
        if(
PlayerInfo[playerid][pMuted] == 1)
        {
            
SendClientMessage(playeridTEAM_CYAN_COLOR"Vocк nгo pode falar, pois foi calado");
            return 
1;
        }
        if(
IsPlayerConnected(playerid))
        {
            
GetPlayerName(playeridsendernamesizeof(sendername));
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
                
idx++;
            }
            new 
offset idx;
            new 
result[64];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
                
result[idx offset] = cmdtext[idx];
                
idx++;
            }
            
result[idx offset] = EOS;
            if(!
strlen(result))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: (/h)elper [helper chat]");
                return 
1;
            }
            if(
TentouDivulgar(result))
            {
                  if(
cdivulgar[playerid] >= 6)
                  {
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Cuidado, Poderб ser banido.");
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Evite digitar muitos nъmeros consecutivos.");
                    
PlayerPlaySound(playerid11330.00.00.0);
                    
Kick(playerid);
                  }
                  
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
                  
format(string128"HelperAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                
ABroadCast(COLOR_YELLOW,string,1);
                
DivulgouLog(string);
                
cdivulgar[playerid] += 1;
                return 
1;
            }
            if (
PlayerInfo[playerid][pHelper] >= 1)
            {
                
format(stringsizeof(string), "*%d Helper %s: %s"PlayerInfo[playerid][pHelper], PlayerName(playerid), result);
                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
            }
            
format(stringsizeof(string), "[%d/%d/%d] [%d:%d:%d] *%d Helper %s: %s"v[2], v[1], v[0], v[3], v[4], v[5] , PlayerInfo[playerid][pHelper], sendernameresult);
            
//AChatLog(string);
        
}
        return 
1;
    } 
Reply
#2

pawn Код:
for(new b; b < MAX_PLAYERS; ++b)

{

if(PlayerInfo[b][pHelper] >= 1 && IsPlayerConnected(b))

{

SendClientMessage(b,COLOR_LIGHTBLUE, string);

}

}
Coloque logo apуs estб linha :
pawn Код:
format(string, sizeof(string), "*%d Helper %s: %s", PlayerInfo[playerid][pHelper], PlayerName(playerid), result);

Bugs/erros reporte-me por favor x)
Reply
#3

Funciono, brigadгo ...

Rep ai

@Edit Mls, agr n posso da rep n sei pq , mas quando eu puder , pode ter certeza q vo teda o rep ( hj ou amanhг )
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)