Problems with 2 commands!
#2

I commented the VehicleLocked[playerid] = 0; line. Your setting the locked vehicle to 0, once they try to enter it, so therefore, unlocking it.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
                        //=========================[LOCKING]============================================
            VehicleLocked[playerid] = 0; // Remove this!
            if(VehicleLocked[playerid] == 1)
            {
                //new name[MAX_PLAYER_NAME];
                //GetPlayerName(playerid, name, sizeof(name));
                if(playerid != playerid) return SendClientMessage(playerid, COLOR_RED, "This vehicle has been locked!");
                RemovePlayerFromVehicle(playerid);
            }
               
        return 1;
    }
Reply


Messages In This Thread
Problems with 2 commands! - by Twisted_Insane - 31.03.2012, 16:36
Re: Problems with 2 commands! - by Joshb93 - 31.03.2012, 16:50
Re: Problems with 2 commands! - by Kiets - 31.03.2012, 16:56
Re: Problems with 2 commands! - by Joshb93 - 31.03.2012, 16:59
Re: Problems with 2 commands! - by [ABK]Antonio - 31.03.2012, 17:19
Re: Problems with 2 commands! - by Twisted_Insane - 31.03.2012, 17:59
Re: Problems with 2 commands! - by [ABK]Antonio - 31.03.2012, 18:02
Re: Problems with 2 commands! - by Twisted_Insane - 31.03.2012, 18:10
Re: Problems with 2 commands! - by Kiets - 31.03.2012, 18:53
Re: Problems with 2 commands! - by [ABK]Antonio - 31.03.2012, 19:01

Forum Jump:


Users browsing this thread: 2 Guest(s)