14.02.2012, 23:11
For Hood and Trunk:
I think you can make boot one based off this one. - Untested, not indented, made on quick reply box
pawn Код:
CMD:hood(playerid, params[])
{
new car = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(car, engine, lights, alarm, doors, bonnet, boot, objective);
if(bonnet == 0)
{
SetVehicleParamsEx(car,engine,lights,alarm,doors,1,boot,objective);
SendClientMessage(playerid, -1, "You have opened the hood");
}
else
{
SetVehicleParamsEx(car,engine,lights,alarm,doors,0,boot,objective);
SendClientMessage(playerid, -1, "You closed the hood");
}
return 1;
}