[HELP] Lock car
#1

Код:
new pVehicle;
public OnGameModeInit()
{
     pVehicle = CreateVehicle(560,-2003.0203,286.8954,33.5500,90.3872,21,1, 10000); //
     return 1;
}

public OnPlayerConnect(playerid)
{
SetVehicleParamsForPlayer(pVehicle,playerid,0,1);
return 1;
}
Going into the server on this car can still get in :/

Where's the problem?
Reply
#2

If you'd like to set the lock for one player only, it'll only work with OnVehicleStreamIn. I see you're trying to set it for all players. For that, I recommend to use the code bellow:

pawn Код:
pVehicle = CreateVehicle(560,-2003.0203,286.8954,33.5500,90.3872,21,1, 10000);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,false,bonnet,boot,objective);
Reply
#3

How to use your code? Show me :/
Reply
#4

Err... Just copy & paste the appropirate code to OnGameModeInit.
Reply
#5

Anyway can to get in the car...
Reply
#6

Anyone, can help me?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)