cmd:pvlock
#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


Messages In This Thread
cmd:pvlock - by rhandie02 - 17.03.2015, 08:32
Re: cmd:pvlock - by ATGOggy - 17.03.2015, 08:32
Re: cmd:pvlock - by rhandie02 - 20.03.2015, 08:25
Re: cmd:pvlock - by IzadorO - 20.03.2015, 12:46

Forum Jump:


Users browsing this thread: 3 Guest(s)