11.08.2012, 21:30
Can you see whats the problem here the trunk wont open with this.
pawn Код:
if(PlayerInfo[playerid][pCarKey] == result)
{
if(VehicleInfo[result][vTrunkLock] == 0)
{
GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
GameTextForPlayer(playerid, "~g~Trunk open", 3000, 3);
VehicleInfo[result][vTrunkLock] = 0;
}
}
else if(PlayerInfo[playerid][pDupeKey] == VehicleInfo[result][vKey])
{
if(VehicleInfo[result][vTrunkLock] == 0)
{
GetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(result,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
GameTextForPlayer(playerid, "~g~Trunk open", 3000, 3);
VehicleInfo[result][vTrunkLock] = 0;
}
}