11.09.2011, 11:45
More simplified for GetComponentName:
And please use booleans if you want to get yes/false stats
pawn Код:
new ModName[][64] = {
{"Pro Spoiler"}, //1000
{"Win Spoiler"}, //1001
{"Drag Spoiler"}, //1002
{"Alpha Spoiler"}, //1003
{"Champ Scoop Hood"}, //1004
{"Fury Scoop Hood"}, //1005
{"Roof Scoop"}, //1006
{"Right Sideskirt"}, //1007
{"5x Nitro"}, //1008
{"2x Nitro"}, //1009
{"10x Nitro"}, //1010
{"Race Scoop Hood"}, //1011
{"Worx Scoop Hood"}, //1012
{"Round Fog Lamps"}, //1013
{"Champ Spoiler"}, //1014
{"Race Spoiler"}, //1015
{"Worx Spoiler"}, //1016
{"Left Sideskirt"}, //1017
{"Upswept Exhaust"}, //1018
{"Twin Exhaust"}, //1019
{"Large Exhaust"}, //1020
{"Medium Exhaust"}, //1021
{"Small Exhaust"}, //1022
{"Fury Spoiler"}, //1023
{"Square Fog Lamps"}, //1024
{"Offroad Wheels"}, //1025
{"Right Alien Sideskirt 'Sultan'"}, //1026
{"Left Alien Sideskirt 'Sultan'"}, //1027
{"Alien Exhaust 'Sultan'"}, //1028
{"X-Flow Exhaust 'Sultan'"}, //1029
{"Left X-Flow Sideskirt 'Sultan'"}, //1030
{"Right X-Flow Sideskirt 'Sultan'"}, //1031
{"Alien Roof Vent 'Sultan'"}, //1032
{"X-Flow Roof Vent 'Sultan'"}, //1033
{"Alien Exhaust 'Elegy'"}, //1034
{"X-Flow Roof Vent 'Elegy'"}, //1035
{"Right Alien Sideskirt 'Elegy'"}, //1036
{"X-Flow Exhaust 'Elegy'"}, //1037
{"Alien Roof Vent 'Elegy'"}, //1038
{"Right X-Flow Sideskirt 'Elegy'"}, //1039
{"Left Alien Sideskirt 'Elegy'"}, //1040
{"Right X-Flow Sideskirt 'Elegy'"}, //1041
{"Right Chrome Sideskirt 'Broadway'"}, //1042
{"Slamin Exhaust 'Broadway'"}, //1043
{"Chrome Exhaust 'Broadway'"}, //1044
{"X-Flow Exhaust 'Flash'"}, //1045
{"Alien Exhaust 'Flash'"}, //1046
{"Right Alien Sideskirt 'Flash'"}, //1047
{"Right X-Flow Sideskirt 'Flash'"}, //1048
{"Alien Spoiler 'Flash'"}, //1049
{"X-Flow Spoiler 'Flash'"}, //1050
{"Left Alien Sideskirt 'Flash'"}, //1051
{"Left X-Flow Sideskirt 'Flash'"}, //1052
{"X-Flow Roof 'Flash'"}, //1053
{"Alien Roof 'Flash'"}, //1054
{"Alien Roof 'Stratum'"}, //1055
{"Right Alien Sideskirt 'Stratum'"}, //1056
{"Right X-Flow Sideskirt 'Stratum'"}, //1057
{"Alien Spoiler 'Stratum'"}, //1058
{"X-Flow Exhaust 'Stratum'"}, //1059
{"X-Flow Spoiler 'Stratum'"}, //1060
{"X-Flow Roof 'Stratum'"}, //1061
{"Left Alien Sideskirt 'Stratum'"}, //1062
{"Left X-Flow Sideskirt 'Stratum'"}, //1063
{"Alien Exhaust 'Stratum'"}, //1064
{"Alien Exhaust 'Jester'"},
{"X-Flow Exhaust 'Jester'"},
{"Alien Roof 'Jester'"},
{"X-Flow Roof 'Jester'"},
{"Right Alien Sideskirt 'Jester'"},
{"Right X-Flow Sideskirt 'Jester'"}, //1070
{"Left Alien Sideskirt 'Jester'"},
{"Left X-Flow Sideskirt 'Jester'"},
{"Shadow Wheels"},
{"Mega Wheels"},
{"Rimshine Wheels"},
{"Wires Wheels"},
{"Classic Wheels"},
{"Twist Wheels"},
{"Cutter Wheels"},
{"Switch Wheels"}, //1080
{"Grove Wheels"},
{"Import Wheels"},
{"Dollar Wheels"},
{"Trance Wheels"},
{"Atomic Wheels"},
{"Stereo Sound"},
{"Hydraulics"},
{"Alien Roof 'Uranus'"},
{"X-Flow Exhaust 'Uranus'"},
{"Right Alien Sideskirt 'Uranus'"}, //1090
{"X-Flow Roof 'Uranus'"},
{"Alien Exhaust 'Uranus'"},
{"Right X-Flow Sideskirt 'Uranus'"},
{"Left Alien Sideskirt 'Uranus'"},
{"Right X-Flow Sideskirt 'Uranus'"},
{"Ahab Wheels"},
{"Virtual Wheels"},
{"Access Wheels"},
{"Left Chrome Sideskirt 'Broadway'"},
{"Chrome Grill Bullbar 'Remington'"}, //1100
{"Left 'Chrome Flames' Sideskirt 'Remington'"},
{"Left 'Chrome Strip' Sideskirt 'Savanna'"},
{"Corvetible Roof 'Blade'"},
{"Chrome Exhaust 'Blade'"},
{"Slamin Exhaust 'Blade'"},
{"Right 'Chrome Arches' Sideskirt 'Remington'"},
{"Left 'Chrome Strip' Sideskirt 'Blade'"},
{"Right 'Chrome Strip' Sideskirt 'Blade'"},
{"Chrome Rear Bullbars 'Slamvan'"},
{"Slamin Rear Bullbars 'Slamvan'"}, //1110
{"Little Front Sign? 'Slamvan'"},
{"Little Front Sign? 'Slamvan'"},
{"Chrome Exhaust 'Slamvan'"},
{"Slamin Exhaust 'Slamvan'"},
{"Chrome Front Bullbars 'Slamvan'"},
{"Slamin Front Bullbars 'Slamvan'"},
{"Chrome Front Bumper 'Slamvan'"},
{"Right 'Chrome Trim' Sideskirt 'Slamvan'"},
{"Right 'Wheelcovers' Sideskirt 'Slamvan'"},
{"Left 'Chrome Trim' Sideskirt 'Slamvan'"}, //1120
{"Left 'Wheelcovers' Sideskirt 'Slamvan'"},
{"Right 'Chrome Flames' Sideskirt 'Remington'"},
{"Bullbar Chrome Bars 'Remington'"},
{"Left 'Chrome Arches' Sideskirt 'Remington'"},
{"Bullbar Chrome Lights 'Remongton'"},
{"Chrome Exhaust 'Remington'"},
{"Slamin Exhaust 'Remington'"},
{"Vinyl Hardtop 'Blade'"},
{"Chrome Exhaust 'Savanna'"},
{"Hardtop Roof 'Savanna'"}, //1130
{"Softtop Roof 'Savanna'"},
{"Slamin Exhaust 'Savanna'"},
{"Right 'Chrome Strip' Sideskirt 'Savanna'"},
{"Right 'Chrome Strip' Sideskirt 'Tornado'"},
{"Slamin Exhaust 'Tornado'"},
{"Chrome Exhaust 'Tornado'"},
{"Left 'Chrome Strip' Sideskirt 'Tornado'"},
{"Alien Spoiler 'Sultan'"},
{"X-Flow Spoiler 'Sultan'"},
{"X-Flow Rear Bumper 'Sultan'"}, //1140
{"Alien Rear Bumper 'Sultan'"},
{"Left Oval Vents"},
{"Right Oval Vents"},
{"Left Square Vents"},
{"Right Square Vents"},
{"X-Flow Spoiler 'Elegy'"},
{"Alien Spoiler 'Elegy'"},
{"X-Flow Rear Bumper 'Elegy'"},
{"Alien Rear Bumper 'Elegy'"},
{"Alien Rear Bumper 'Flash'"}, //1150
{"X-Flow Rear Bumper 'Flash'"},
{"X-Flow Front Bumper 'Flash'"},
{"Alien Front Bumper 'Flash'"},
{"Alien Rear Bumper 'Stratum'"},
{"Alien Front Bumper 'Stratum'"},
{"X-Flow Rear Bumper 'Stratum'"},
{"X-Flow Front Bumper 'Stratum'"},
{"X-Flow Spoiler 'Jester'"},
{"Alien Rear Bumper 'Jester'"},
{"Alien Front Bumper 'Jester'"}, //1160
{"X-Flow Rear Bumper 'Jester'"},
{"Alien Spoiler 'Jester'"},
{"X-Flow Spoiler 'Uranus'"},
{"Alien Spoiler 'Uranus'"},
{"X-Flow Front Bumper 'Uranus'"},
{"Alien Front Bumper 'Uranus'"},
{"X-Flow Rear Bumper 'Uranus'"},
{"Alien Rear Bumper 'Uranus'"},
{"Alien Front Bumper 'Sultan'"},
{"X-Flow Front Bumper 'Sultan'"}, //1170
{"Alien Front Bumper 'Elegy'"},
{"X-Flow Front Bumper 'Elegy'"},
{"X-Flow Front Bumper 'Jester'"},
{"Chrome Front Bumper 'Broadway'"},
{"Slamin Front Bumper 'Broadway'"},
{"Chrome Rear Bumper 'Broadway'"},
{"Slamin Rear Bumper 'Broadway'"},
{"Slamin Rear Bumper 'Remington'"},
{"Chrome Front Bumper 'Remington'"},
{"Chrome Rear Bumper 'Remington'"}, //1180
{"Slamin Front Bumper 'Blade'"},
{"Chrome Front Bumper 'Blade'"},
{"Slamin Rear Bumper 'Blade'"},
{"Chrome Rear Bumper 'Blade'"},
{"Slamin Front Bumper 'Remington'"},
{"Slamin Rear Bumper 'Savanna'"},
{"Chrome Rear Bumper 'Savanna'"},
{"Slamin Front Bumper 'Savanna'"},
{"Chrome Front Bumper 'Savanna'"},
{"Slamin Front Bumper 'Tornado'"}, //1190
{"Chrome Front Bumper 'Tornado'"},
{"Chrome Rear Bumper 'Tornado'"},
{"Slamin Rear Bumper 'Tornado'"}
};
stock GetComponentName(component) return ModName[component-1000]; //This one just uses 1 line at the end :D
pawn Код:
new bool:thing;
//...
thing = true;
//...
return thing;