Got a question about a locked car..
#1

Hey,

I'll give you the details:
With my registersystem there will be created a file with the name of the player.
In that file are things like;
vehmodel
vehx
vehy
vehz
locked

There will be created on login a car named:
owncar[playerid] = CreateVehicle(vehmodel[playerid],vehx[playerid],vehy[playerid],vehz[playerid], 0, 0, 60);

But how can I make that if someone tries to get in that car that if locked == 1 you get kicked out of it?
And how can you check that?

Thanks alot
Reply
#2

OnPlayerStateChange, if newstate == PLAYER_STATE_DRIVER (?), then GetPlayerVehicleID, and if the id is that of a locked, eject them.
Reply
#3

Quote:
Originally Posted by Redirect Left
OnPlayerStateChange, if newstate == PLAYER_STATE_DRIVER (?), then GetPlayerVehicleID, and if the id is that of a locked, eject them.
Yes,
but that doesn't save if it's locked in the dini file

How can I make it check in the right dini file of that car ? o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)