[Ajuda] Ajuda com Dialog
#4

Tenta com essa funзгo, fiz com outro comando aqui e parou.
PHP код:
stock GetDistanceBetweenPlayers(playerid,playerid2)
{
    new 
Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
    new 
Float:tmpdis;
    
GetPlayerPos(playerid,x1,y1,z1);
    
GetPlayerPos(playerid2,x2,y2,z2);
    
tmpdis floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
    return 
floatround(tmpdis);
}

if(
dialogid == SomAutomotivo)
{
    if(
response)
    {
        if(!
strlen(inputtext))
        {
            
SendClientMessage(playeridVermelho"Nenhum url foi digitado na Box!");
            return 
0;
        }
        new 
Float:Pos[3];
        
GetPlayerPos(playeridPos[0],Pos[1], Pos[2]);
        for(new 
0<MAX_PLAYERSi++)
        {
            if(
GetDistanceBetweenPlayers(playeridi) <= 10)
            {
                    
PlayAudioStreamForPlayer(iinputtext);
            }
        }
    }else{

Reply


Messages In This Thread
Ajuda com Dialog - by VinnyScript - 24.10.2017, 19:41
Re: Ajuda com Dialog - by Don_Speed - 24.10.2017, 19:47
Re: Ajuda com Dialog - by VinnyScript - 24.10.2017, 19:48
Re: Ajuda com Dialog - by DelK - 24.10.2017, 20:11
Re: Ajuda com Dialog - by Gguiz - 24.10.2017, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)