23.09.2012, 05:16
Are you talking about the vehicles model or ID? Your first post implies the vehicles ID but if you mean model, try this.
pawn Код:
/* Outside OnGameModeInit */
#define ADMIN_VEHICLE_MODEL 432
/* inside OnPlayerEnterVehicle */
// If the players level is not an admin level
if (PlayerInfo[playerid][Level] == 0)
{
// If the vehiclid the player is entering is our admin vehicle model
if (GetVehicleModel(vehicleid) == ADMIN_VEHICLE_MODEL)
{
// Do what you want with the player
}
}