OnPlayerEnterVehicle [Question]
#4

Hello!

You can also use TogglePlayerControllable.
PHP код:
TogglePlayerControllable(playerid,0);
TogglePlayerControllable(playerid,1); 
So, he can't enter the vehicle.

PHP код:
new CanEnterCar GetPVarInt(playerid"Test");
if(
CanEnterCar == 1) {
     return 
1;
} else {
    
SendClientMessage(playeridX11_Red"You cannot enter this vehicle!");
    
TogglePlayerControllable(playerid,false);
    
TogglePlayerControllable(playerid,true);
    
// or
    //ClearAnimations(playerid);
    
return 1;

Mencent
Reply


Messages In This Thread
OnPlayerEnterVehicle [Question] - by Prokill911 - 08.04.2015, 12:13
Re: OnPlayerEnterVehicle [Question] - by Konstantinos - 08.04.2015, 12:16
Re: OnPlayerEnterVehicle [Question] - by R0 - 08.04.2015, 12:18
AW: OnPlayerEnterVehicle [Question] - by Mencent - 08.04.2015, 12:23

Forum Jump:


Users browsing this thread: 2 Guest(s)