OnPlayerStateChange
#9

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        if(BusCar(GetPlayerVehicleID(playerid))) // This works
        {
            if(PlayerInfo[playerid][pJob] == 1)
            {
                SendClientMessage(playerid,-1,"{1589FF} Welcome Bus Driver.");
            }
            else
            {
                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
            {
                SendClientMessage(playerid,COLOR_GREY,"This vehicle is LOCKED!");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
It's still the same, I don't know what's wrong with this but it's weird.
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: 4 Guest(s)