11.12.2016, 11:14
I did some fixes but when i exit the veh it unlocks for all players but is say it's locked.
Код:
new engine ,lights ,alarm ,bonnet ,boot ,objective; for(new v=0; v<MAX_PVEHS; v++) { if(OwnedVeh(personalcar[v][playerid])) { if(personalcar[v][playerid] != 0 && CarInfo[OwnedVeh(personalcar[v][playerid])][cLock] == 1) { SetVehicleParamsEx(personalcar[v][playerid],engine,lights,alarm,0,bonnet,boot,objective);//AICI AM RAMAS } else if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0 && PlayerInfo[playerid][pprcarkey2] == 0 && PlayerInfo[playerid][pPPluscarkey] == 0 && PlayerInfo[playerid][pPPluscarkey2] == 0 && PlayerInfo[playerid][pPPluscarkey3] == 0 && PlayerInfo[playerid][pPPluscarkey4] == 0 && PlayerInfo[playerid][pPPluscarkey5] == 0 && PlayerInfo[playerid][pPPluscarkey6] == 0) { if(personalcar[v][playerid] != 0 && CarInfo[OwnedVeh(personalcar[v][playerid])][cLock] == 1) { SetVehicleParamsEx(personalcar[v][playerid],engine,lights,alarm,1,bonnet,boot,objective); } } } }