U can also set qualities and stattrack with counter values.
My code reads the items file and links paintkits to weapon classname.
U can also apply any paintkit to any weapon.
Including an azimov c4!
The code in this example isnt quite right. You may have clients crashing.
I solved the client crashes.. as i said on the post. I was using this plugin on my servers like 2-3 months ago, now i wanted to share, just to see if the community get back on its feet
1. How to make the skin StatTrak [true/ false] and StatTrak Kills [0/ ...]? StatTrak Kills is optional.
2. How to set it Factory New? Would appreciate that.
The enum on PasteBIN.COM has symbols that are redefined.
It would be better so you name them properly so
PHP Code:
//... GUARDIAN, //... GUARDIAN, //...
Will be
PHP Code:
//... GUARDIANM4, //... GUARDIANUSP, //...
So people know how to apply them properly.
This is part of a script I'm using but I really don't like the enum values. They are hard to understand and to use.
GetSkinByClass(String:Class[]) { if (StrContains(Class, "FLIP", false) != -1) { switch (GetRandomInt(0, 8)) { case 0: return NIGHT; case 1: return ULTRAVIOLET; case 2: return TIGERTOOTH; case 3: return FADE; case 4: return DOPPLER; case 5: return CRIMSONWEB; case 6: return MARBLEFADE; case 7: return SLAUGHTER; case 8: return DAMASCUSSTEEL; } }
else if (StrContains(Class, "M9", false) != -1) { switch (GetRandomInt(0, 8)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return BLUESTEEL; case 4: return ULTRAVIOLET; case 5: return DAMASCUSSTEEL; case 6: return FORESTDDPAT; case 7: return NIGHT; case 8: return BOREALFOREST; } }
else if (StrContains(Class, "BAYONET", false) != -1) { switch (GetRandomInt(0, 8)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return BLUESTEEL; case 4: return ULTRAVIOLET; case 5: return DAMASCUSSTEEL; case 6: return FORESTDDPAT; case 7: return NIGHT; case 8: return BOREALFOREST; } }
else if (StrContains(Class, "GUT", false) != -1) { switch (GetRandomInt(0, 8)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return TIGERTOOTH; case 4: return MARBLEFADE; case 5: return DAMASCUSSTEEL; case 6: return FORESTDDPAT; case 7: return NIGHT; case 8: return BOREALFOREST; } }
else if (StrContains(Class, "BUTTERFLY", false) != -1) { switch (GetRandomInt(0, 5)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return FORESTDDPAT; case 4: return NIGHT; case 5: return BOREALFOREST; } }
else if (StrContains(Class, "TACTICAL", false) != -1) { switch (GetRandomInt(0, 5)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return FORESTDDPAT; case 4: return NIGHT; case 5: return BOREALFOREST; } }
else if (StrContains(Class, "KARAMBIT", false) != -1) { switch (GetRandomInt(0, 5)) { case 0: return FADE; case 1: return CRIMSONWEB; case 2: return SLAUGHTER; case 3: return FORESTDDPAT; case 4: return NIGHT; case 5: return BOREALFOREST; } }
else if (StrContains(Class, "GALIL", false) != -1) { switch (GetRandomInt(0, 2)) { case 0: return CERBERUS; case 1: return BLUETITANIUM; case 2: return CHATTERBOX; } }
else if (StrContains(Class, "AWP", false) != -1) { switch (GetRandomInt(0, 9)) { case 0: return ASIIMOVAWP; case 1: return DRAGONLORE; case 2: return MANOWAR; case 3: return PINKDDPAT; case 4: return ELECTRICHIVE; case 5: return LIGHTNINGSTRIKE; case 6: return GRAPHITE; case 7: return BOOM; case 8: return REDLINEAWP; case 9: return PITVIPER; } }
else if (StrContains(Class, "M4A4", false) != -1) { switch (GetRandomInt(0, 4)) { case 0: return ASIIMOVM4; case 1: return HOWL; case 2: return BULLETRAIN; case 3: return RADIATIONHAZARD; case 4: return DRAGONKING; } }
else if (StrContains(Class, "M4A1", false) != -1) { switch (GetRandomInt(0, 6)) { case 0: return GUARDIAN; case 1: return ATOMICALLOY; case 2: return NITRO; case 3: return MASTERPIECE; case 4: return KNIGHT; case 5: return CYREXM4; case 6: return BASILISK; } }
else if (StrContains(Class, "CZ75", false) != -1) { switch (GetRandomInt(0, 5)) { case 0: return TIGRIS; case 1: return NITROCZ; case 2: return CRIMSONWEB; case 3: return VICTORIA; case 4: return CHALICE; case 5: return FUSCHIA; } }
else if (StrContains(Class, "EAGLE", false) != -1) { switch (GetRandomInt(0, 5)) { case 0: return NAGA; case 1: return CRIMSONWEB; case 2: return HANDCANNON; case 3: return GOLDENKOI; case 4: return HYPNOTIC; case 5: return BLAZE; } }
else if (StrContains(Class, "G3", false) != -1) { switch (GetRandomInt(0, 3)) { case 0: return DEMETER; case 1: return AZUREZEBRA; case 2: return GREENAPPLE; case 3: return MURKY; } }
else if (StrContains(Class, "SCAR", false) != -1) { switch (GetRandomInt(0, 3)) { case 0: return CYREX; case 1: return CRIMSONWEB; case 2: return SPLASHJAM; case 3: return CARDIAC; } }
else if (StrContains(Class, "SAWED", false) != -1) { switch (GetRandomInt(0, 1)) { case 0: return KRAKEN; case 1: return ORANGEDDPAT; } }