SA-MP Forums Archive
Car is in use - 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: Car is in use (/showthread.php?tid=84876)



Car is in use - NiGhTWoLFy - 03.07.2009

Hi.How I can define that a car si in use? For example I'm trying to spawn a player(1) in a car ,and I whant when this car is used by another player(2) ,that player(1) to be respawned in another car.I'm not too good at car functions


Re: Car is in use - Ignas1337 - 03.07.2009

hmm
i'll give u the code, but this is last time I give code to anyone


Re: Car is in use - Ignas1337 - 03.07.2009

NOT


Re: Car is in use - NiGhTWoLFy - 03.07.2009

So?


Re: Car is in use - Gr3gersen - 03.07.2009

Quote:
Originally Posted by Izanagi
hmm
i'll give u the code, but this is last time I give code to anyone

- NOT!
Comon boy, that guy is asking for help, and you just come in the thread and act like some dumbass?
If you ain't gonna help him, don't say you will!


Re: Car is in use - woot - 03.07.2009

I'd be glad helping you, but I don't get your question.


Re: Car is in use - NiGhTWoLFy - 03.07.2009

I want to do a driving school.When a player type /exam ,that player will be spawned in a car.I want if this car is allready used by a player ,the second player who type /exam in the same time with the first player to be spawned in another car if this first car is in use.I don't know how to define that the first car is in use.


Re: Car is in use - woot - 03.07.2009

Just do a variable.

pawn Код:
new IsInExamCar[playerid];
Once you warp the player into the car, IsInExamCar[playerid] = 1;
Now, when a second player types it, check if(IsInExamCar[i] == 2) { bla } then put him in the second vehicle, etc.
Make sure to reset the variable once hes done.


Re: Car is in use - NiGhTWoLFy - 03.07.2009

Thank You