Car is in use
#1

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
Reply
#2

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

NOT
Reply
#4

So?
Reply
#5

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!
Reply
#6

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

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.
Reply
#8

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.
Reply
#9

Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)