OnPlayerStateChange
#2

Try this
Код:
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		if(BusCar(GetPlayerVehicleID(playerid))) // This works
		{
	 		if(PlayerInfo[playerid][pJob] == 1)
			{
	  			SendClientMessage(playerid,-1,"{1589FF} Welcome Bus Driver.");
			}
			else return SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!"); RemovePlayerFromVehicle(playerid);
		}
		if(MechanicCar(GetPlayerVehicleID(playerid))) // All the code under this don't work whatever I put under here
		{
	 		if(PlayerInfo[playerid][pJob] == 2)
			{
	  			SendClientMessage(playerid,-1,"{1589FF} Welcome Mechanic.");
			}
			else return SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!"); RemovePlayerFromVehicle(playerid);
		}
	}
You've forgot to add the return's to a few sections and tell me if it works!
Reply


Messages In This Thread
OnPlayerStateChange - by Muhamed.pwn - 25.07.2013, 19:11
Re: OnPlayerStateChange - by Kebab- - 25.07.2013, 19:24
Re: OnPlayerStateChange - by Muhamed.pwn - 25.07.2013, 19:32
Re: OnPlayerStateChange - by NotIntegrated - 25.07.2013, 20:20
Re: OnPlayerStateChange - by Muhamed.pwn - 25.07.2013, 20:28
Re: OnPlayerStateChange - by NotIntegrated - 25.07.2013, 20:36
Re: OnPlayerStateChange - by Muhamed.pwn - 25.07.2013, 20:50
Re: OnPlayerStateChange - by Threshold - 26.07.2013, 06:53
Re: OnPlayerStateChange - by Muhamed.pwn - 26.07.2013, 10:30
Re: OnPlayerStateChange - by Threshold - 26.07.2013, 10:45

Forum Jump:


Users browsing this thread: 3 Guest(s)