Need a little help.
#4

Try this.

Код HTML:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
	{
	    switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
	    {
	        case 420, 438:
	        {
	            if(PlayerData[playerid][pJobTaxi])
	            {
	                //start a job
				}
				else
				{
				    RemovePlayerFromVehicle(playerid); //player is not a taxi driver, then remove him from vehicle
				    
				    SendClientMessage(playerid, 0xFF0000FF, "You are not a Taxi Driver");
				}
			}
		}
	}
	return true;
}
Reply


Messages In This Thread
Need a little help. - by Jihanz - 28.03.2017, 05:31
Re: Need a little help. - by Sew_Sumi - 28.03.2017, 06:42
Re: Need a little help. - by Jihanz - 28.03.2017, 06:46
Re: Need a little help. - by Feynman - 28.03.2017, 07:19
Re: Need a little help. - by Jihanz - 28.03.2017, 08:46

Forum Jump:


Users browsing this thread: 1 Guest(s)