Aight so I'm trying to script small derby system.
There are 5 cars (inside a mapped interior) and when 5 players get to the checkpoint (outside of that mapped interior), it will teleport them near the cars. and while a derby is going on others players (whos not in derby) are also able to get into derby by going into checkpoint. I want to check if there are 5 players already in those 5 vehicles and if yes, others won't be able to enter derby
is it possible?
Using this code to add 5 vehicles
There are 5 cars (inside a mapped interior) and when 5 players get to the checkpoint (outside of that mapped interior), it will teleport them near the cars. and while a derby is going on others players (whos not in derby) are also able to get into derby by going into checkpoint. I want to check if there are 5 players already in those 5 vehicles and if yes, others won't be able to enter derby
is it possible?
Using this code to add 5 vehicles
pawn Code:
vortex[0] = AddStaticVehicle(539,250.9570,-1835.9283,4.1188,352.6298,-1,-1); // vortex 1
vortex[1] = AddStaticVehicle(539,255.7630,-1837.6337,4.1188,352.4849,-1,-1); // vortex 2
vortex[2] = AddStaticVehicle(539,251.2579,-1832.2766,4.1188,264.0025,-1,-1); // vortex 3
vortex[3] = AddStaticVehicle(539,251.5053,-1823.7771,4.1188,264.4842,-1,-1); // vortex 4
vortex[4] = AddStaticVehicle(539,258.8228,-1823.1445,4.1188,174.5566,-1,-1); // vortex 5
vortex[1] = AddStaticVehicle(539,255.7630,-1837.6337,4.1188,352.4849,-1,-1); // vortex 2
vortex[2] = AddStaticVehicle(539,251.2579,-1832.2766,4.1188,264.0025,-1,-1); // vortex 3
vortex[3] = AddStaticVehicle(539,251.5053,-1823.7771,4.1188,264.4842,-1,-1); // vortex 4
vortex[4] = AddStaticVehicle(539,258.8228,-1823.1445,4.1188,174.5566,-1,-1); // vortex 5
Aucun commentaire:
Enregistrer un commentaire