Create vehicle ID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Create vehicle ID (
/showthread.php?tid=433886)
Create vehicle ID -
[..MonTaNa..] - 30.04.2013
Removed.
Re: Create vehicle ID -
Pottus - 30.04.2013
I would create a vehicle index system this way you add your vehicle with a function such as....
Код:
stock AddNewCar(modelid, vehicletype, Float:rx, Float:ry, Float:rz, Float:fa, color1, color2, paintjob, components[14]) {}
This way you can specify the vehicletype such as...
#define VEHICLE_TYPE_ADMIN
#define VEHICLE_TYPE_POLICE
etc
Then your admin car check would look like this IsAdminVehicle(GetPlayerVehicleID(playerid)) and would not be limited to specific vehicle ids all I got to say is....
RAVENS ROLEPLAY IS WRITTEN BY MONKEYS
That code is a absolute joke.