[ajuda] rбpidinho galera..
#5

pawn Код:
stock GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{//Thanks for who made this function.
    new Float:a;
    GetVehiclePos(vehicleid, x, y, a);
    GetVehicleZAngle(vehicleid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}

CMD:explodir(playerid, params[])
{
    new Float:explosion[3],Float:pos[2],vehicleid=GetPlayerVehicleID(playerid);
    GetVehiclePos(vehicleid, pos[0], pos[1], explosion[2]);
    GetXYInFrontOfVehicle(vehicleid,explosion[0],explosion[1],25.0);
    CreateExplosion(explosion[0], explosion[1], explosion[2], 2, 10.0);
    return 1;
}
by Shelby
Reply


Messages In This Thread
[ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 04:33
Re: [ajuda] rбpidinho galera.. - by Lуs - 15.10.2011, 04:58
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:02
Re: [ajuda] rбpidinho galera.. - by iansinho - 15.10.2011, 05:05
Re: [ajuda] rбpidinho galera.. - by Vai_Besta - 15.10.2011, 05:10
Re: [ajuda] rбpidinho galera.. - by iansinho - 15.10.2011, 05:13
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:14
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 05:32
Re: [ajuda] rбpidinho galera.. - by Lуs - 15.10.2011, 05:41
Re: [ajuda] rбpidinho galera.. - by Cristhian - 15.10.2011, 14:34

Forum Jump:


Users browsing this thread: 2 Guest(s)