Veh Id Question
#5

lemme give you a command /oldcar

it's the most simplest way to find a vehicle id

Quote:

if(strcmp(cmd, "/oldcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new string[35];
format(string, sizeof(string), "Your old car was: %d",LastVehicle[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, string);
}
return 1;
}

but you need to have/create the function named LastVehicle
If you don't have it,lemme do it for you

Quote:

new LastVehicle[MAX_PLAYERS];

under OnPlayerEnterVehicle
Quote:

LastVehicle[playerid] = vehicleid;

Reply


Messages In This Thread
Veh Id Question - by [UG]Scripter - 14.10.2010, 10:27
Re: Veh Id Question - by CrucixTM - 14.10.2010, 10:52
Re: Veh Id Question - by [UG]Scripter - 14.10.2010, 11:11
Re: Veh Id Question - by Niixie - 14.10.2010, 11:51
Re: Veh Id Question - by SkizzoTrick - 14.10.2010, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)