how people do not enter in this car ID
#7

How would that even work with OnPlayerEnterVehicle?
Use OnPlayerStateChange


PHP код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 416// Ambulance vehicle ID
    
{
        if(
PlayerInfo[playerid][MDuty] == 0)  // If the player isn't on medic duty
        
{
              
RemovePlayerFromVehicle(playerid); // If the player isn't on medic duty remove him from car
            
SendClientMessage(playeridCOLOR_RED"You are not on medic duty!");
         }
    }
    return 
1;

Reply


Messages In This Thread
how people do not enter in this car ID - by Jihanz - 24.03.2017, 10:18
Re: how people do not enter in this car ID - by Jelly23 - 24.03.2017, 11:02
Re: how people do not enter in this car ID - by w1z4rd - 24.03.2017, 11:24
Re: how people do not enter in this car ID - by Jihanz - 24.03.2017, 12:14
Re: how people do not enter in this car ID - by ISmokezU - 24.03.2017, 12:45
Re: how people do not enter in this car ID - by Mencent - 24.03.2017, 13:21
Re: how people do not enter in this car ID - by jasperschellekens - 24.03.2017, 14:03
Re: how people do not enter in this car ID - by Jihanz - 24.03.2017, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)