Administrátor Ewwe 434 Odesláno: 14. Červen, 2013 Administrátor Share Odesláno: 14. Červen, 2013 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 More sharing options...
Fr0st 23 Odesláno: 14. Červen, 2013 Share Odesláno: 14. Červen, 2013 Náájs ale kde to využijem Jedine že by som si spravil nejakú tuningáreň a keď si bude vyberať kolesá tak vypíše.. Aktuálne máš Atomic Link to comment Share on other sites More sharing options...
Quiter 99 Odesláno: 14. Červen, 2013 Share Odesláno: 14. Červen, 2013 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 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 More sharing options...
Administrátor Ewwe 434 Odesláno: 14. Červen, 2013 Author Administrátor Share Odesláno: 14. Červen, 2013 Pokud by mu šlo o ID tak může rovnou použít GetVehicleComponentInSlot( vehicleid ,7) Ale proč by ne Link to comment Share on other sites More sharing options...
Mivčo 90 Odesláno: 14. Červen, 2013 Share Odesláno: 14. Červen, 2013 Pekná praca 10/10 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now