SetPlayerPos
#3

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

Found here: https://sampwiki.blast.hk/wiki/Function#...ultiple_values
Reply


Messages In This Thread
SetPlayerPos - by Ectazy - 06.01.2016, 09:41
Re: SetPlayerPos - by justinnater - 06.01.2016, 09:45
Re: SetPlayerPos - by Vince - 06.01.2016, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)