cmd:pvlock
#1

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

******.
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)