Please help me with this
#2

pawn Код:
//OnPlayerStateChange(playerid, newstate, oldstate)
    if(newstate == PLAYER_STATE_DRIVER) // use definitions, its easier
    {
        new CarCheck = GetPlayerVehicleID(playerid);
        if(CarCheck == Cars[TEAM_BALLAS])
        {
            if(GetPlayerTeam(playerid) != TEAM_BALLAS) // removed the return
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car!");
            }
        }
That will only work with one vehicleid but I think you want to disable more vehicles
Show us the code where you store the vehicleids in Cars
Reply


Messages In This Thread
Please help me with this - by Majava - 25.10.2012, 17:07
AW: Please help me with this - by Nero_3D - 25.10.2012, 17:17
Re: Please help me with this - by Majava - 25.10.2012, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)