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;
}
}