Jump to content

script GetVehicleWheels


Ewwe

Recommended Posts

  • Administrátor

Zdarec asi 4 dny zpět jsem tenhle script pro někoho psal....

stock GetVehicleWheels( vehicleid )
{
new output[20];
switch( GetVehicleComponentInSlot( vehicleid , 7) )
{
case 1025:output = "Offroad";
case 1073:output = "Shadow";
case 1074:output = "Mega";
case 1075:output = "Rimshine";
case 1076:output = "Wires";
case 1077:output = "Classic";
case 1078:output = "Twist";
case 1079:output = "Cutter";
case 1080:output = "Switch";
case 1081:output = "Grove";
case 1082:output = "Import";
case 1083:output = "Dollar";
case 1084:output = "Trance";
case 1085:output = "Atomic";
case 1096:output = "Ahab";
case 1097:output = "Virtual";
case 1098:output = "Access";
default: output = "Základní";
}
return output;
}

Link to comment
Share on other sites

 

 

Zdarec asi 4 dny zpět jsem tenhle script pro někoho psal....

stock GetVehicleWheels( vehicleid )
{
new output[20];
switch( GetVehicleComponentInSlot( vehicleid , 7) )
{
case 1025:output = "Offroad";
case 1073:output = "Shadow";
case 1074:output = "Mega";
case 1075:output = "Rimshine";
case 1076:output = "Wires";
case 1077:output = "Classic";
case 1078:output = "Twist";
case 1079:output = "Cutter";
case 1080:output = "Switch";
case 1081:output = "Grove";
case 1082:output = "Import";
case 1083:output = "Dollar";
case 1084:output = "Trance";
case 1085:output = "Atomic";
case 1096:output = "Ahab";
case 1097:output = "Virtual";
case 1098:output = "Access";
default: output = "Základní";
}
return output;
}

 

 

pekné, čítal som aj ten HELP kde si s tým pomáhal :d

ale možno by to niekto chcel na ID tých kolies

 

 

#define TYPE_OUT_INT false
#define TYPE_OUT_STR true
stock GetVehicleWheels( vehicleid, type_out )
{
new output[20];
if(type_out)
{
switch( GetVehicleComponentInSlot( vehicleid , 7) )
{
case 1025:output = "Offroad";
case 1073:output = "Shadow";
case 1074:output = "Mega";
case 1075:output = "Rimshine";
case 1076:output = "Wires";
case 1077:output = "Classic";
case 1078:output = "Twist";
case 1079:output = "Cutter";
case 1080:output = "Switch";
case 1081:output = "Grove";
case 1082:output = "Import";
case 1083:output = "Dollar";
case 1084:output = "Trance";
case 1085:output = "Atomic";
case 1096:output = "Ahab";
case 1097:output = "Virtual";
case 1098:output = "Access";
default: output = "Základní";
}
return output;
}
return GetVehicleComponentInSlot( vehicleid , 7); // DEFAULTNÉ kolesá = 0 
}

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...