Sm like an optional Parameter
#1

Hey Guys
I want to realize a Reallife Mode but I stack at the Carsystem.
My idea: A Optional Parameter to AddStaticVehicle but I know its not realizable without changing the corefiles.

Anyone with an idea?
Reply
#2

What do you mean? I don't understand neither, what you want to effect with it, nor, what you want to do with it. Please explain a bit further.
Reply
#3

You don't need to change the core files.

Example:
pawn Code:
stock AddVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, my_param)
{
  new
      vehicleID = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, angle, color1, color2);
  myVariable[vehicleID] = my_param;
  return vehicleID;
}
I haven't tested this, i guess you'll need to that.

If this is what you want?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)