CreateExplosion problem...
#8

You can ****** it, I'm sure you're going to find many results.

pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    GetPlayerFacingAngle(playerid, a);
    if (GetPlayerVehicleID(playerid))
    {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
Example:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, 5.0);
CreateExplosion(x, y, z, 1, 10.0);
Reply


Messages In This Thread
CreateExplosion problem... - by CesarLT - 05.10.2013, 17:00
Re: CreateExplosion problem... - by x96664 - 05.10.2013, 17:02
Re: CreateExplosion problem... - by Areax - 05.10.2013, 17:16
Re: CreateExplosion problem... - by CesarLT - 05.10.2013, 17:16
Re: CreateExplosion problem... - by CesarLT - 05.10.2013, 17:28
Re: CreateExplosion problem... - by Vince - 05.10.2013, 17:30
Re: CreateExplosion problem... - by CesarLT - 05.10.2013, 17:31
Re: CreateExplosion problem... - by Konstantinos - 05.10.2013, 17:35
Re: CreateExplosion problem... - by CesarLT - 05.10.2013, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)