#6

PHP код:
stock GeZxYInFrontOfPlayer(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));

Reply


Messages In This Thread
AMX - by Loinal - 06.05.2017, 15:52
Re: AMX - by AbyssMorgan - 06.05.2017, 16:31
Re: AMX - by rt-2 - 06.05.2017, 17:12
Re: AMX - by Loinal - 06.05.2017, 21:28
Re: AMX - by rt-2 - 07.05.2017, 13:26
Re: AMX - by Loinal - 07.05.2017, 14:10
Re: AMX - by rt-2 - 08.05.2017, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)