preciso de ajuda!
#4

PHP код:
new pbalas;
SendClientMessageToAll(verdestring);
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);//adiciona isso ao seu gm no
public PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)//troque isso pelo seu stock que vc tem ai.
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        
tempposx = (oldposx -x);
        
tempposy = (oldposy -y);
        
tempposz = (oldposz -z);
        if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
        {
            return 
1;
        }
    }
    return 
0;

;
Reply


Messages In This Thread
preciso de ajuda! - by Mikael22 - 28.08.2017, 18:32
Re: preciso de ajuda! - by DelK - 28.08.2017, 18:36
Re: preciso de ajuda! - by Mikael22 - 28.08.2017, 18:39
Re: preciso de ajuda! - by DelK - 28.08.2017, 18:58
Re: preciso de ajuda! - by Mikael22 - 28.08.2017, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)