SA-MP Forums Archive
cmd:pvlock - 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: cmd:pvlock (/showthread.php?tid=567860)



cmd:pvlock - rhandie02 - 17.03.2015

someone giveme example of /pvlock .. industrial lock, alarm and electric


Re: cmd:pvlock - ATGOggy - 17.03.2015

******.


Re: cmd:pvlock - rhandie02 - 20.03.2015

-.- they dont have /pvlock .. only /lock show in the ******


Re: cmd:pvlock - IzadorO - 20.03.2015

It is easy & simple.

Create variables under your variable in which stores vehicle information & variable in which stores player data.

The variables should relate to the lock type in which the player will be able to obtain & the vehicle lock type.

If you purchase an advanced lock, perhaps it stuns the player upon entering it. You can do this by following the provided steps & applying them to the OnPlayerEnterVehicle callback.

Make a new variable & apply that onto the OnPlayerEnterVehicle callback, make it detect if the vehicle is locked with an advanced lock or not. This is simple.

Variable:

Код:
new youradvancelockedvariablehere[MAX_PLAYERS];
When you create the /lock command & add an advanced lock to it and what not, put this in:

Код:
youradvancelockedvariablehere[playerid] = 1;
Once that is done, input this within OnPlayerEnterVehicle & add a function to it:

Код:
if(youradvancelockedvariablehere[playerid] == 1)
{
      // do something here
      return 1;
}