Got a question about a locked car.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Got a question about a locked car.. (
/showthread.php?tid=107352)
Got a question about a locked car.. -
dirkblok - 09.11.2009
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
Re: Got a question about a locked car.. -
Redirect Left - 09.11.2009
OnPlayerStateChange, if newstate == PLAYER_STATE_DRIVER (?), then GetPlayerVehicleID, and if the id is that of a locked, eject them.
Re: Got a question about a locked car.. -
dirkblok - 09.11.2009
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