[Pedido] Pegar Posicao da Frente
#3

PHP код:
stock GetXYFromPlayer(playerid, &Float:x, &Float:yFloat:distancegxy_mode:mode gxy_before)
{
    new
        
Float:a;
    if(
GetPlayerPos(playeridxya))
    {
        
GetPlayerFacingAngle(playerida);
        switch(
mode)
        {
            case 
gxy_behind: if((+= 180) > 360-= 360;
            case 
gxy_right: if((+= 90) > 360-= 360;
            case 
gxy_left: if((-= 90) < 0+= 360;
        }
        
+= distance floatsin(-adegrees);
        
+= distance floatcos(-adegrees);
        return 
1;
    }
    return 
0;

http://forum.sa-mp.com/showpost.php?...&postcount=432
Reply


Messages In This Thread
[Pedido] Pegar Posicao da Frente - by Dr_Pawno - 12.07.2011, 23:38
Re: [Pedido] Pegar Posicao da Frente - by Transferencia - 12.07.2011, 23:52
Re: [Pedido] Pegar Posicao da Frente - by Shadoww5 - 13.07.2011, 00:51
Re: [Pedido] Pegar Posicao da Frente - by steki. - 13.07.2011, 01:06
Re: [Pedido] Pegar Posicao da Frente - by Shadoww5 - 13.07.2011, 01:29
Re: [Pedido] Pegar Posicao da Frente - by BrunoBSF - 13.07.2011, 01:42
Re: [Pedido] Pegar Posicao da Frente - by Transferencia - 13.07.2011, 01:50
Re: [Pedido] Pegar Posicao da Frente - by BrunoBSF - 13.07.2011, 01:54
Re: [Pedido] Pegar Posicao da Frente - by Shadoww5 - 13.07.2011, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)