[ Help Me ] <<
#3

PHP код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
GetPlayerVehicleID(playerid))
    {
        
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));

I suggest you tu use this one.
Reply


Messages In This Thread
[ Help Me ] << - by Jekrz - 24.05.2015, 11:01
Re: [ Help Me ] << - by SoFahim - 24.05.2015, 12:25
Re : [ Help Me ] << - by KillerDVX - 24.05.2015, 13:32

Forum Jump:


Users browsing this thread: 3 Guest(s)