18.12.2011, 09:50
Hello. Do I add staticvehicles in the gamemode.pwn or in some other file?
I am using Raven Roleplay
I am using Raven Roleplay
AddStaticVehicle(425,blabla);//hunter = vehicle 1 (the 1 got retiurned by the AddStaticVehicle, but its not stored anywhere, so its almost impossible to retrieve this hunters' ID ingame) AddStaticVehicle(522,blabla);//nrg = vehicle 2 AddStaticVehicle(415,blabla);//cheetah = vehicle 3 AddStaticVehicle(411,blabla);//infernus = vehicle 4 //... AddStaticVehicle(415,blabla);//another cheetah = vehicle 5 (the 5, returned by AddStaticVehicle here, gets stored into the Car[5] cell, where you may access it anytime later by using like Car[5]
//at your scripts top, create the array for vehicles, so a cell can point to the !real id. new Cars[2000]; //and now the vehicles from above, but slightly changed: Cars[000]=AddStaticVehicle(425,blabla);//hunter = vehicle 1 Cars[001]=AddStaticVehicle(522,blabla);//nrg = vehicle 2 Cars[002]=AddStaticVehicle(415,blabla);//cheetah = vehicle 3 Cars[003]=AddStaticVehicle(411,blabla);//infernus = vehicle 4 //... Cars[100]=AddStaticVehicle(415,blabla);//another cheetah = vehicle 5