Question about vehicleid
#1

Okay so I did this in "OnGameModeInit"

Код:
public OnGameModeInit()
{
	PublicSpawnVehicles[0] = CreateVehicle(411,2829.0969000,-1166.0552000,24.7498000,83.3863000,64,1,15); //Infernus
	PublicSpawnVehicles[1] = CreateVehicle(411,2828.3992000,-1171.0070000,24.7571000,78.6612000,64,1,15); //Infernus
	PublicSpawnVehicles[2] = CreateVehicle(411,2827.7256000,-1194.3632000,24.6740000,124.7654000,64,1,15); //Infernus
	PublicSpawnVehicles[3] = CreateVehicle(411,2828.3755000,-1200.9661000,24.4978000,104.1287000,64,1,15); //Infernus
	return 1;
}
how should I verify for the variable, not the vehicle id cause they will be like 1..2..3 etc.

Thanks
Reply
#2

If you want to check, if the Vehicle id is PublicSpawnVehicles you simply do

pawn Код:
if( vehicleid != PublicSpawnVehicles[x]) return Bla bla; // If you want anything please tell me!
x - Your vehicles from PublicSpawnVehicles!

Regards
Reply
#3

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)