05.09.2009, 13:08
Hey guys what i want this to do is when the person enters a vehicle it tells them the ID of the vehicle and the name of the vehicle (ye si have vehicle names at top of my script in correct order)
Help will be appreciated, Also i dont get any errors.
Help will be appreciated, Also i dont get any errors.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
{
if(IsPlayerInAnyVehicle(playerid))
{
{
new vehid;
vehid = GetVehicleModel(GetPlayerVehicleID(playerid));
new string[100];
format(string, 100, "Vehicle ID : %d Vehicle Name : %s" ,vehid, VehicleNames);
SendClientMessage(playerid, COLOR_WHITE,string);
}
return 1;
}
}
return 0;
}