[Ajuda] digitar apafecer sу em um virtualword
#6

Aconselho a fazer o seu prуprio mas pela sua angustia resolvi passar
PHP код:
forward ProxDetector(Float:radiplayeridstring[],col1,col2,col3,col4,col5); //Inicio do GM
public OnPlayerText(playeridtext[])
{
new 
nome[MAX_PLAYER_NAME];
new 
str[128];
GetPlayerName(playeridnomesizeof(nome));
format(strsizeof(str),"%s diz: %s"nometext);
ProxDetector(20.0playeridstr,0xFFFFFFAA,0xFFFFFFAA,0xFFFFFFAA,0xFFFFFFAA,0xFFFFFFAA);
return 
1;
}
//---------------------------------PUBLIC----------------------------------------
public ProxDetector(Float:radiplayeridstring[],col1,col2,col3,col4,col5)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:posxFloat:posyFloat:posz;
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                
GetPlayerPos(iposxposyposz);
                
tempposx = (oldposx -posx);
                
tempposy = (oldposy -posy);
                
tempposz = (oldposz -posz);
                if (((
tempposx radi/16) && (tempposx > -radi/16)) && ((tempposy radi/16) && (tempposy > -radi/16)) && ((tempposz radi/16) && (tempposz > -radi/16)))
                {
                    
SendClientMessage(icol1string);
                }
                else if (((
tempposx radi/8) && (tempposx > -radi/8)) && ((tempposy radi/8) && (tempposy > -radi/8)) && ((tempposz radi/8) && (tempposz > -radi/8)))
                {
                    
SendClientMessage(icol2string);
                }
                else if (((
tempposx radi/4) && (tempposx > -radi/4)) && ((tempposy radi/4) && (tempposy > -radi/4)) && ((tempposz radi/4) && (tempposz > -radi/4)))
                {
                    
SendClientMessage(icol3string);
                }
                else if (((
tempposx radi/2) && (tempposx > -radi/2)) && ((tempposy radi/2) && (tempposy > -radi/2)) && ((tempposz radi/2) && (tempposz > -radi/2)))
                {
                    
SendClientMessage(icol4string);
                }
                else if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
                {
                    
SendClientMessage(icol5string);
                }
            }
            else
            {
                
SendClientMessage(icol1string);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
digitar aparecer sу em um virtualword - by vitorluiz96 - 18.05.2015, 23:34
Re: digitar apafecer sу em um virtualword - by Dayvison_ - 18.05.2015, 23:38
Re: digitar apafecer sу em um virtualword - by vitorluiz96 - 18.05.2015, 23:52
Re: digitar apafecer sу em um virtualword - by Dayvison_ - 19.05.2015, 00:06
Re: digitar apafecer sу em um virtualword - by vitorluiz96 - 19.05.2015, 00:25
Re: digitar apafecer sу em um virtualword - by viniciuship - 19.05.2015, 00:52
Re: digitar apafecer sу em um virtualword - by vitorluiz96 - 19.05.2015, 01:28
Re: digitar apafecer sу em um virtualword - by [BC]Vinny - 19.05.2015, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)