Team cars
#1

how to create cars for only one team


Код:
AddStaticVehicle(541,-676.8143,928.9225,11.7272,180.7695,0,0); // car 1
	AddStaticVehicle(541,-699.3557,930.1091,11.9107,176.8575,0,0); // car 2
	AddStaticVehicle(560,-711.3451,939.6115,12.0558,357.6498,0,0); //  car 3
	AddStaticVehicle(560,-674.6253,953.4229,11.8035,269.9494,0,0); //car 4
	AddStaticVehicle(413,-683.1547,966.6144,12.2161,91.9423,0,0); //  car 5
	AddStaticVehicle(487,-716.3330,951.8807,12.4056,358.6124,0,0); //  car 6
Reply
#2

I'm not gonna give you code, but here is what you need to do:

Store the team vehicle IDs returned by AddStaticVehicle, AddStaticVehicleEx or CreateVehicle. Then simply check if that id list contains a vehicleid that a player is trying to enter, if so deny entry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)