08.04.2015, 12:13
Hello, So I'm wondering if It's possible...
Here's an example.
If I had a Pvar, lets call it *Test*
When ever a person tries to enter the vehicle *BMX*, IF the Pvar *Test* == 0;
It kicks them out of the vehicle..
~Is this possible?
I've tried a few lines of code but it always lets me in the vehicle, Just wondering if this is actually not possible.
EXAMPLE CODE:
HOW do I make it so they cannot enter the vehicle?
Here's an example.
If I had a Pvar, lets call it *Test*
When ever a person tries to enter the vehicle *BMX*, IF the Pvar *Test* == 0;
It kicks them out of the vehicle..
~Is this possible?
I've tried a few lines of code but it always lets me in the vehicle, Just wondering if this is actually not possible.
EXAMPLE CODE:
Код:
new CanEnterCar = GetPVarInt(playerid, "Test"); if(CanEnterCar == 1) { return 1; } else { SendClientMessage(playerid, X11_Red, "You cannot enter this vehicle!"); return 1; }