[Ajuda] Alguem Ajuda?
#4

PHP код:
    if(strcmp(cmd"/megafone"true) == || strcmp(cmd"/m"true) == 0)
    {
        if(
PlayerInfo[playerid][pMuted] == 1)
        {
            
SendClientMessage(playeridTEAM_CYAN_COLOR"Vocк nгo pode falar, pois foi calado");
            return 
true;
        }
        if(
IsPlayerConnected(playerid))
        {
            if(!
IsACop(playerid))
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um policial!");
                return 
true;
            }
            if(
OnDuty[playerid] != 1)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                return 
true;
            }
            
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: (/m)egafone [phone chat]");
                return 
true;
            }
            if(
gTeam[playerid] == || IsACop(playerid))
            {
                if(
PlayerInfo[playerid][pMembro] == 1||PlayerInfo[playerid][pLider] == 1)
                {
                    
format(stringsizeof(string), "Policial Militar %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                else if(
PlayerInfo[playerid][pMembro] == 2||PlayerInfo[playerid][pLider] == 2)
                {
                    
format(stringsizeof(string), "B.O.P.E %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                else if(
PlayerInfo[playerid][pMembro] == 3||PlayerInfo[playerid][pLider] == 3)
                {
                    
format(stringsizeof(string), "Exйrcito %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                else if(
IsAGOV(playerid))
                {
                    
format(stringsizeof(string), "Governo %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                else if(
PlayerInfo[playerid][pMembro] == 16||PlayerInfo[playerid][pLider] == 16)
                {
                    
format(stringsizeof(string), "Policia Civil %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                else if(
PlayerInfo[playerid][pMembro] == 11||PlayerInfo[playerid][pLider] == 11)
                {
                    
format(stringsizeof(string), "Policia Federal %s:o< %s"sendernameresult);
                    
ProxDetector(60.0playeridstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                }
                
printf("%s"string);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo faz parte de nenhuma equipe !");
                return 
true;
            }
        }
        return 
true;
    } 
Reply


Messages In This Thread
Alguem Ajuda? - by maluco88 - 06.09.2012, 03:04
Re: Alguem Ajuda? - by s4kuL - 06.09.2012, 03:09
Re: Alguem Ajuda? - by maluco88 - 06.09.2012, 16:11
Respuesta: Alguem Ajuda? - by Lucas_Rocha - 06.09.2012, 16:17
Re: Respuesta: Alguem Ajuda? - by maluco88 - 07.09.2012, 13:50
Re: Alguem Ajuda? - by maluco88 - 07.09.2012, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)