Posts: 209
Threads: 29
Joined: Jun 2008
Reputation:
0
when a guy like writes /race it would spawn it to the position ( I did the position ) but how to do to spawn him in a CAR that IS NOT USED BY ANOTHER GUY( imean who is not sitting in it, its empty) can someone write a code or tell me how to do it
Posts: 103
Threads: 2
Joined: Jan 2007
Reputation:
0
/race command:
new Float:Pos[4];
//Your SpawnPostion
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
GetPlayerFacingAngle(playerid,Pos[3]);
new VehiclE = CreateVehicle(vehicletype,Pos[0],Pos[1],Pos[2],Pos[3],-1,-1,respawn_delay);
PutPlayerInVehicle(playerid,VehiclE, 0);
Posts: 209
Threads: 29
Joined: Jun 2008
Reputation:
0
this code won't work it justs puts a player in a vehicle but it doesn't check if its empty... thats the problem :S
Posts: 209
Threads: 29
Joined: Jun 2008
Reputation:
0
well yeah... i'm trying figure out a code that cars are spawned and then when guy is entering a car it would respawn so it would be 100% empty.. but the thing is what about the other guys? example its a 4 men race and they just spawn in not empty cars and throw out the guys who were sitting in it(it enters them randomly to a car right?), i would need somehow a code that reaches a player limit to the race example only 4 allowed to race and others can't get in when the race is full but i don't think thats possible or is it? (the thing is i didn't script few months and i can't combine the commands that good now, so i am asking for help)