Need help with car lock break
#1

I want to know how player can unlock the with toolkit?
my codes like this:
PHP код:
ew FloatxFloatyFloatz;
    if(
PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)// The problem is here this mean only if is your car you can un lock it how i can make it if you have toolkit you can unlock it?
    
{
        new 
ownerid PlayerInfo[playerid][pVehicleKeysFrom];
        if(
IsPlayerConnected(ownerid))
        {
            new 
PlayerInfo[playerid][pVehicleKeys];
            if(
PlayerVehicleInfo[ownerid][d][pvId] != INVALID_PLAYER_VEHICLE_IDGetVehiclePos(PlayerVehicleInfo[ownerid][d][pvId], xyz);
            if(
IsPlayerInRangeOfPoint(playerid3.0xyz)) 
Reply
#2

Explain bit more?
Reply
#3

How can i make a cmd that unlock the car without the pVehicleKeysFrom and pVehicle Keys?
Reply
#4

UP please
Reply
#5

help please
Reply
#6

pawn Код:
new
    engine,
    lights,
    alarm,
    doors,
    bonnet,
    boot,
    objective,
    vid = GetPlayerVehicleID(playerid)
;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,false,bonnet,boot,objective);
I don't remember which one unlocks. I think, true locks the doors, so use first the "false"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)