24.07.2012, 18:19
Hello everyone, my question is very simple.
How do I make it so when a player tries to enter a restricted vehicle, instead of clearing their animations and making them stop with a message. They instead attempt to open it but its locked to them, but still displaying the message.
How do I make it so when a player tries to enter a restricted vehicle, instead of clearing their animations and making them stop with a message. They instead attempt to open it but its locked to them, but still displaying the message.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)//click
{
if(!ispassenger)
{
if(IsSkipperVeh(vehicleid) && (PlayerInfo[playerid][pJob] != JOB_SKIPPER && PlayerInfo[playerid][pVIPJob] != JOB_SKIPPER))
{
ClearAnimations(playerid);
SendClientMessage(playerid, COLOR_ORANGE, "You can't access this vehicle.");
}
}
return 1;
}