Vehicle ID
#1

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.
Reply
#2

new carname1[MAX_PLAYERS];

so you can use carname1[playerid] = 255 //example
Reply
#3

Create a stock of Vehicles names + their ID's, and add it in the command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)