Help with license (rep+)
#8

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(LicenseInfo[playerid][Car] < 1)
        {
            switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
            {
                case 430, 447: //Vehicle IDs.
                {
                    SendClientMessage(playerid, 0xFF6347AA, "You can't drive this car, you don't have a license!");
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help with license (rep+) - by boyan96 - 30.04.2012, 18:13
Re: Help with license (rep+) - by Kitten - 30.04.2012, 18:14
Re: Help with license (rep+) - by ViniBorn - 30.04.2012, 18:14
Re: Help with license (rep+) - by boyan96 - 30.04.2012, 18:18
Re: Help with license (rep+) - by boyan96 - 30.04.2012, 18:44
Re: Help with license (rep+) - by Face9000 - 30.04.2012, 18:54
Re: Help with license (rep+) - by boyan96 - 30.04.2012, 19:13
Re: Help with license (rep+) - by ViniBorn - 30.04.2012, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)