GetXYOnTheRightOfPlayer O.o
#1

i mean somthing like this, but on the right and the left of the player...
PHP код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    
// Created by ******
    
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
GetXYOnTheRightOfPlayer O.o - by S0n1COwnsYou - 09.08.2013, 22:34
Re: GetXYOnTheRightOfPlayer O.o - by Youarex - 10.08.2013, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)