/lock and /unlock
#6

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
pawn Код:
doorslocked[playerid]=1;
One problem lies there... You're locking the playerid not the vehicle ID.

You need to review your code more... There's no doubt simple mistakes such as this.

Also go back to using SetVehicleParamsForPlayer, and doing all the user IDs,

Then


pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
        if(lockstate[vehicleid]==1)
        {
        SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
        }
}
I'm using that variable to only make the doors unlock after the player exit vehicle.
That variable has got nothing else to do with this.
Reply


Messages In This Thread
/lock and /unlock - by ATGOggy - 21.12.2014, 10:00
Re: /lock and /unlock - by Write - 21.12.2014, 10:06
Re: /lock and /unlock - by ATGOggy - 21.12.2014, 10:09
Re: /lock and /unlock - by ATGOggy - 21.12.2014, 10:21
Re: /lock and /unlock - by Sew_Sumi - 21.12.2014, 10:22
Re: /lock and /unlock - by ATGOggy - 21.12.2014, 10:35
Re: /lock and /unlock - by Sew_Sumi - 21.12.2014, 11:25
Respuesta: /lock and /unlock - by JuanStone - 22.12.2014, 06:49
Re: Respuesta: /lock and /unlock - by Sew_Sumi - 22.12.2014, 12:04
Re: /lock and /unlock - by ATGOggy - 02.01.2015, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)