[Ajuda] ajuda com PlayerPlaySound
#8

acho que se eu postar o comando inteiro ajudaria,

PHP Code:
CMD:r(playeridparams[])
{
    new 
text[128], string[128], playername[MAX_PLAYER_NAME]; //Criando variavйs...
    
if(sscanf(params"s"text)) return SendClientMessage(playeridCOR_ERRO"USE: /r [MENSAGEM]"); //Aqui estб o triunfo do sscanf! Para saber mais informaзхes leia o Tуpico
    
if(Player[playerid][pOrg] == Civil) return SendClientMessage(playeridCOR_ERRO"Civis nгo tem Rбdio."); //Verifica se o player й CIVIL, se for, returna a mensagem
    
GetPlayerName(playeridplayernamesizeof(playername)); //Geta o nome de quem usou o comando
    
format(stringsizeof(string), "(Rбdio) %s [Cargo: %d] diz: %s"playernamePlayer[playerid][pCargo], text); //Formata uma mensagem com o nome do player, cargo e a mensgem
    
SendFamilyMessage(Player[playerid][pOrg], COR_RADstring);
    
    for(new 
i<= GetPlayerPoolSize(); i++)
    {
        if(
Player[i][pOrg] == Player[playerid][pOrg])
        {
            new 
Float:xFloat:yFloat:z;
            
GetPlayerPos(ixyz);
            
PlayerPlaySound(i2xyz);
        }
    }
    
/*for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Player[i][pOrg] == org)
            {
                   PlayerPlaySound(playerid, 2, 0.0, 0.0, 0.0);
                 break;
            }
        }
    }*/
    
return 1

Reply


Messages In This Thread
ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 19:44
Re: ajuda com PlayerPlaySound - by NWDMadara - 31.01.2019, 19:51
Re: ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 19:59
Re: ajuda com PlayerPlaySound - by NWDMadara - 31.01.2019, 20:05
Re: ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 20:27
Re: ajuda com PlayerPlaySound - by NWDMadara - 31.01.2019, 20:40
Re: ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 21:25
Re: ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 21:28
Re: ajuda com PlayerPlaySound - by NWDMadara - 31.01.2019, 21:56
Re: ajuda com PlayerPlaySound - by Feconito - 31.01.2019, 22:59

Forum Jump:


Users browsing this thread: 1 Guest(s)