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: Vehicle ID (
/showthread.php?tid=596966)
Vehicle ID -
Tuntun - 25.12.2015
My script:
new carname1[256];
new carname2[256];
new carname3[256];
new carname4[256];
new carname5[256];
if(PlayerInfo[playerid][PlayerVehicleModel1] != 0)
{
strmid(carname1, vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400], 0, strlen(vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400]), 255);
}
else
{
carname1 = "Empty";
}
- it's in the command "/mycars" everything works good but I want to show the vehicle id after the vehicle name.
For an example: Sultan [vehicle id] , Sultan [Car ID: 782]
ID number will he different for all players.
Re: Vehicle ID -
xTURBOx - 25.12.2015
new carname1[MAX_PLAYERS];
so you can use carname1[playerid] = 255 //example
Re: Vehicle ID -
KillerDVX - 25.12.2015
Create a stock of Vehicles names + their ID's, and add it in the command.