[Help] Lock player into vehicle
#9

i tried with and without return 1; --- This way it compiles but it won't do anything
pawn Код:
if(Lukus[playerid] == 1)
    {
        SendClientMessage(playerid, 0xFF0000FF, "Auto uksed on lukus.");
        PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
    }
This way i get 17 errors..
pawn Код:
if(Lukus[playerid] == 1)
    {
        SendClientMessage(playerid, 0xFF0000FF, "Auto uksed on lukus.");
        PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
    }
    return 1;
}
And this should set Lukus[playerid] = 1;
pawn Код:
case 9,10,11,12,13,14,15:
                        {
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alarm kдivitus ja sa jдid autosse kinni!");
                            gEngine[playerid] = 0;
                            SetTimerEx("AutoAlarm", 10000, false, "i", playerid);
                            Lukus[playerid] = 1;
                        }
And this one should set Lukus[playerid] = 0;
pawn Код:
public AutoAlarm(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Lukus[playerid] = 0;
        SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Alarm jдi vait ja uksed avanesid imekombel!");
    }
}
Reply


Messages In This Thread
[Help] Lock player into vehicle - by Kenka - 13.07.2011, 12:57
Re: [Help] Lock player into vehicle - by Shadoww5 - 13.07.2011, 13:26
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 13:38
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 17:30
Re: [Help] Lock player into vehicle - by lawonama - 13.07.2011, 17:35
Re: [Help] Lock player into vehicle - by Kush - 13.07.2011, 17:37
Re: [Help] Lock player into vehicle - by crowb14 - 13.07.2011, 18:01
Re: [Help] Lock player into vehicle - by Toreno - 13.07.2011, 18:06
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 19:35
Re: [Help] Lock player into vehicle - by boelie - 13.07.2011, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)