drop bombs
#7

u use this here is an example using ur script Otto
pawn Код:
// top of script
new bomb;
// in a /bomb command for example:
if(strcmp("/bomb", cmdtext, true, 5) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,10,x,y,z)) // plane interior coordinates
    {
        new float: x, y, z, a, VID;
        VID = GetPlayerVehicleID(playerid);
        GameTextForAll("~w~the bomb has been ~r~~n~dropped ~n~~w~exploding in ~p~10 sec",5000,3);
        GetVehiclePos(VID, x, y, z);
        GetVehicleZAngle(VID, a);
        Bomb = CreateObject(bombobjectid, x, y, z, RotX, RotY, a);
        MoveObject(Bomb, x, y, z, speed);
        SetTimerEx("Bomb",10000,false,"d",playerid);

        return 1;
    } else return SendClientMessage(playerid,-1,"You Must Be In A Plane To Use This Command.");
}

// bottom of script

forward Bomb(playerid);
public Bomb(playerid)
{
    GameTextForAll("~w~the ~r~bomb ~w~has ~r~exploded!",5000,3);

    CreateExplosion(x,y,z,type,Float:Radius);

    return 1;
}
thats how u get the vehicle rotation position and create the bomb and move it i think lol

Not 100% sure though may not work!
Reply


Messages In This Thread
drop bombs - by jiwan - 23.10.2011, 13:48
Re: drop bombs - by grand.Theft.Otto - 23.10.2011, 13:55
Re: drop bombs - by jiwan - 23.10.2011, 13:57
Re: drop bombs - by grand.Theft.Otto - 23.10.2011, 14:06
Re: drop bombs - by jiwan - 23.10.2011, 14:14
Re: drop bombs - by grand.Theft.Otto - 23.10.2011, 14:24
Re: drop bombs - by Zonoya - 23.10.2011, 15:40
Re: drop bombs - by jiwan - 23.10.2011, 15:55
Re: drop bombs - by austin070 - 23.10.2011, 16:46
Re: drop bombs - by cruising - 23.10.2011, 18:09

Forum Jump:


Users browsing this thread: 3 Guest(s)