SA-MP Forums Archive
Need help with car lock break - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with car lock break (/showthread.php?tid=403045)



Need help with car lock break - Kenway - 28.12.2012

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)) 



Re: Need help with car lock break - RedCrossER - 28.12.2012

Explain bit more?


Re: Need help with car lock break - Kenway - 28.12.2012

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


Re: Need help with car lock break - Kenway - 29.12.2012

UP please


Re: Need help with car lock break - Kenway - 30.12.2012

help please


Re: Need help with car lock break - Konstantinos - 30.12.2012

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"