make /trunk close
#3

Its just a verble isn't that big thing its so easy all you have to do is that
pawn Код:
new trunk = 0; // on top of your GM and here you go we are done
CMD:trunk(playerid,params[])
{
    new carid = GetPlayerVehicleID(playerid);
    if(trunk == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            trunk = 1;
            SendClientMessage(playerid,COLOR_GREEN,"Trunk has been opened");
            GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
        }
    }
    else if(trunk == 1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            trunk = 0;
            SendClientMessage(playerid,COLOR_GREEN,"trunk has been closed");
            GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
            SetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
        }
    }
    return 1;
}
Reply


Messages In This Thread
make /trunk close - by kbalor - 17.08.2012, 11:29
Re: make /trunk close - by Scott Zulkifli - 17.08.2012, 11:56
Re: make /trunk close - by Gangster-rocks - 17.08.2012, 11:59
Re: make /trunk close - by kbalor - 17.08.2012, 12:00
Re: make /trunk close - by Youice - 17.08.2012, 12:02
Re: make /trunk close - by kbalor - 17.08.2012, 12:04
Re: make /trunk close - by Youice - 17.08.2012, 12:06
Re: make /trunk close - by Gangster-rocks - 17.08.2012, 12:08
Re: make /trunk close - by ReD_DeVi - 17.08.2012, 12:10
Re: make /trunk close - by kbalor - 17.08.2012, 12:18

Forum Jump:


Users browsing this thread: 2 Guest(s)