Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2017 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0071372f86bbebcd2c07fde20a34c62b to your computer and use it in GitHub Desktop.
Save anonymous/0071372f86bbebcd2c07fde20a34c62b to your computer and use it in GitHub Desktop.
public PlVers:__version =
{
version = 5,
filevers = "1.9.0.6038",
date = "01/22/2017",
time = "05:55:02"
};
new Float:NULL_VECTOR[3];
new String:NULL_STRING[4];
public Extension:__ext_core =
{
name = "Core",
file = "core",
autoload = 0,
required = 0,
};
new MaxClients;
public Extension:__ext_sdktools =
{
name = "SDKTools",
file = "sdktools.ext",
autoload = 1,
required = 1,
};
public Extension:__ext_sdkhooks =
{
name = "SDKHooks",
file = "sdkhooks.ext",
autoload = 1,
required = 1,
};
public Extension:__ext_cprefs =
{
name = "Client Preferences",
file = "clientprefs.ext",
autoload = 1,
required = 1,
};
public Extension:__ext_cstrike =
{
name = "cstrike",
file = "games/game.cstrike.ext",
autoload = 0,
required = 1,
};
new String:g_GalilARSkins[36][0];
new g_GalilARSkinIds[36] =
{
0, 647, 629, 546, 494, 460, 216, 379, 398, 428, 241, 83, 478, 119, 192, 297, 237, 235, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_AwpSkins[38][0];
new g_AwpSkinIds[38] =
{
0, 640, 212, 584, 525, 344, 174, 279, 446, 30, 227, 259, 395, 251, 424, 181, 84, 451, 475, 51, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_M4A4Skins[40][0];
new g_M4A4SkinIds[40] =
{
0, 632, 588, 533, 512, 309, 16, 206, 255, 187, 215, 155, 400, 384, 17, 400, 480, 164, 449, 471, 336, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_M4A1Skins[35][0];
new g_M4A1SkinIds[35] =
{
0, 644, 631, 587, 548, 3, 497, 326, 321, 77, 430, 445, 254, 360, 440, 301, 60, 189, 383, 217, 294, 44, 98, 38, 40, 5, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_CZ75AutoSkins[34][0];
new g_CZ75AutoSkinIds[34] =
{
0, 643, 622, 602, 543, 334, 350, 218, 297, 325, 270, 453, 182, 300, 269, 12, 232, 315, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 246, 42, 413, 59, 72, 414
};
new String:g_RevolverSkins[23][0];
new g_RevolverSkinIds[23] =
{
0, 595, 522, 3, 12, 232, 350, 334, 294, 44, 98, 33, 40, 5, 77, 409, 32, 246, 42, 413, 59, 72, 414
};
new String:g_DEagleSkins[37][0];
new g_DEagleSkinIds[37] =
{
0, 645, 603, 527, 509, 37, 231, 351, 12, 232, 185, 328, 273, 61, 296, 468, 90, 397, 40, 347, 469, 470, 294, 3, 44, 98, 38, 33, 5, 77, 409, 32, 246, 42, 413, 59, 72, 414
};
new String:g_G3SG1Skins[29][0];
new g_G3SG1SkinIds[29] =
{
0, 628, 606, 545, 511, 493, 382, 195, 438, 294, 229, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Scar20Skins[29][0];
new g_Scar20SkinIds[29] =
{
0, 642, 612, 597, 502, 406, 391, 312, 12, 232, 165, 196, 70, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 246, 42, 413, 59, 72, 414
};
new String:g_SawedOffSkins[33][0];
new g_SawedOffSkinIds[33] =
{
0, 655, 638, 596, 552, 83, 345, 250, 256, 171, 204, 41, 390, 323, 405, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_NegevSkins[29][0];
new g_NegevSkinIds[29] =
{
0, 610, 355, 514, 483, 369, 355, 285, 317, 432, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_SSG08Skins[31][0];
new g_SSG08SkinIds[31] =
{
0, 200, 233, 253, 624, 361, 554, 538, 503, 294, 222, 3, 304, 319, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_SG553Skins[30][0];
new g_SG553SkinIds[30] =
{
0, 613, 169, 247, 598, 553, 519, 287, 98, 487, 243, 39, 294, 3, 44, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_NovaSkins[34][0];
new g_NovaSkinIds[34] =
{
0, 634, 214, 166, 590, 537, 191, 294, 158, 170, 263, 62, 3, 286, 299, 164, 225, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_XM1014Skins[31][0];
new g_XM1014SkinIds[31] =
{
0, 654, 616, 166, 557, 505, 393, 407, 96, 348, 314, 320, 370, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_P90Skins[39][0];
new g_P90SkinIds[39] =
{
0, 636, 611, 593, 516, 234, 359, 228, 156, 311, 422, 182, 169, 378, 111, 342, 335, 224, 283, 20, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_P250Skins[31][0];
new g_P250SkinIds[31] =
{
0, 650, 592, 551, 501, 358, 426, 162, 258, 271, 373, 388, 404, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_FiveSeveNSKins[26][0];
new g_FiveSeveNSKinIds[26] =
{
0, 646, 605, 530, 510, 44, 377, 387, 427, 294, 3, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_AugSkins[29][0];
new g_AugSkinIds[29] =
{
0, 601, 583, 541, 507, 455, 73, 305, 280, 9, 33, 294, 3, 44, 98, 38, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_DualBerettasSkins[31][0];
new g_DualBerettasSkinIds[31] =
{
0, 330, 450, 625, 544, 528, 491, 249, 190, 447, 261, 220, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_M249Skins[23][0];
new g_M249SkinIds[23] =
{
0, 648, 547, 496, 401, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Mac10Skins[32][0];
new g_Mac10SkinIds[32] =
{
0, 651, 589, 534, 498, 32, 402, 284, 333, 206, 98, 337, 433, 310, 188, 294, 38, 3, 39, 44, 33, 40, 5, 77, 409, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Mag7Skins[30][0];
new g_Mag7SkinIds[30] =
{
0, 633, 608, 535, 499, 385, 177, 431, 32, 291, 34, 39, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Mp7Skins[30][0];
new g_Mp7SkinIds[30] =
{
0, 649, 15, 627, 536, 500, 11, 15, 442, 481, 102, 354, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Mp9Skins[35][0];
new g_Mp9SkinIds[35] =
{
0, 329, 630, 609, 549, 61, 315, 482, 386, 403, 39, 141, 262, 448, 368, 3, 70, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Tec9Skins[32][0];
new g_Tec9SkinIds[32] =
{
0, 614, 599, 555, 539, 520, 303, 272, 101, 36, 374, 463, 248, 294, 3, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Ump45Skins[33][0];
new g_Ump45SkinIds[33] =
{
0, 652, 15, 615, 556, 193, 17, 392, 333, 441, 15, 93, 37, 281, 436, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Ak47Skins[40][0];
new g_Ak47SkinIds[40] =
{
0, 639, 600, 524, 506, 172, 490, 302, 380, 44, 394, 180, 422, 282, 14, 226, 474, 316, 456, 340, 122, 341, 300, 3, 294, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_PPBizonSkins[32][0];
new g_PPBizonSkinIds[32] =
{
0, 641, 13, 594, 542, 526, 306, 349, 101, 267, 236, 224, 376, 70, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_UspSkins[36][0];
new g_UspSkinIds[36] =
{
0, 653, 454, 318, 637, 540, 504, 489, 277, 221, 332, 183, 313, 236, 25, 339, 364, 217, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_P2000Skins[31][0];
new g_P2000SkinIds[31] =
{
0, 635, 591, 550, 515, 338, 357, 294, 71, 184, 32, 327, 213, 389, 3, 44, 98, 38, 33, 40, 5, 77, 409, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_FamasSkins[36][0];
new g_FamasSkinIds[36] =
{
0, 626, 604, 529, 492, 429, 154, 92, 22, 178, 218, 477, 260, 288, 194, 371, 244, 3, 294, 44, 98, 38, 33, 40, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new String:g_Glock18Skins[33][0];
new g_Glock18SkinIds[33] =
{
0, 623, 607, 586, 532, 495, 38, 479, 3, 399, 293, 48, 381, 40, 230, 437, 353, 294, 44, 98, 33, 5, 77, 409, 32, 12, 232, 246, 42, 413, 59, 72, 414
};
new Handle:g_pDatabase;
new Handle:g_pKnifeCookie;
new Handle:g_pStatTrakOptionCookie;
new Handle:g_pKnifeSkinCookie;
new g_Skins[66][768];
new g_ItemDefinitionIndex[66];
new g_Kills[66];
new g_SpawnTime[66];
new String:g_Steam[66][32];
new bool:g_bIsInGame[66];
new bool:g_bMessageShown[66];
new KnifeSkin:g_pKnifeSkin[66] =
{
-2, ...
};
new Knife:g_pKnife[66] =
{
-1, ...
};
new StatTrakOption:g_pStatTrakOption[66];
new Handle:g_pWear;
new Handle:g_pNTCookies[768];
new String:g_Buffer[4096];
new g_iFakeClient = -1;
new bool:g_bIsInRound;
new Float:g_fDelay;
new g_Offset;
public void:__ext_core_SetNTVOptional()
{
MarkNativeAsOptional("GetFeatureStatus");
MarkNativeAsOptional("RequireFeature");
MarkNativeAsOptional("AddCommandListener");
MarkNativeAsOptional("RemoveCommandListener");
MarkNativeAsOptional("BfWriteBool");
MarkNativeAsOptional("BfWriteByte");
MarkNativeAsOptional("BfWriteChar");
MarkNativeAsOptional("BfWriteShort");
MarkNativeAsOptional("BfWriteWord");
MarkNativeAsOptional("BfWriteNum");
MarkNativeAsOptional("BfWriteFloat");
MarkNativeAsOptional("BfWriteString");
MarkNativeAsOptional("BfWriteEntity");
MarkNativeAsOptional("BfWriteAngle");
MarkNativeAsOptional("BfWriteCoord");
MarkNativeAsOptional("BfWriteVecCoord");
MarkNativeAsOptional("BfWriteVecNormal");
MarkNativeAsOptional("BfWriteAngles");
MarkNativeAsOptional("BfReadBool");
MarkNativeAsOptional("BfReadByte");
MarkNativeAsOptional("BfReadChar");
MarkNativeAsOptional("BfReadShort");
MarkNativeAsOptional("BfReadWord");
MarkNativeAsOptional("BfReadNum");
MarkNativeAsOptional("BfReadFloat");
MarkNativeAsOptional("BfReadString");
MarkNativeAsOptional("BfReadEntity");
MarkNativeAsOptional("BfReadAngle");
MarkNativeAsOptional("BfReadCoord");
MarkNativeAsOptional("BfReadVecCoord");
MarkNativeAsOptional("BfReadVecNormal");
MarkNativeAsOptional("BfReadAngles");
MarkNativeAsOptional("BfGetNumBytesLeft");
MarkNativeAsOptional("BfWrite.WriteBool");
MarkNativeAsOptional("BfWrite.WriteByte");
MarkNativeAsOptional("BfWrite.WriteChar");
MarkNativeAsOptional("BfWrite.WriteShort");
MarkNativeAsOptional("BfWrite.WriteWord");
MarkNativeAsOptional("BfWrite.WriteNum");
MarkNativeAsOptional("BfWrite.WriteFloat");
MarkNativeAsOptional("BfWrite.WriteString");
MarkNativeAsOptional("BfWrite.WriteEntity");
MarkNativeAsOptional("BfWrite.WriteAngle");
MarkNativeAsOptional("BfWrite.WriteCoord");
MarkNativeAsOptional("BfWrite.WriteVecCoord");
MarkNativeAsOptional("BfWrite.WriteVecNormal");
MarkNativeAsOptional("BfWrite.WriteAngles");
MarkNativeAsOptional("BfRead.ReadBool");
MarkNativeAsOptional("BfRead.ReadByte");
MarkNativeAsOptional("BfRead.ReadChar");
MarkNativeAsOptional("BfRead.ReadShort");
MarkNativeAsOptional("BfRead.ReadWord");
MarkNativeAsOptional("BfRead.ReadNum");
MarkNativeAsOptional("BfRead.ReadFloat");
MarkNativeAsOptional("BfRead.ReadString");
MarkNativeAsOptional("BfRead.ReadEntity");
MarkNativeAsOptional("BfRead.ReadAngle");
MarkNativeAsOptional("BfRead.ReadCoord");
MarkNativeAsOptional("BfRead.ReadVecCoord");
MarkNativeAsOptional("BfRead.ReadVecNormal");
MarkNativeAsOptional("BfRead.ReadAngles");
MarkNativeAsOptional("BfRead.GetNumBytesLeft");
MarkNativeAsOptional("PbReadInt");
MarkNativeAsOptional("PbReadFloat");
MarkNativeAsOptional("PbReadBool");
MarkNativeAsOptional("PbReadString");
MarkNativeAsOptional("PbReadColor");
MarkNativeAsOptional("PbReadAngle");
MarkNativeAsOptional("PbReadVector");
MarkNativeAsOptional("PbReadVector2D");
MarkNativeAsOptional("PbGetRepeatedFieldCount");
MarkNativeAsOptional("PbSetInt");
MarkNativeAsOptional("PbSetFloat");
MarkNativeAsOptional("PbSetBool");
MarkNativeAsOptional("PbSetString");
MarkNativeAsOptional("PbSetColor");
MarkNativeAsOptional("PbSetAngle");
MarkNativeAsOptional("PbSetVector");
MarkNativeAsOptional("PbSetVector2D");
MarkNativeAsOptional("PbAddInt");
MarkNativeAsOptional("PbAddFloat");
MarkNativeAsOptional("PbAddBool");
MarkNativeAsOptional("PbAddString");
MarkNativeAsOptional("PbAddColor");
MarkNativeAsOptional("PbAddAngle");
MarkNativeAsOptional("PbAddVector");
MarkNativeAsOptional("PbAddVector2D");
MarkNativeAsOptional("PbRemoveRepeatedFieldValue");
MarkNativeAsOptional("PbReadMessage");
MarkNativeAsOptional("PbReadRepeatedMessage");
MarkNativeAsOptional("PbAddMessage");
MarkNativeAsOptional("Protobuf.ReadInt");
MarkNativeAsOptional("Protobuf.ReadFloat");
MarkNativeAsOptional("Protobuf.ReadBool");
MarkNativeAsOptional("Protobuf.ReadString");
MarkNativeAsOptional("Protobuf.ReadColor");
MarkNativeAsOptional("Protobuf.ReadAngle");
MarkNativeAsOptional("Protobuf.ReadVector");
MarkNativeAsOptional("Protobuf.ReadVector2D");
MarkNativeAsOptional("Protobuf.GetRepeatedFieldCount");
MarkNativeAsOptional("Protobuf.SetInt");
MarkNativeAsOptional("Protobuf.SetFloat");
MarkNativeAsOptional("Protobuf.SetBool");
MarkNativeAsOptional("Protobuf.SetString");
MarkNativeAsOptional("Protobuf.SetColor");
MarkNativeAsOptional("Protobuf.SetAngle");
MarkNativeAsOptional("Protobuf.SetVector");
MarkNativeAsOptional("Protobuf.SetVector2D");
MarkNativeAsOptional("Protobuf.AddInt");
MarkNativeAsOptional("Protobuf.AddFloat");
MarkNativeAsOptional("Protobuf.AddBool");
MarkNativeAsOptional("Protobuf.AddString");
MarkNativeAsOptional("Protobuf.AddColor");
MarkNativeAsOptional("Protobuf.AddAngle");
MarkNativeAsOptional("Protobuf.AddVector");
MarkNativeAsOptional("Protobuf.AddVector2D");
MarkNativeAsOptional("Protobuf.RemoveRepeatedFieldValue");
MarkNativeAsOptional("Protobuf.ReadMessage");
MarkNativeAsOptional("Protobuf.ReadRepeatedMessage");
MarkNativeAsOptional("Protobuf.AddMessage");
VerifyCoreVersion();
return void:0;
}
public .2920.CharToUpper(chr)
{
if (IsCharLower(chr))
{
return chr & -33;
}
return chr;
}
public .2920.CharToUpper(chr)
{
if (IsCharLower(chr))
{
return chr & -33;
}
return chr;
}
public .3004.StrCat(String:buffer[], maxlength, String:source[])
{
new len = strlen(buffer);
if (len >= maxlength)
{
return 0;
}
return Format(buffer[len], maxlength - len, "%s", source);
}
public .3004.StrCat(String:buffer[], maxlength, String:source[])
{
new len = strlen(buffer);
if (len >= maxlength)
{
return 0;
}
return Format(buffer[len], maxlength - len, "%s", source);
}
public .3180.ExplodeString(String:text[], String:split[], String:buffers[][], maxStrings, maxStringLength, bool:copyRemainder)
{
new reloc_idx;
new idx;
new total;
new var1;
if (maxStrings < 1 || !split[0])
{
return 0;
}
while ((idx = SplitString(text[reloc_idx], split, buffers[total], maxStringLength)) != -1)
{
reloc_idx = idx + reloc_idx;
total++;
if (maxStrings == total)
{
if (copyRemainder)
{
strcopy(buffers[total + -1], maxStringLength, text[reloc_idx - idx]);
}
return total;
}
}
total++;
strcopy(buffers[total], maxStringLength, text[reloc_idx]);
return total;
}
public .3180.ExplodeString(String:text[], String:split[], String:buffers[][], maxStrings, maxStringLength, bool:copyRemainder)
{
new reloc_idx;
new idx;
new total;
new var1;
if (maxStrings < 1 || !split[0])
{
return 0;
}
while ((idx = SplitString(text[reloc_idx], split, buffers[total], maxStringLength)) != -1)
{
reloc_idx = idx + reloc_idx;
total++;
if (maxStrings == total)
{
if (copyRemainder)
{
strcopy(buffers[total + -1], maxStringLength, text[reloc_idx - idx]);
}
return total;
}
}
total++;
strcopy(buffers[total], maxStringLength, text[reloc_idx]);
return total;
}
public .3784.PrintToChatAll(String:format[])
{
new String:buffer[256];
new i = 1;
while (i <= MaxClients)
{
if (IsClientInGame(i))
{
SetGlobalTransTarget(i);
VFormat(buffer, 254, format, 2);
PrintToChat(i, "%s", buffer);
}
i++;
}
return 0;
}
public .3784.PrintToChatAll(String:format[])
{
new String:buffer[256];
new i = 1;
while (i <= MaxClients)
{
if (IsClientInGame(i))
{
SetGlobalTransTarget(i);
VFormat(buffer, 254, format, 2);
PrintToChat(i, "%s", buffer);
}
i++;
}
return 0;
}
public .4056.CanTestFeatures()
{
return LibraryExists("__CanTestFeatures__");
}
public .4056.CanTestFeatures()
{
return LibraryExists("__CanTestFeatures__");
}
public .4092.Find(String:szProp[])
{
static iInfo;
static iIter;
static String:pClasses[41][0];
iIter = 0;
while (iIter < 41)
{
if (0 < (iInfo = FindSendPropInfo(pClasses[iIter], szProp, 0, 0, 0)))
{
return iInfo;
}
iIter += 1;
}
return 0;
}
public .4092.Find(String:szProp[])
{
static iInfo;
static iIter;
static String:pClasses[41][0];
iIter = 0;
while (iIter < 41)
{
if (0 < (iInfo = FindSendPropInfo(pClasses[iIter], szProp, 0, 0, 0)))
{
return iInfo;
}
iIter += 1;
}
return 0;
}
public .4368.xSaveUserNameTagForWeapon(iUser, iWeapon, String:szNameTag[])
{
static String:szName[32];
static String:szInfo[256];
if (!g_pNTCookies[iWeapon])
{
FormatEx(szName, 32, "m_szCustomName@%04d", iWeapon);
FormatEx(szInfo, 256, "Custom Name For Weapon Having m_iItemDefinitionIndex %d", iWeapon);
g_pNTCookies[iWeapon] = RegClientCookie(szName, szInfo, CookieAccess:2);
}
if (g_pNTCookies[iWeapon])
{
SetClientCookie(iUser, g_pNTCookies[iWeapon], szNameTag);
}
return 0;
}
public .4368.xSaveUserNameTagForWeapon(iUser, iWeapon, String:szNameTag[])
{
static String:szName[32];
static String:szInfo[256];
if (!g_pNTCookies[iWeapon])
{
FormatEx(szName, 32, "m_szCustomName@%04d", iWeapon);
FormatEx(szInfo, 256, "Custom Name For Weapon Having m_iItemDefinitionIndex %d", iWeapon);
g_pNTCookies[iWeapon] = RegClientCookie(szName, szInfo, CookieAccess:2);
}
if (g_pNTCookies[iWeapon])
{
SetClientCookie(iUser, g_pNTCookies[iWeapon], szNameTag);
}
return 0;
}
public .4688.xGetUserNameTagForWeapon(iUser, iWeapon, String:szNameTag[])
{
static String:szName[32];
static String:szInfo[256];
if (!g_pNTCookies[iWeapon])
{
FormatEx(szName, 32, "m_szCustomName@%04d", iWeapon);
FormatEx(szInfo, 256, "Custom Name For Weapon Having m_iItemDefinitionIndex %d", iWeapon);
g_pNTCookies[iWeapon] = RegClientCookie(szName, szInfo, CookieAccess:2);
}
if (g_pNTCookies[iWeapon])
{
GetClientCookie(iUser, g_pNTCookies[iWeapon], szNameTag, 32);
}
return 0;
}
public .4688.xGetUserNameTagForWeapon(iUser, iWeapon, String:szNameTag[])
{
static String:szName[32];
static String:szInfo[256];
if (!g_pNTCookies[iWeapon])
{
FormatEx(szName, 32, "m_szCustomName@%04d", iWeapon);
FormatEx(szInfo, 256, "Custom Name For Weapon Having m_iItemDefinitionIndex %d", iWeapon);
g_pNTCookies[iWeapon] = RegClientCookie(szName, szInfo, CookieAccess:2);
}
if (g_pNTCookies[iWeapon])
{
GetClientCookie(iUser, g_pNTCookies[iWeapon], szNameTag, 32);
}
return 0;
}
public void:OnMySQLThreadedConnection(Handle:pOwner, Handle:pChild, String:Error[], any:Data)
{
if (g_pDatabase)
{
if (pChild)
{
CloseHandle(pChild);
pChild = MissingTAG:0;
}
}
else
{
g_pDatabase = pChild;
new var1;
if (strlen(Error) < 1 && g_pDatabase)
{
SQL_SetCharset(g_pDatabase, "utf8");
SQL_TQuery(g_pDatabase, QueryHandler_Empty, "CREATE TABLE IF NOT EXISTS nf_players (Steam varchar(128) NOT NULL UNIQUE, Skins varchar(8192), Name varchar(128), lastSeen NUMERIC, Kills NUMERIC);", any:0, DBPriority:0);
}
}
return void:0;
}
public void:OnMapStart()
{
CreateTimer(1.0, Timer_CreateFakeClient, any:0, 2);
g_fDelay = 0.0;
return void:0;
}
public Action:Timer_CreateFakeClient(Handle:pTimer, any:_Data)
{
if (g_iFakeClient == -1)
{
g_iFakeClient = CreateFakeClient("BOT Hattrick");
}
return Action:0;
}
public void:OnMapEnd()
{
if (g_iFakeClient != -1)
{
g_iFakeClient = -1;
}
g_bIsInRound = false;
g_fDelay = 0.0;
return void:0;
}
public Action:CS_OnTerminateRound(&Float:Delay, &CSRoundEndReason:Reason)
{
static Owner;
g_bIsInRound = false;
Owner = 1;
while (Owner <= MaxClients)
{
new var1;
if (g_bIsInGame[Owner] && IsPlayerAlive(Owner))
{
CreateTimer(Delay - GetRandomFloat(0.2975, 0.3995), stripKnifeQuietly, Owner, 2);
}
Owner += 1;
}
return Action:0;
}
public Action:stripKnifeQuietly(Handle:pTimer, any:Owner)
{
static String:Class[32];
static Tries;
static Entity;
new var1;
if (g_bIsInGame[Owner] && IsPlayerAlive(Owner))
{
Entity = -1;
Tries = 0;
while ((Entity = GetPlayerWeaponSlot(Owner, 2)) != -1)
{
new var3;
if (GetEdictClassname(Entity, Class, 32) && (StrContains(Class, "Knife", false) == -1 && StrContains(Class, "Bayonet", false) == -1))
{
if (RemovePlayerItem(Owner, Entity))
{
.83232.my_Remove(Entity);
}
}
Tries += 1;
if (Tries >= 4)
{
}
}
}
return Action:0;
}
public .6384.FClamp(Float:fVal, Float:fMin, Float:fMax)
{
if (fVal < fMin)
{
return fMin;
}
if (fVal > fMax)
{
return fMax;
}
return fVal;
}
public .6384.FClamp(Float:fVal, Float:fMin, Float:fMax)
{
if (fVal < fMin)
{
return fMin;
}
if (fVal > fMax)
{
return fMax;
}
return fVal;
}
public .6544.GetWear(iId)
{
static String:szValue[8];
GetClientCookie(iId, g_pWear, szValue, 8);
return .6384.FClamp(StringToFloat(szValue), 5.0E-5, 8192.0);
}
public .6544.GetWear(iId)
{
static String:szValue[8];
GetClientCookie(iId, g_pWear, szValue, 8);
return .6384.FClamp(StringToFloat(szValue), 5.0E-5, 8192.0);
}
public Action:OnWear(iClient, iArgs)
{
new var1;
if (iClient < 1 || iClient > MaxClients || !IsClientInGame(iClient))
{
return Action:4;
}
new Float:fOldWear = .6544.GetWear(iClient);
if (iArgs < 1)
{
ReplyToCommand(iClient, "Current\x04 Wear %f", fOldWear);
ReplyToCommand(iClient, "Command Usage (Example)\x04 SM_Wear %f", GetRandomFloat(0.0, 1.0));
return Action:4;
}
new String:szArg[32];
GetCmdArg(1, szArg, 32);
new Float:fWear = .6384.FClamp(StringToFloat(szArg), 5.0E-5, 8192.0);
FloatToString(fWear, szArg, 32);
SetClientCookie(iClient, g_pWear, szArg);
ReplyToCommand(iClient, "Old\x04 Wear %f\x01 New\x04 Wear %f", fOldWear, StringToFloat(szArg));
if (IsPlayerAlive(iClient))
{
CreateTimer(GetRandomFloat(0.025, 0.1575), TimerHandler_DisplaySkinsMenu, iClient, 2);
}
return Action:4;
}
public Action:Timer_Ad(Handle:pTimer, any:_Data)
{
.3784.PrintToChatAll("\x01 NEW COMMAND\x04 !WEAR\x05 %f\x01 (EXAMPLE)", GetRandomFloat(0.0, 1.0));
return Action:0;
}
public void:OnPluginStart()
{
CreateTimer(10.0 * 60.0, Timer_Ad, any:0, 1);
SQL_TConnect(OnMySQLThreadedConnection, "new_features", any:0);
HookEventEx("round_start", OnRoundStart, EventHookMode:1);
HookEventEx("player_spawn", OnPlayerSpawn, EventHookMode:1);
HookEventEx("player_death", OnPlayerDeath, EventHookMode:1);
RegAdminCmd("sm_wear", OnWear, 0, "Sets Wear Value (Float) On Item", "", 0);
RegConsoleCmd("buyammo", CommandBuyAmmo, "", 0);
RegConsoleCmd("buyammo1", CommandBuyAmmo, "", 0);
RegConsoleCmd("buyammo2", CommandBuyAmmo, "", 0);
RegConsoleCmd("say", CommandSay, "", 0);
RegConsoleCmd("say_team", CommandSay, "", 0);
g_Offset = .4092.Find("m_szCustomName");
g_pKnifeCookie = RegClientCookie("KnifeType", "Stores the knifecc type.", CookieAccess:2);
g_pStatTrakOptionCookie = RegClientCookie("StatTrakTechOpt", "Stores the StatTrak(tm) technology option.", CookieAccess:2);
g_pKnifeSkinCookie = RegClientCookie("KnifeSkin", "Stores the knife skin.", CookieAccess:2);
g_pWear = RegClientCookie("Wear", "Stores The Wear Value", CookieAccess:2);
return void:0;
}
public void:OnRoundStart(Handle:pEvent, String:eventName[], bool:bNoBroadcast)
{
g_bIsInRound = true;
return void:0;
}
public void:OnClientAuthorized(Client, String:Auth[])
{
new var1;
if (!IsFakeClient(Client) && !IsClientSourceTV(Client))
{
FormatEx(g_Steam[Client], 32, Auth);
}
else
{
FormatEx(g_Steam[Client], 32, "BOT@%N", Client);
g_pStatTrakOption[Client] = 1;
g_bMessageShown[Client] = 1;
g_pKnife[Client] = -1;
g_pKnifeSkin[Client] = 0;
}
return void:0;
}
public void:OnClientPutInServer(Client)
{
static Iterator;
g_bIsInGame[Client] = 1;
g_Kills[Client] = 0;
Iterator = 0;
while (Iterator < 768)
{
g_Skins[Client][Iterator] = 0;
Iterator += 1;
}
new var1;
if (IsFakeClient(Client) || IsClientSourceTV(Client) || StrContains("GOTV BOT HLTV SOURCETV SRCTV", g_Steam[Client], false) == -1)
{
FormatEx(g_Steam[Client], 32, "BOT@%N", Client);
g_pStatTrakOption[Client] = 1;
g_bMessageShown[Client] = 1;
g_pKnife[Client] = -1;
g_pKnifeSkin[Client] = 0;
}
else
{
SDKHookEx(Client, SDKHookType:32, OnWeaponEquip);
if (g_pDatabase)
{
FormatEx(g_Buffer, 4096, "SELECT Skins, Kills FROM nf_players WHERE Steam = '%s';", g_Steam[Client]);
SQL_TQuery(g_pDatabase, QueryHandler_SkinsReceived, g_Buffer, Client, DBPriority:0);
}
CreateTimer(0.1, loadSkins_Delayed, Client, 2);
}
return void:0;
}
public Action:CommandBuyAmmo(Client, Args)
{
static theTime;
static lastTime[66];
new var1;
if (Client > 0 && g_bIsInGame[Client])
{
theTime = GetTime({0,0});
new var2;
if (lastTime[Client] < theTime && IsPlayerAlive(Client))
{
CreateTimer(GetRandomFloat(0.025, 0.1575), TimerHandler_DisplaySkinsMenu, Client, 2);
lastTime[Client] = theTime + 1;
}
}
return Action:0;
}
public Action:OnWeaponEquip(iClient, iEntity)
{
static iPrevOwner = -1;
new var2;
if ((iPrevOwner = GetEntPropEnt(iEntity, PropType:0, "m_hPrevOwner", 0)) == -1 || (g_iFakeClient == iPrevOwner && g_iFakeClient != -1))
{
.15696.applyWeaponData(iClient, iEntity, GetEntProp(iEntity, PropType:0, "m_iItemDefinitionIndex", 4, 0), true);
}
return Action:0;
}
public .10436.SaveMe(Client)
{
static Time;
static iStamp[66];
static Iterator;
static String:Item[32];
static bool:bShouldSave;
Time = GetTime({0,0});
new var1;
if (Time - iStamp[Client] < 3 || Time - g_SpawnTime[Client] < 1)
{
return 0;
}
iStamp[Client] = Time;
g_Buffer[0] = 0;
bShouldSave = false;
Iterator = 0;
while (Iterator < 768)
{
new var2;
if (!bShouldSave && g_Skins[Client][Iterator])
{
bShouldSave = true;
}
IntToString(g_Skins[Client][Iterator], Item, 32);
.3004.StrCat(g_Buffer, 4096, Item);
if (Iterator != 767)
{
.3004.StrCat(g_Buffer, 4096, ",");
}
Iterator += 1;
}
new var3;
if (bShouldSave && g_pDatabase)
{
Format(g_Buffer, 4096, "UPDATE nf_players SET Skins = '%s', lastSeen = %d WHERE Steam = '%s';", g_Buffer, GetTime({0,0}), g_Steam[Client]);
SQL_TQuery(g_pDatabase, QueryHandler_Empty, g_Buffer, any:0, DBPriority:2);
}
return 0;
}
public .10436.SaveMe(Client)
{
static Time;
static iStamp[66];
static Iterator;
static String:Item[32];
static bool:bShouldSave;
Time = GetTime({0,0});
new var1;
if (Time - iStamp[Client] < 3 || Time - g_SpawnTime[Client] < 1)
{
return 0;
}
iStamp[Client] = Time;
g_Buffer[0] = 0;
bShouldSave = false;
Iterator = 0;
while (Iterator < 768)
{
new var2;
if (!bShouldSave && g_Skins[Client][Iterator])
{
bShouldSave = true;
}
IntToString(g_Skins[Client][Iterator], Item, 32);
.3004.StrCat(g_Buffer, 4096, Item);
if (Iterator != 767)
{
.3004.StrCat(g_Buffer, 4096, ",");
}
Iterator += 1;
}
new var3;
if (bShouldSave && g_pDatabase)
{
Format(g_Buffer, 4096, "UPDATE nf_players SET Skins = '%s', lastSeen = %d WHERE Steam = '%s';", g_Buffer, GetTime({0,0}), g_Steam[Client]);
SQL_TQuery(g_pDatabase, QueryHandler_Empty, g_Buffer, any:0, DBPriority:2);
}
return 0;
}
public void:OnClientDisconnect(Client)
{
SDKUnhook(Client, SDKHookType:32, OnWeaponEquip);
g_bIsInGame[Client] = 0;
return void:0;
}
public Action:loadSkins_Delayed(Handle:pTimer, any:Client)
{
new var1;
if (g_bIsInGame[Client] || IsClientInGame(Client) || IsClientConnected(Client))
{
if (g_pDatabase)
{
FormatEx(g_Buffer, 4096, "SELECT Skins, Kills FROM nf_players WHERE Steam = '%s';", g_Steam[Client]);
SQL_TQuery(g_pDatabase, QueryHandler_SkinsReceived, g_Buffer, Client, DBPriority:0);
}
CreateTimer(0.1, loadSkins_Delayed, Client, 2);
}
return Action:0;
}
public void:OnClientCookiesCached(Client)
{
static String:Value[8];
new var1;
if (!IsFakeClient(Client) && !IsClientSourceTV(Client) && StrContains("GOTV BOT HLTV SOURCETV SRCTV", g_Steam[Client], false) == -1)
{
GetClientCookie(Client, g_pKnifeCookie, Value, 8);
if (strlen(Value))
{
g_pKnife[Client] = StringToInt(Value, 10);
}
else
{
g_pKnife[Client] = -1;
}
GetClientCookie(Client, g_pKnifeSkinCookie, Value, 8);
if (strlen(Value))
{
g_pKnifeSkin[Client] = StringToInt(Value, 10);
}
else
{
g_pKnifeSkin[Client] = -2;
}
GetClientCookie(Client, g_pStatTrakOptionCookie, Value, 8);
if (strlen(Value))
{
new var2;
if (StringToInt(Value, 10) > 0)
{
var2 = StringToInt(Value, 10);
}
else
{
var2 = 0;
}
g_pStatTrakOption[Client] = var2;
new var3;
if (GetRandomInt(0, 2))
{
var3 = 1;
}
else
{
var3 = 0;
}
g_bMessageShown[Client] = var3;
}
else
{
g_pStatTrakOption[Client] = 0;
g_bMessageShown[Client] = 0;
}
}
else
{
g_pStatTrakOption[Client] = 1;
g_bMessageShown[Client] = 1;
g_pKnife[Client] = -1;
g_pKnifeSkin[Client] = 0;
}
return void:0;
}
public .13120.GetRandomKnifeSkin()
{
static KnifeSkin:knifeIds[30] =
{
0, 38, 12, 232, 98, 44, 5, 40, 413, 77, 418, 419, 420, 421, 59, 42, 409, 415, 416, 417, 569, 570, 571, 572, 568, 43, 72, 143, 175, 414
};
return knifeIds[GetRandomInt(0, 29)];
}
public .13120.GetRandomKnifeSkin()
{
static KnifeSkin:knifeIds[30] =
{
0, 38, 12, 232, 98, 44, 5, 40, 413, 77, 418, 419, 420, 421, 59, 42, 409, 415, 416, 417, 569, 570, 571, 572, 568, 43, 72, 143, 175, 414
};
return knifeIds[GetRandomInt(0, 29)];
}
public .13196.KnifeClassByOption(Owner, String:Class[], Size)
{
switch (g_pKnife[Owner])
{
case -1, 0:
{
switch (GetClientTeam(Owner))
{
case 2:
{
FormatEx(Class, Size, "weapon_knife_t");
}
case 3:
{
FormatEx(Class, Size, "weapon_knife");
}
default:
{
}
}
}
case 1:
{
FormatEx(Class, Size, "weapon_knife_karambit");
}
case 2:
{
FormatEx(Class, Size, "weapon_knife_butterfly");
}
case 3:
{
FormatEx(Class, Size, "weapon_knife_m9_bayonet");
}
case 4:
{
FormatEx(Class, Size, "weapon_bayonet");
}
case 5:
{
FormatEx(Class, Size, "weapon_knife_tactical");
}
case 6:
{
FormatEx(Class, Size, "weapon_knife_push");
}
case 7:
{
FormatEx(Class, Size, "weapon_knife_falchion");
}
case 8:
{
FormatEx(Class, Size, "weapon_knife_gut");
}
case 9:
{
FormatEx(Class, Size, "weapon_knife_flip");
}
case 10:
{
FormatEx(Class, Size, "weapon_knife_survival_bowie");
}
default:
{
}
}
return 0;
}
public .13196.KnifeClassByOption(Owner, String:Class[], Size)
{
switch (g_pKnife[Owner])
{
case -1, 0:
{
switch (GetClientTeam(Owner))
{
case 2:
{
FormatEx(Class, Size, "weapon_knife_t");
}
case 3:
{
FormatEx(Class, Size, "weapon_knife");
}
default:
{
}
}
}
case 1:
{
FormatEx(Class, Size, "weapon_knife_karambit");
}
case 2:
{
FormatEx(Class, Size, "weapon_knife_butterfly");
}
case 3:
{
FormatEx(Class, Size, "weapon_knife_m9_bayonet");
}
case 4:
{
FormatEx(Class, Size, "weapon_bayonet");
}
case 5:
{
FormatEx(Class, Size, "weapon_knife_tactical");
}
case 6:
{
FormatEx(Class, Size, "weapon_knife_push");
}
case 7:
{
FormatEx(Class, Size, "weapon_knife_falchion");
}
case 8:
{
FormatEx(Class, Size, "weapon_knife_gut");
}
case 9:
{
FormatEx(Class, Size, "weapon_knife_flip");
}
case 10:
{
FormatEx(Class, Size, "weapon_knife_survival_bowie");
}
default:
{
}
}
return 0;
}
public .13956.applyKnifeData(Owner, Entity, Id)
{
new var1;
if (Id >= 128 && g_pKnife[Owner] && g_pKnife[Owner] != Knife:-1)
{
SetEntProp(Entity, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
new var2;
if (g_pKnifeSkin[Owner] && g_pKnifeSkin[Owner] == KnifeSkin:-2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", any:1, 4, 0);
}
else
{
new var3;
if (g_pKnifeSkin[Owner] == KnifeSkin:-1)
{
var3 = .13120.GetRandomKnifeSkin();
}
else
{
var3 = g_pKnifeSkin[Owner];
}
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", var3, 4, 0);
}
new var4;
if (g_pKnifeSkin[Owner] && g_pKnifeSkin[Owner] != KnifeSkin:-2)
{
SetEntPropFloat(Entity, PropType:0, "m_flFallbackWear", .6544.GetWear(Owner), 0);
SetEntProp(Entity, PropType:0, "m_nFallbackSeed", GetRandomInt(0, 8192), 4, 0);
}
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", g_Kills[Owner], 4, 0);
}
else
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", any:-1, 4, 0);
}
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:3, 4, 0);
new var6;
if (!.15428.xVIPAvail() || (.15428.xVIPAvail() && .15548.xIsVIP(Owner)))
{
.4688.xGetUserNameTagForWeapon(Owner, Id, g_Buffer);
if (0 < strlen(g_Buffer))
{
SetEntDataString(Entity, g_Offset, g_Buffer, 256, false);
}
}
SetEntProp(Entity, PropType:0, "m_iAccountID", GetEntProp(Entity, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
}
return 0;
}
public .13956.applyKnifeData(Owner, Entity, Id)
{
new var1;
if (Id >= 128 && g_pKnife[Owner] && g_pKnife[Owner] != Knife:-1)
{
SetEntProp(Entity, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
new var2;
if (g_pKnifeSkin[Owner] && g_pKnifeSkin[Owner] == KnifeSkin:-2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", any:1, 4, 0);
}
else
{
new var3;
if (g_pKnifeSkin[Owner] == KnifeSkin:-1)
{
var3 = .13120.GetRandomKnifeSkin();
}
else
{
var3 = g_pKnifeSkin[Owner];
}
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", var3, 4, 0);
}
new var4;
if (g_pKnifeSkin[Owner] && g_pKnifeSkin[Owner] != KnifeSkin:-2)
{
SetEntPropFloat(Entity, PropType:0, "m_flFallbackWear", .6544.GetWear(Owner), 0);
SetEntProp(Entity, PropType:0, "m_nFallbackSeed", GetRandomInt(0, 8192), 4, 0);
}
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", g_Kills[Owner], 4, 0);
}
else
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", any:-1, 4, 0);
}
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:3, 4, 0);
new var6;
if (!.15428.xVIPAvail() || (.15428.xVIPAvail() && .15548.xIsVIP(Owner)))
{
.4688.xGetUserNameTagForWeapon(Owner, Id, g_Buffer);
if (0 < strlen(g_Buffer))
{
SetEntDataString(Entity, g_Offset, g_Buffer, 256, false);
}
}
SetEntProp(Entity, PropType:0, "m_iAccountID", GetEntProp(Entity, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
}
return 0;
}
public APLRes:AskPluginLoad2(Handle:pSelf, bool:bLate, String:szError[], iMaxErrSize)
{
MarkNativeAsOptional("IsClientVIP");
CreateNative("EquipKnife", __EquipKnife);
RegPluginLibrary("new_features");
return APLRes:0;
}
public .15428.xVIPAvail()
{
new var1;
if (.4056.CanTestFeatures() && GetFeatureStatus(FeatureType:0, "IsClientVIP"))
{
var2 = 1;
}
else
{
var2 = 0;
}
return var2;
}
public .15428.xVIPAvail()
{
new var1;
if (.4056.CanTestFeatures() && GetFeatureStatus(FeatureType:0, "IsClientVIP"))
{
var2 = 1;
}
else
{
var2 = 0;
}
return var2;
}
public .15548.xIsVIP(iId)
{
new var1;
if (.4056.CanTestFeatures() && GetFeatureStatus(FeatureType:0, "IsClientVIP") && IsClientVIP(iId))
{
var2 = 1;
}
else
{
var2 = 0;
}
return var2;
}
public .15548.xIsVIP(iId)
{
new var1;
if (.4056.CanTestFeatures() && GetFeatureStatus(FeatureType:0, "IsClientVIP") && IsClientVIP(iId))
{
var2 = 1;
}
else
{
var2 = 0;
}
return var2;
}
public .15696.applyWeaponData(Owner, Entity, Id, bool:bByForward)
{
static String:Class[32];
new var1;
if (GetEdictClassname(Entity, Class, 32) && g_Skins[Owner][Id] > 1 && StrContains(Class, "Bayonet", false) == -1 && StrContains(Class, "Knife", false) == -1)
{
if (bByForward)
{
if (RemovePlayerItem(Owner, Entity))
{
.83232.my_Remove(Entity);
switch (Id)
{
case 60:
{
}
case 61:
{
}
case 63:
{
}
case 64:
{
}
default:
{
}
}
SDKUnhook(Owner, SDKHookType:32, OnWeaponEquip);
Entity = GivePlayerItem(Owner, Class, 0);
SDKHookEx(Owner, SDKHookType:32, OnWeaponEquip);
}
}
if (Entity != -1)
{
SetEntProp(Entity, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", g_Skins[Owner][Id], 4, 0);
SetEntPropFloat(Entity, PropType:0, "m_flFallbackWear", .6544.GetWear(Owner), 0);
SetEntProp(Entity, PropType:0, "m_nFallbackSeed", GetRandomInt(0, 8192), 4, 0);
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", g_Kills[Owner], 4, 0);
}
else
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", any:-1, 4, 0);
}
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:9, 4, 0);
}
else
{
if (!(GetEntProp(Entity, PropType:0, "m_iEntityQuality", 4, 0) == 12))
{
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:0, 4, 0);
}
}
new var3;
if (!.15428.xVIPAvail() || (.15428.xVIPAvail() && .15548.xIsVIP(Owner)))
{
.4688.xGetUserNameTagForWeapon(Owner, Id, g_Buffer);
if (0 < strlen(g_Buffer))
{
SetEntDataString(Entity, g_Offset, g_Buffer, 256, false);
}
}
SetEntProp(Entity, PropType:0, "m_iAccountID", GetEntProp(Entity, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
if (!bByForward)
{
.10436.SaveMe(Owner);
}
}
}
return 0;
}
public .15696.applyWeaponData(Owner, Entity, Id, bool:bByForward)
{
static String:Class[32];
new var1;
if (GetEdictClassname(Entity, Class, 32) && g_Skins[Owner][Id] > 1 && StrContains(Class, "Bayonet", false) == -1 && StrContains(Class, "Knife", false) == -1)
{
if (bByForward)
{
if (RemovePlayerItem(Owner, Entity))
{
.83232.my_Remove(Entity);
switch (Id)
{
case 60:
{
}
case 61:
{
}
case 63:
{
}
case 64:
{
}
default:
{
}
}
SDKUnhook(Owner, SDKHookType:32, OnWeaponEquip);
Entity = GivePlayerItem(Owner, Class, 0);
SDKHookEx(Owner, SDKHookType:32, OnWeaponEquip);
}
}
if (Entity != -1)
{
SetEntProp(Entity, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
SetEntProp(Entity, PropType:0, "m_nFallbackPaintKit", g_Skins[Owner][Id], 4, 0);
SetEntPropFloat(Entity, PropType:0, "m_flFallbackWear", .6544.GetWear(Owner), 0);
SetEntProp(Entity, PropType:0, "m_nFallbackSeed", GetRandomInt(0, 8192), 4, 0);
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", g_Kills[Owner], 4, 0);
}
else
{
SetEntProp(Entity, PropType:0, "m_nFallbackStatTrak", any:-1, 4, 0);
}
if (g_pStatTrakOption[Owner] == StatTrakOption:2)
{
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:9, 4, 0);
}
else
{
if (!(GetEntProp(Entity, PropType:0, "m_iEntityQuality", 4, 0) == 12))
{
SetEntProp(Entity, PropType:0, "m_iEntityQuality", any:0, 4, 0);
}
}
new var3;
if (!.15428.xVIPAvail() || (.15428.xVIPAvail() && .15548.xIsVIP(Owner)))
{
.4688.xGetUserNameTagForWeapon(Owner, Id, g_Buffer);
if (0 < strlen(g_Buffer))
{
SetEntDataString(Entity, g_Offset, g_Buffer, 256, false);
}
}
SetEntProp(Entity, PropType:0, "m_iAccountID", GetEntProp(Entity, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
if (!bByForward)
{
.10436.SaveMe(Owner);
}
}
}
return 0;
}
public void:QueryHandler_Empty(Handle:pDb, Handle:pQuery, String:Error[], any:Data)
{
return void:0;
}
public Action:Timer_RetrieveKills(Handle:pTimer, any:_Data)
{
new var1;
if (IsClientInGame(_Data) && g_pDatabase)
{
FormatEx(g_Buffer, 4096, "SELECT kills FROM ss_players WHERE steam = '%s';", g_Steam[_Data]);
SQL_TQuery(g_pDatabase, QueryHandler_KillsReceived, g_Buffer, _Data, DBPriority:0);
}
return Action:0;
}
public void:QueryHandler_KillsReceived(Handle:pOwner, Handle:pQuery, String:Error[], any:Client)
{
new var1;
if (pQuery && strlen(Error) < 1 && SQL_GetRowCount(pQuery) > 0)
{
SQL_FetchRow(pQuery);
g_Kills[Client] = SQL_FetchInt(pQuery, 0, 0);
FormatEx(g_Buffer, 4096, "UPDATE nf_players SET Kills = %d WHERE Steam = '%s';", g_Kills[Client], g_Steam[Client]);
SQL_TQuery(g_pDatabase, QueryHandler_Empty, g_Buffer, Client, DBPriority:2);
}
return void:0;
}
public void:QueryHandler_SkinsReceived(Handle:pOwner, Handle:pQuery, String:Error[], any:Client)
{
static Iterator;
static String:Buffers[768][32];
new var1;
if (pQuery && strlen(Error) < 1)
{
if (0 < SQL_GetRowCount(pQuery))
{
SQL_FetchRow(pQuery);
SQL_FetchString(pQuery, 0, g_Buffer, 4096, 0);
g_Kills[Client] = SQL_FetchInt(pQuery, 1, 0);
CreateTimer(0.1, Timer_RetrieveKills, Client, 2);
if (strlen(g_Buffer))
{
Iterator = 0;
while (Iterator < 768)
{
Buffers[Iterator][0] = MissingTAG:0;
Iterator += 1;
}
.3180.ExplodeString(g_Buffer, ",", Buffers, 768, 32, false);
Iterator = 0;
while (Iterator < 768)
{
if (0 < strlen(Buffers[Iterator]))
{
g_Skins[Client][Iterator] = StringToInt(Buffers[Iterator], 10);
}
else
{
g_Skins[Client][Iterator] = 0;
}
Iterator += 1;
}
}
else
{
Iterator = 0;
while (Iterator < 768)
{
g_Skins[Client][Iterator] = 0;
Iterator += 1;
}
}
}
g_Kills[Client] = 0;
FormatEx(g_Buffer, 4096, "INSERT INTO nf_players VALUES ('%s', '', '', %d, 0);", g_Steam[Client], GetTime({0,0}));
if (g_pDatabase)
{
SQL_TQuery(g_pDatabase, QueryHandler_Empty, g_Buffer, any:0, DBPriority:2);
}
Iterator = 0;
while (Iterator < 768)
{
g_Skins[Client][Iterator] = 0;
Iterator += 1;
}
}
return void:0;
}
public void:OnPlayerDeath(Handle:pEvent, String:eventName[], bool:bNoBroadcast)
{
static Wpn;
static Attacker;
static Client;
Client = GetClientOfUserId(GetEventInt(pEvent, "userid", 0));
if (0 < Client)
{
new var3;
if (GetRandomInt(1, 10) == 1 && (!.15428.xVIPAvail() || (.15428.xVIPAvail() && .15548.xIsVIP(Client))))
{
PrintToChat(Client, " \x05NEW VIP★\x05 COMMAND !NameTag");
}
Attacker = GetClientOfUserId(GetEventInt(pEvent, "attacker", 0));
new var4;
if (Attacker >= 1 && Attacker <= MaxClients && Client != Attacker && g_bIsInGame[Attacker] && StrContains("GOTV HLTV BOT SOURCETV SRCTV", g_Steam[Attacker], false) == -1)
{
g_Kills[Attacker]++;
if (g_pDatabase)
{
FormatEx(g_Buffer, 4096, "UPDATE nf_players SET Kills = Kills + 1 WHERE Steam = '%s';", g_Steam[Attacker]);
SQL_TQuery(g_pDatabase, QueryHandler_Empty, g_Buffer, any:0, DBPriority:1);
}
new var5;
if (IsPlayerAlive(Attacker) && g_pStatTrakOption[Attacker] == StatTrakOption:2)
{
new var6;
if ((Wpn = GetPlayerWeaponSlot(Attacker, 0)) != -1 && GetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", 4, 0) != -1)
{
SetEntProp(Wpn, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
SetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", g_Kills[Attacker], 4, 0);
SetEntProp(Wpn, PropType:0, "m_iAccountID", GetEntProp(Wpn, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
}
new var7;
if ((Wpn = GetPlayerWeaponSlot(Attacker, 1)) != -1 && GetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", 4, 0) != -1)
{
SetEntProp(Wpn, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
SetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", g_Kills[Attacker], 4, 0);
SetEntProp(Wpn, PropType:0, "m_iAccountID", GetEntProp(Wpn, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
}
new var8;
if ((Wpn = GetPlayerWeaponSlot(Attacker, 2)) != -1 && GetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", 4, 0) != -1)
{
SetEntProp(Wpn, PropType:0, "m_iItemIDLow", any:-1, 4, 0);
SetEntProp(Wpn, PropType:0, "m_nFallbackStatTrak", g_Kills[Attacker], 4, 0);
SetEntProp(Wpn, PropType:0, "m_iAccountID", GetEntProp(Wpn, PropType:0, "m_OriginalOwnerXuidLow", 4, 0), 4, 0);
}
}
}
new var9;
if (!g_bMessageShown[Client] && GetRandomInt(0, 2) && g_bIsInGame[Client])
{
CreateTimer(GetRandomFloat(2.75, 4.25), TimerHandler_DisplayStatTrakDetails, Client, 2);
}
}
return void:0;
}
public void:OnPlayerSpawn(Handle:pEvent, String:eventName[], bool:bNoBroadcast)
{
static iTeam;
static Client;
Client = GetClientOfUserId(GetEventInt(pEvent, "userid", 0));
if (0 < Client)
{
new var2;
if (g_bIsInGame[Client] && IsPlayerAlive(Client) && GetEntProp(Client, PropType:0, "m_iHealth", 4, 0) > 0 && ((iTeam = GetClientTeam(Client)) == 2 || iTeam == 3) && strncmp(g_Steam[Client], "BOT", 3, false))
{
g_SpawnTime[Client] = GetTime({0,0});
if (!g_pStatTrakOption[Client])
{
CreateTimer(GetRandomFloat(2.0, 5.0), TimerHandler_DisplayStatTrakPanel, Client, 2);
}
new var3;
if (g_pKnife[Client] != Knife:-1 && g_pKnife[Client])
{
CreateTimer(GetRandomFloat(0.1, 0.2), Timer_Replace, Client, 2);
}
}
}
return void:0;
}
public Action:Timer_Replace(Handle:pTimer, any:_Data)
{
new var1;
if (g_pKnife[_Data] != Knife:-1 && g_pKnife[_Data])
{
.64812.replaceKnifeIfPossible(_Data, true);
}
return Action:0;
}
public .23212.hCSGO_ClearLine(String:Line[], Times)
{
static m_Length;
static m_Iterator;
m_Iterator = 0;
m_Length = strlen(Line);
while (m_Iterator < Times)
{
StripQuotes(Line);
m_Length = TrimString(Line);
m_Iterator += 1;
}
return m_Length;
}
public .23212.hCSGO_ClearLine(String:Line[], Times)
{
static m_Length;
static m_Iterator;
m_Iterator = 0;
m_Length = strlen(Line);
while (m_Iterator < Times)
{
StripQuotes(Line);
m_Length = TrimString(Line);
m_Iterator += 1;
}
return m_Length;
}
/* ERROR! null */
function "CommandSay" (number 62)
public MenuHandler_Skins(Handle:pMenu, MenuAction:pAction, Client, Selection)
{
static Id;
static iInfo;
static Weapon;
static String:Info[32];
static bool:bDefault;
new var1;
if (pAction == MenuAction:4 && g_bIsInGame[Client] && IsPlayerAlive(Client))
{
Weapon = GetEntPropEnt(Client, PropType:0, "m_hActiveWeapon", 0);
if (Weapon != -1)
{
Id = GetEntProp(Weapon, PropType:0, "m_iItemDefinitionIndex", 4, 0);
if (g_ItemDefinitionIndex[Client] != Id)
{
PrintToChat(Client, "* Have you\x07 switched\x01 the weapon\x01 yet?");
}
else
{
bDefault = false;
GetMenuItem(pMenu, Selection, Info, 32, 0, "", 0);
iInfo = StringToInt(Info, 10);
switch (Id)
{
case 1:
{
if (iInfo >= 37)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_DEagleSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_DEagleSkins[iInfo]);
}
}
case 2:
{
if (iInfo >= 31)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_DualBerettasSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_DualBerettasSkins[iInfo]);
}
}
case 3:
{
if (iInfo >= 26)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_FiveSeveNSKinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_FiveSeveNSKins[iInfo]);
}
}
case 4:
{
if (iInfo >= 33)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Glock18SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Glock18Skins[iInfo]);
}
}
case 7:
{
if (iInfo >= 40)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Ak47SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Ak47Skins[iInfo]);
}
}
case 8:
{
if (iInfo >= 29)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_AugSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_AugSkins[iInfo]);
}
}
case 9:
{
if (iInfo >= 38)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_AwpSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_AwpSkins[iInfo]);
}
}
case 10:
{
if (iInfo >= 36)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_FamasSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_FamasSkins[iInfo]);
}
}
case 11:
{
if (iInfo >= 29)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_G3SG1SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_G3SG1Skins[iInfo]);
}
}
case 13:
{
if (iInfo >= 36)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_GalilARSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_GalilARSkins[iInfo]);
}
}
case 14:
{
if (iInfo >= 23)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_M249SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_M249Skins[iInfo]);
}
}
case 16:
{
if (iInfo >= 40)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_M4A4SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_M4A4Skins[iInfo]);
}
}
case 17:
{
if (iInfo >= 32)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Mac10SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Mac10Skins[iInfo]);
}
}
case 19:
{
if (iInfo >= 39)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_P90SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_P90Skins[iInfo]);
}
}
case 24:
{
if (iInfo >= 33)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Ump45SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Ump45Skins[iInfo]);
}
}
case 25:
{
if (iInfo >= 31)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_XM1014SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_XM1014Skins[iInfo]);
}
}
case 26:
{
if (iInfo >= 32)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_PPBizonSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_PPBizonSkins[iInfo]);
}
}
case 27:
{
if (iInfo >= 30)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Mag7SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Mag7Skins[iInfo]);
}
}
case 28:
{
if (iInfo >= 29)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_NegevSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_NegevSkins[iInfo]);
}
}
case 29:
{
if (iInfo >= 33)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_SawedOffSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_SawedOffSkins[iInfo]);
}
}
case 30:
{
if (iInfo >= 32)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Tec9SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Tec9Skins[iInfo]);
}
}
case 32:
{
if (iInfo >= 31)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_P2000SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_P2000Skins[iInfo]);
}
}
case 33:
{
if (iInfo >= 30)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Mp7SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Mp7Skins[iInfo]);
}
}
case 34:
{
if (iInfo >= 35)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Mp9SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Mp9Skins[iInfo]);
}
}
case 35:
{
if (iInfo >= 34)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_NovaSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_NovaSkins[iInfo]);
}
}
case 36:
{
if (iInfo >= 31)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_P250SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_P250Skins[iInfo]);
}
}
case 38:
{
if (iInfo >= 29)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_Scar20SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_Scar20Skins[iInfo]);
}
}
case 39:
{
if (iInfo >= 30)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_SG553SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_SG553Skins[iInfo]);
}
}
case 40:
{
if (iInfo >= 31)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_SSG08SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_SSG08Skins[iInfo]);
}
}
case 60:
{
if (iInfo >= 35)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_M4A1SkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_M4A1Skins[iInfo]);
}
}
case 61:
{
if (iInfo >= 36)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_UspSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_UspSkins[iInfo]);
}
}
case 63:
{
if (iInfo >= 34)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_CZ75AutoSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_CZ75AutoSkins[iInfo]);
}
}
case 64:
{
if (iInfo >= 23)
{
bDefault = true;
PrintToChat(Client, "*\x07 Invalid\x01 selection!");
}
else
{
g_Skins[Client][Id] = g_RevolverSkinIds[iInfo];
PrintToChat(Client, "* You selected\x05 %s", g_RevolverSkins[iInfo]);
}
}
default:
{
PrintToChat(Client, "* You selected Default");
bDefault = true;
}
}
new var2;
if (!bDefault && g_bIsInRound)
{
switch (Id)
{
case 1:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_deagle", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 2:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_elite", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 3:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_fiveseven", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 4:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_glock", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 7:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_ak47", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 8:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_aug", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 9:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_awp", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 10:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_famas", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 11:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_g3sg1", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 13:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_galilar", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 14:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_m249", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 16:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_m4a1", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 17:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_mac10", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 19:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_p90", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 24:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_ump45", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 25:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_xm1014", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 26:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_bizon", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 27:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_mag7", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 28:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_negev", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 29:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_sawedoff", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 30:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_tec9", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 32:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_hkp2000", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 33:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_mp7", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 34:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_mp9", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 35:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_nova", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 36:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_p250", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 38:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_scar20", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 39:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_sg556", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 40:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_ssg08", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 60:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_m4a1_silencer", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 61:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_usp_silencer", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 63:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_cz75a", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
case 64:
{
if (RemovePlayerItem(Client, Weapon))
{
.83232.my_Remove(Weapon);
if ((Weapon = GivePlayerItem(Client, "weapon_revolver", 0)) != -1)
{
.15696.applyWeaponData(Client, Weapon, Id, false);
}
}
}
default:
{
}
}
}
}
}
else
{
PrintToChat(Client, "* You must have an\x05 Active Weapon");
}
}
else
{
new var3;
if (pAction == MenuAction:16 && pMenu)
{
CloseHandle(pMenu);
pMenu = MissingTAG:0;
}
}
return 0;
}
public PanelHandler_StatTrakTech(Handle:pPanel, MenuAction:pAction, Client, Selection)
{
new var1;
if (pAction == MenuAction:4 && g_bIsInGame[Client])
{
switch (Selection)
{
case 1:
{
g_bMessageShown[Client] = 1;
g_pStatTrakOption[Client] = 2;
SetClientCookie(Client, g_pStatTrakOptionCookie, "2");
PrintToChat(Client, ">>\x04 StatTrak™\x01 Technology\x05 ENABLED");
}
case 2:
{
g_bMessageShown[Client] = 1;
g_pStatTrakOption[Client] = 1;
SetClientCookie(Client, g_pStatTrakOptionCookie, "1");
PrintToChat(Client, ">>\x04 StatTrak™\x01 Technology\x07 DISABLED");
}
default:
{
}
}
}
else
{
new var2;
if (pAction == MenuAction:16 && pPanel)
{
CloseHandle(pPanel);
pPanel = MissingTAG:0;
}
}
return 0;
}
public Action:TimerHandler_DisplayStatTrakPanel(Handle:pTimer, any:Client)
{
static Handle:pPanel;
new var1;
if (g_bIsInGame[Client] && g_pStatTrakOption[Client])
{
pPanel = CreatePanel(Handle:0);
if (pPanel)
{
SetPanelTitle(pPanel, "Use StatTrak™ Technology?", false);
SetPanelKeys(pPanel, 3);
DrawPanelText(pPanel, "");
DrawPanelText(pPanel, "1. Yes");
DrawPanelText(pPanel, "2. No");
new var2;
if (!IsFakeClient(Client) && !IsClientSourceTV(Client))
{
SendPanelToClient(pPanel, Client, PanelHandler_StatTrakTech, 0);
}
CloseHandle(pPanel);
pPanel = MissingTAG:0;
}
}
return Action:0;
}
public Action:TimerHandler_DisplayKnivesMenu(Handle:pTimer, any:Client)
{
static Handle:pMenu;
new var1;
if (g_bIsInGame[Client] && !IsFakeClient(Client) && !IsClientSourceTV(Client))
{
pMenu = CreateMenu(MenuHandler_Knives, MenuAction:28);
if (pMenu)
{
SetMenuTitle(pMenu, "★ KNIVES MENU ★");
AddMenuItem(pMenu, "1", "Default (NO CHANGE)", 0);
AddMenuItem(pMenu, "2", "★ Bowie (SURViVAL)", 0);
AddMenuItem(pMenu, "3", "★ Shadow Daggers (PUSH)", 0);
AddMenuItem(pMenu, "4", "★ M9 Bayonet", 0);
AddMenuItem(pMenu, "5", "★ Karambit", 0);
AddMenuItem(pMenu, "6", "★ Bayonet", 0);
AddMenuItem(pMenu, "7", "★ Huntsman (TACTiCAL)", 0);
AddMenuItem(pMenu, "8", "★ Butterfly", 0);
AddMenuItem(pMenu, "9", "★ Gut", 0);
AddMenuItem(pMenu, "10", "★ Flip", 0);
AddMenuItem(pMenu, "11", "★ Falchion", 0);
DisplayMenu(pMenu, Client, 0);
}
}
return Action:0;
}
public MenuHandler_KnifeSkins(Handle:pMenu, MenuAction:pAction, Client, Skin)
{
static String:Info[4];
static String:Option[4];
new var1;
if (pAction == MenuAction:4 && g_bIsInGame[Client])
{
GetMenuItem(pMenu, Skin, Info, 4, 0, "", 0);
switch (StringToInt(Info, 10))
{
case -1:
{
g_pKnifeSkin[Client] = -1;
IntToString(-1, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x05 » RANDOM «");
.64812.replaceKnifeIfPossible(Client, false);
}
case 0:
{
g_pKnifeSkin[Client] = 0;
IntToString(0, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected » DEFAULT «");
.64812.replaceKnifeIfPossible(Client, false);
}
case 5:
{
g_pKnifeSkin[Client] = 5;
IntToString(5, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Forest DDPAT");
.64812.replaceKnifeIfPossible(Client, false);
}
case 12:
{
g_pKnifeSkin[Client] = 12;
IntToString(12, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Crimson Web");
.64812.replaceKnifeIfPossible(Client, false);
}
case 38:
{
g_pKnifeSkin[Client] = 38;
IntToString(38, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Fade");
.64812.replaceKnifeIfPossible(Client, false);
}
case 40:
{
g_pKnifeSkin[Client] = 40;
IntToString(40, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Night");
.64812.replaceKnifeIfPossible(Client, false);
}
case 42:
{
g_pKnifeSkin[Client] = 42;
IntToString(42, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Blue Steel");
.64812.replaceKnifeIfPossible(Client, false);
}
case 43:
{
g_pKnifeSkin[Client] = 43;
IntToString(43, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Stained");
.64812.replaceKnifeIfPossible(Client, false);
}
case 44:
{
g_pKnifeSkin[Client] = 44;
IntToString(44, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Case Hardened");
.64812.replaceKnifeIfPossible(Client, false);
}
case 59:
{
g_pKnifeSkin[Client] = 59;
IntToString(59, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Slaughter");
.64812.replaceKnifeIfPossible(Client, false);
}
case 72:
{
g_pKnifeSkin[Client] = 72;
IntToString(72, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Safari Mesh");
.64812.replaceKnifeIfPossible(Client, false);
}
case 77:
{
g_pKnifeSkin[Client] = 77;
IntToString(77, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Boreal Forest");
.64812.replaceKnifeIfPossible(Client, false);
}
case 98:
{
g_pKnifeSkin[Client] = 98;
IntToString(98, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Ultraviolet");
.64812.replaceKnifeIfPossible(Client, false);
}
case 143:
{
g_pKnifeSkin[Client] = 143;
IntToString(143, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Urban Masked");
.64812.replaceKnifeIfPossible(Client, false);
}
case 175:
{
g_pKnifeSkin[Client] = 175;
IntToString(175, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Scorched");
.64812.replaceKnifeIfPossible(Client, false);
}
case 232:
{
g_pKnifeSkin[Client] = 232;
IntToString(232, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Crimson Web (Darker)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 409:
{
g_pKnifeSkin[Client] = 409;
IntToString(409, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Tiger Tooth");
.64812.replaceKnifeIfPossible(Client, false);
}
case 410:
{
g_pKnifeSkin[Client] = 410;
IntToString(410, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
if (g_pKnife[Client] == Knife:3)
{
g_pKnifeSkin[Client] = 411;
IntToString(411, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
}
PrintToChat(Client, "* You selected\x07 Damascus Steel");
.64812.replaceKnifeIfPossible(Client, false);
}
case 411:
{
g_pKnifeSkin[Client] = 411;
IntToString(411, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Damascus Steel");
.64812.replaceKnifeIfPossible(Client, false);
}
case 413:
{
g_pKnifeSkin[Client] = 413;
IntToString(413, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Marble Fade");
.64812.replaceKnifeIfPossible(Client, false);
}
case 414:
{
g_pKnifeSkin[Client] = 414;
IntToString(414, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Rust Coat");
.64812.replaceKnifeIfPossible(Client, false);
}
case 415:
{
g_pKnifeSkin[Client] = 415;
IntToString(415, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Doppler (Ruby)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 416:
{
g_pKnifeSkin[Client] = 416;
IntToString(416, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Doppler (Sapphire)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 417:
{
g_pKnifeSkin[Client] = 417;
IntToString(417, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Doppler (Blackpearl)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 418:
{
g_pKnifeSkin[Client] = 418;
IntToString(418, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Dopple Phase #1");
.64812.replaceKnifeIfPossible(Client, false);
}
case 419:
{
g_pKnifeSkin[Client] = 419;
IntToString(419, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Dopple Phase #2");
.64812.replaceKnifeIfPossible(Client, false);
}
case 420:
{
g_pKnifeSkin[Client] = 420;
IntToString(420, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Dopple Phase #3");
.64812.replaceKnifeIfPossible(Client, false);
}
case 421:
{
g_pKnifeSkin[Client] = 421;
IntToString(421, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 Dopple Phase #4");
.64812.replaceKnifeIfPossible(Client, false);
}
case 558:
{
g_pKnifeSkin[Client] = 558;
IntToString(558, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 4;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Bayonet* Lore");
.64812.replaceKnifeIfPossible(Client, false);
}
case 559:
{
g_pKnifeSkin[Client] = 559;
IntToString(559, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 9;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Flip* Lore");
.64812.replaceKnifeIfPossible(Client, false);
}
case 560:
{
g_pKnifeSkin[Client] = 560;
IntToString(560, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 8;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Gut* Lore");
.64812.replaceKnifeIfPossible(Client, false);
}
case 561:
{
g_pKnifeSkin[Client] = 561;
IntToString(561, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 1;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Karambit* Lore");
.64812.replaceKnifeIfPossible(Client, false);
}
case 562:
{
g_pKnifeSkin[Client] = 562;
IntToString(562, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Lore");
.64812.replaceKnifeIfPossible(Client, false);
}
case 563:
{
g_pKnifeSkin[Client] = 563;
IntToString(563, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 4;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Bayonet* Black Laminate");
.64812.replaceKnifeIfPossible(Client, false);
}
case 564:
{
g_pKnifeSkin[Client] = 564;
IntToString(564, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 9;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Flip* Black Laminate");
.64812.replaceKnifeIfPossible(Client, false);
}
case 565:
{
g_pKnifeSkin[Client] = 565;
IntToString(565, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 8;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Gut* Black Laminate");
.64812.replaceKnifeIfPossible(Client, false);
}
case 566:
{
g_pKnifeSkin[Client] = 566;
IntToString(566, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 1;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Karambit* Black Laminate");
.64812.replaceKnifeIfPossible(Client, false);
}
case 567:
{
g_pKnifeSkin[Client] = 567;
IntToString(567, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Black Laminate");
.64812.replaceKnifeIfPossible(Client, false);
}
case 568:
{
g_pKnifeSkin[Client] = 568;
IntToString(568, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 G. Doppler (Emerald)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 569:
{
g_pKnifeSkin[Client] = 569;
IntToString(569, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 G. Doppler Phase #1");
.64812.replaceKnifeIfPossible(Client, false);
}
case 570:
{
g_pKnifeSkin[Client] = 570;
IntToString(570, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 G. Doppler Phase #2");
.64812.replaceKnifeIfPossible(Client, false);
}
case 571:
{
g_pKnifeSkin[Client] = 571;
IntToString(571, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 G. Doppler Phase #3");
.64812.replaceKnifeIfPossible(Client, false);
}
case 572:
{
g_pKnifeSkin[Client] = 572;
IntToString(572, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
PrintToChat(Client, "* You selected\x07 G. Doppler Phase #4");
.64812.replaceKnifeIfPossible(Client, false);
}
case 573:
{
g_pKnifeSkin[Client] = 573;
IntToString(573, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 4;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Bayonet* Autotronic");
.64812.replaceKnifeIfPossible(Client, false);
}
case 574:
{
g_pKnifeSkin[Client] = 574;
IntToString(574, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 9;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Flip* Autotronic");
.64812.replaceKnifeIfPossible(Client, false);
}
case 575:
{
g_pKnifeSkin[Client] = 575;
IntToString(575, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 8;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Gut* Autotronic");
.64812.replaceKnifeIfPossible(Client, false);
}
case 576:
{
g_pKnifeSkin[Client] = 576;
IntToString(576, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 1;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Karambit* Autotronic");
.64812.replaceKnifeIfPossible(Client, false);
}
case 577:
{
g_pKnifeSkin[Client] = 577;
IntToString(577, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Autotronic");
.64812.replaceKnifeIfPossible(Client, false);
}
case 578:
{
g_pKnifeSkin[Client] = 578;
IntToString(578, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
if (g_pKnife[Client] == Knife:3)
{
g_pKnifeSkin[Client] = 579;
IntToString(579, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
}
PrintToChat(Client, "* You selected\x07 Bright Water");
.64812.replaceKnifeIfPossible(Client, false);
}
case 579:
{
g_pKnifeSkin[Client] = 579;
IntToString(579, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Bright Water");
.64812.replaceKnifeIfPossible(Client, false);
}
case 580:
{
g_pKnifeSkin[Client] = 580;
IntToString(580, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
if (g_pKnife[Client] == Knife:3)
{
g_pKnifeSkin[Client] = 581;
IntToString(581, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
}
if (g_pKnife[Client] == Knife:1)
{
g_pKnifeSkin[Client] = 582;
IntToString(582, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
}
PrintToChat(Client, "* You selected\x07 Freehand");
.64812.replaceKnifeIfPossible(Client, false);
}
case 581:
{
g_pKnifeSkin[Client] = 581;
IntToString(581, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 3;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 M9 Bayonet* Freehand");
.64812.replaceKnifeIfPossible(Client, false);
}
case 582:
{
g_pKnifeSkin[Client] = 582;
IntToString(582, Option, 4);
SetClientCookie(Client, g_pKnifeSkinCookie, Option);
g_pKnife[Client] = 1;
IntToString(g_pKnife[Client], Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 Karambit* Freehand");
.64812.replaceKnifeIfPossible(Client, false);
}
default:
{
}
}
}
else
{
new var2;
if (pAction == MenuAction:16 && pMenu)
{
CloseHandle(pMenu);
pMenu = MissingTAG:0;
}
}
return 0;
}
public MenuHandler_Knives(Handle:pMenu, MenuAction:pAction, Client, Knife)
{
static String:Info[4];
static String:Option[4];
new var1;
if (pAction == MenuAction:4 && g_bIsInGame[Client])
{
GetMenuItem(pMenu, Knife, Info, 4, 0, "", 0);
switch (StringToInt(Info, 10))
{
case 1:
{
g_pKnife[Client] = 0;
IntToString(0, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected Default\x05 (NO CHANGE)");
.64812.replaceKnifeIfPossible(Client, false);
}
case 2:
{
g_pKnife[Client] = 10;
IntToString(10, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Bowie (SURViVAL)\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 3:
{
g_pKnife[Client] = 6;
IntToString(6, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Shadow Daggers\x05 (PUSH)\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 4:
{
g_pKnife[Client] = 3;
IntToString(3, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ M9 Bayonet\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 5:
{
g_pKnife[Client] = 1;
IntToString(1, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Karambit\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 6:
{
g_pKnife[Client] = 4;
IntToString(4, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Bayonet\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 7:
{
g_pKnife[Client] = 5;
IntToString(5, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Huntsman\x05 (TACTiCAL)\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 8:
{
g_pKnife[Client] = 2;
IntToString(2, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Butterfly\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 9:
{
g_pKnife[Client] = 8;
IntToString(8, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Gut\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 10:
{
g_pKnife[Client] = 9;
IntToString(9, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Flip\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
case 11:
{
g_pKnife[Client] = 7;
IntToString(7, Option, 4);
SetClientCookie(Client, g_pKnifeCookie, Option);
PrintToChat(Client, "* You selected\x07 ★ Falchion\x01. You can also type\x04 WS\x01 now.");
.64812.replaceKnifeIfPossible(Client, false);
}
default:
{
}
}
}
else
{
new var2;
if (pAction == MenuAction:16 && pMenu)
{
CloseHandle(pMenu);
pMenu = MissingTAG:0;
}
}
return 0;
}
public __EquipKnife(Handle:pPlugin, iParams)
{
static Id;
static Entity;
static iId = -1;
static String:Class[32];
iId = GetNativeCell(1);
new var1;
if (IsClientInGame(iId) && IsPlayerAlive(iId))
{
if (g_iFakeClient != -1)
{
.13196.KnifeClassByOption(iId, Class, 32);
new var2;
if (g_pKnife[iId] == Knife:-1 || g_pKnife[iId])
{
var3 = iId;
}
else
{
var3 = g_iFakeClient;
}
Entity = GivePlayerItem(var3, Class, 0);
if (Entity != -1)
{
Id = .85760.IDIByClass(Class);
new var4;
if (g_pKnife[iId] != Knife:-1 && g_pKnife[iId])
{
SetEntProp(Entity, PropType:0, "m_iItemDefinitionIndex", Id, 4, 0);
}
.13956.applyKnifeData(iId, Entity, Id);
EquipPlayerWeapon(iId, Entity);
}
}
}
return 0;
}
public Action:Timer_ReplaceKnife(Handle:pTimer, any:_Data)
{
static iId = -1;
static bool:bSkipInRound;
ResetPack(_Data, false);
iId = ReadPackCell(_Data);
new var1;
if (ReadPackCell(_Data))
{
var1 = 1;
}
else
{
var1 = 0;
}
bSkipInRound = var1;
CloseHandle(_Data);
_Data = MissingTAG:0;
.64812.replaceKnifeIfPossible(iId, bSkipInRound);
return Action:0;
}
public .64812.replaceKnifeIfPossible(Client, bool:bSkipInRound)
{
static String:Class[32];
static Id;
static Tries;
static Entity;
static Float:fGameTime;
static Handle:pData;
new var1;
if ((bSkipInRound && g_bIsInRound) && (Client >= 1 && Client <= MaxClients && IsClientInGame(Client) && IsPlayerAlive(Client)))
{
fGameTime = GetEngineTime();
if (fGameTime - g_fDelay < 0.075)
{
pData = CreateDataPack();
if (pData)
{
WritePackCell(pData, Client);
new var3;
if (bSkipInRound)
{
var3 = MissingTAG:1;
}
else
{
var3 = MissingTAG:0;
}
WritePackCell(pData, var3);
CreateTimer(GetRandomFloat(0.05, 0.075), Timer_ReplaceKnife, pData, 0);
}
}
Entity = -1;
Tries = 0;
while ((Entity = GetPlayerWeaponSlot(Client, 2)) != -1)
{
new var5;
if (GetEdictClassname(Entity, Class, 32) && (StrContains(Class, "Knife", false) == -1 && StrContains(Class, "Bayonet", false) == -1))
{
if (RemovePlayerItem(Client, Entity))
{
.83232.my_Remove(Entity);
if (g_iFakeClient != -1)
{
.13196.KnifeClassByOption(Client, Class, 32);
new var6;
if (g_pKnife[Client] == Knife:-1 || g_pKnife[Client])
{
var7 = Client;
}
else
{
var7 = g_iFakeClient;
}
Entity = GivePlayerItem(var7, Class, 0);
if (Entity != -1)
{
Id = .85760.IDIByClass(Class);
new var8;
if (g_pKnife[Client] != Knife:-1 && g_pKnife[Client])
{
SetEntProp(Entity, PropType:0, "m_iItemDefinitionIndex", Id, 4, 0);
}
.13956.applyKnifeData(Client, Entity, Id);
EquipPlayerWeapon(Client, Entity);
}
}
}
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
Tries += 1;
if (Tries >= 4)
{
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
}
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
return 0;
}
public .64812.replaceKnifeIfPossible(Client, bool:bSkipInRound)
{
static String:Class[32];
static Id;
static Tries;
static Entity;
static Float:fGameTime;
static Handle:pData;
new var1;
if ((bSkipInRound && g_bIsInRound) && (Client >= 1 && Client <= MaxClients && IsClientInGame(Client) && IsPlayerAlive(Client)))
{
fGameTime = GetEngineTime();
if (fGameTime - g_fDelay < 0.075)
{
pData = CreateDataPack();
if (pData)
{
WritePackCell(pData, Client);
new var3;
if (bSkipInRound)
{
var3 = MissingTAG:1;
}
else
{
var3 = MissingTAG:0;
}
WritePackCell(pData, var3);
CreateTimer(GetRandomFloat(0.05, 0.075), Timer_ReplaceKnife, pData, 0);
}
}
Entity = -1;
Tries = 0;
while ((Entity = GetPlayerWeaponSlot(Client, 2)) != -1)
{
new var5;
if (GetEdictClassname(Entity, Class, 32) && (StrContains(Class, "Knife", false) == -1 && StrContains(Class, "Bayonet", false) == -1))
{
if (RemovePlayerItem(Client, Entity))
{
.83232.my_Remove(Entity);
if (g_iFakeClient != -1)
{
.13196.KnifeClassByOption(Client, Class, 32);
new var6;
if (g_pKnife[Client] == Knife:-1 || g_pKnife[Client])
{
var7 = Client;
}
else
{
var7 = g_iFakeClient;
}
Entity = GivePlayerItem(var7, Class, 0);
if (Entity != -1)
{
Id = .85760.IDIByClass(Class);
new var8;
if (g_pKnife[Client] != Knife:-1 && g_pKnife[Client])
{
SetEntProp(Entity, PropType:0, "m_iItemDefinitionIndex", Id, 4, 0);
}
.13956.applyKnifeData(Client, Entity, Id);
EquipPlayerWeapon(Client, Entity);
}
}
}
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
Tries += 1;
if (Tries >= 4)
{
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
}
.10436.SaveMe(Client);
g_fDelay = fGameTime;
}
return 0;
}
public Action:TimerHandler_DisplaySkinsMenu(Handle:pTimer, any:Client)
{
static Handle:pMenu;
static Iter;
static Id;
static WeaponId;
static String:Class[32];
static String:Info[8];
static String:Buffer[256];
new var1;
if (g_bIsInGame[Client] && !IsFakeClient(Client) && !IsClientSourceTV(Client))
{
if (IsPlayerAlive(Client))
{
WeaponId = GetEntPropEnt(Client, PropType:0, "m_hActiveWeapon", 0);
}
else
{
WeaponId = -1;
}
if (g_pKnifeSkin[Client] == KnifeSkin:-2)
{
PrintToChat(Client, "* FiRST, PiCK UP A\x07 KNiFE\x05 PAiNT KiT OPTiON");
pMenu = CreateMenu(MenuHandler_KnifeSkins, MenuAction:28);
if (pMenu)
{
SetMenuTitle(pMenu, "★ SELECT KNiFE SKiN ★");
AddMenuItem(pMenu, "-1", "» RANDOM «", 0);
AddMenuItem(pMenu, "0", "» DEFAULT «", 0);
AddMenuItem(pMenu, "411", "M9 Bayonet* Damascus Steel", 0);
AddMenuItem(pMenu, "562", "M9 Bayonet* Lore", 0);
AddMenuItem(pMenu, "567", "M9 Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "577", "M9 Bayonet* Autotronic", 0);
AddMenuItem(pMenu, "579", "M9 Bayonet* Bright Water", 0);
AddMenuItem(pMenu, "581", "M9 Bayonet* Freehand", 0);
AddMenuItem(pMenu, "558", "Bayonet* Lore", 0);
AddMenuItem(pMenu, "563", "Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "573", "Bayonet* Autotronic", 0);
AddMenuItem(pMenu, "559", "Flip* Lore", 0);
AddMenuItem(pMenu, "564", "Flip* Black Laminate", 0);
AddMenuItem(pMenu, "574", "Flip* Autotronic", 0);
AddMenuItem(pMenu, "560", "Gut* Lore", 0);
AddMenuItem(pMenu, "565", "Gut* Black Laminate", 0);
AddMenuItem(pMenu, "575", "Gut* Autotronic", 0);
AddMenuItem(pMenu, "561", "Karambit* Lore", 0);
AddMenuItem(pMenu, "566", "Karambit* Black Laminate", 0);
AddMenuItem(pMenu, "576", "Karambit* Autotronic", 0);
AddMenuItem(pMenu, "582", "Karambit* Freehand", 0);
AddMenuItem(pMenu, "580", "Any* Freehand", 0);
AddMenuItem(pMenu, "578", "Any* Bright Water", 0);
AddMenuItem(pMenu, "569", "Any* G. Doppler Phase #1", 0);
AddMenuItem(pMenu, "570", "Any* G. Doppler Phase #2", 0);
AddMenuItem(pMenu, "571", "Any* G. Doppler Phase #3", 0);
AddMenuItem(pMenu, "572", "Any* G. Doppler Phase #4", 0);
AddMenuItem(pMenu, "568", "Any* G. Doppler (Emerald)", 0);
AddMenuItem(pMenu, "418", "Any* Doppler Phase #1", 0);
AddMenuItem(pMenu, "419", "Any* Doppler Phase #2", 0);
AddMenuItem(pMenu, "420", "Any* Doppler Phase #3", 0);
AddMenuItem(pMenu, "421", "Any* Doppler Phase #4", 0);
AddMenuItem(pMenu, "415", "Any* Doppler (Ruby)", 0);
AddMenuItem(pMenu, "416", "Any* Doppler (Sapphire)", 0);
AddMenuItem(pMenu, "417", "Any* Doppler (Blackpearl)", 0);
AddMenuItem(pMenu, "38", "Any* Fade", 0);
AddMenuItem(pMenu, "413", "Any* Marble Fade", 0);
AddMenuItem(pMenu, "44", "Any* Case Hardened", 0);
AddMenuItem(pMenu, "59", "Any* Slaughter", 0);
AddMenuItem(pMenu, "12", "Any* Crimson Web", 0);
AddMenuItem(pMenu, "232", "Any* Crimson Web (Darker)", 0);
AddMenuItem(pMenu, "98", "Any* Ultraviolet", 0);
AddMenuItem(pMenu, "40", "Any* Night", 0);
AddMenuItem(pMenu, "5", "Any* Forest DDPAT", 0);
AddMenuItem(pMenu, "77", "Any* Boreal Forest", 0);
AddMenuItem(pMenu, "42", "Any* Blue Steel", 0);
AddMenuItem(pMenu, "410", "Any* Damascus Steel", 0);
AddMenuItem(pMenu, "43", "Any* Stained", 0);
AddMenuItem(pMenu, "72", "Any* Safari Mesh", 0);
AddMenuItem(pMenu, "143", "Any* Urban Masked", 0);
AddMenuItem(pMenu, "175", "Any* Scorched", 0);
AddMenuItem(pMenu, "414", "Any* Rust Coat", 0);
AddMenuItem(pMenu, "409", "Any* Tiger Tooth", 0);
DisplayMenu(pMenu, Client, 0);
}
}
new var3;
if (WeaponId != -1 && GetEdictClassname(WeaponId, Class, 32) && (StrContains(Class, "Knife", false) == -1 && StrContains(Class, "Bayonet", false) == -1))
{
pMenu = CreateMenu(MenuHandler_KnifeSkins, MenuAction:28);
if (g_pKnife[Client] == Knife:-1)
{
if (pMenu)
{
SetMenuTitle(pMenu, "★ SELECT KNiFE SKiN ★");
AddMenuItem(pMenu, "-1", "» RANDOM «", 0);
AddMenuItem(pMenu, "0", "» DEFAULT «", 0);
AddMenuItem(pMenu, "411", "M9 Bayonet* Damascus Steel", 0);
AddMenuItem(pMenu, "562", "M9 Bayonet* Lore", 0);
AddMenuItem(pMenu, "567", "M9 Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "577", "M9 Bayonet* Autotronic", 0);
AddMenuItem(pMenu, "579", "M9 Bayonet* Bright Water", 0);
AddMenuItem(pMenu, "581", "M9 Bayonet* Freehand", 0);
AddMenuItem(pMenu, "558", "Bayonet* Lore", 0);
AddMenuItem(pMenu, "563", "Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "573", "Bayonet* Autotronic", 0);
AddMenuItem(pMenu, "559", "Flip* Lore", 0);
AddMenuItem(pMenu, "564", "Flip* Black Laminate", 0);
AddMenuItem(pMenu, "574", "Flip* Autotronic", 0);
AddMenuItem(pMenu, "560", "Gut* Lore", 0);
AddMenuItem(pMenu, "565", "Gut* Black Laminate", 0);
AddMenuItem(pMenu, "575", "Gut* Autotronic", 0);
AddMenuItem(pMenu, "561", "Karambit* Lore", 0);
AddMenuItem(pMenu, "566", "Karambit* Black Laminate", 0);
AddMenuItem(pMenu, "576", "Karambit* Autotronic", 0);
AddMenuItem(pMenu, "582", "Karambit* Freehand", 0);
AddMenuItem(pMenu, "580", "Any* Freehand", 0);
AddMenuItem(pMenu, "578", "Any* Bright Water", 0);
AddMenuItem(pMenu, "569", "Any* G. Doppler Phase #1", 0);
AddMenuItem(pMenu, "570", "Any* G. Doppler Phase #2", 0);
AddMenuItem(pMenu, "571", "Any* G. Doppler Phase #3", 0);
AddMenuItem(pMenu, "572", "Any* G. Doppler Phase #4", 0);
AddMenuItem(pMenu, "568", "Any* G. Doppler (Emerald)", 0);
AddMenuItem(pMenu, "418", "Any* Doppler Phase #1", 0);
AddMenuItem(pMenu, "419", "Any* Doppler Phase #2", 0);
AddMenuItem(pMenu, "420", "Any* Doppler Phase #3", 0);
AddMenuItem(pMenu, "421", "Any* Doppler Phase #4", 0);
AddMenuItem(pMenu, "415", "Any* Doppler (Ruby)", 0);
AddMenuItem(pMenu, "416", "Any* Doppler (Sapphire)", 0);
AddMenuItem(pMenu, "417", "Any* Doppler (Blackpearl)", 0);
AddMenuItem(pMenu, "38", "Any* Fade", 0);
AddMenuItem(pMenu, "413", "Any* Marble Fade", 0);
AddMenuItem(pMenu, "44", "Any* Case Hardened", 0);
AddMenuItem(pMenu, "59", "Any* Slaughter", 0);
AddMenuItem(pMenu, "12", "Any* Crimson Web", 0);
AddMenuItem(pMenu, "232", "Any* Crimson Web (Darker)", 0);
AddMenuItem(pMenu, "98", "Any* Ultraviolet", 0);
AddMenuItem(pMenu, "40", "Any* Night", 0);
AddMenuItem(pMenu, "5", "Any* Forest DDPAT", 0);
AddMenuItem(pMenu, "77", "Any* Boreal Forest", 0);
AddMenuItem(pMenu, "42", "Any* Blue Steel", 0);
AddMenuItem(pMenu, "410", "Any* Damascus Steel", 0);
AddMenuItem(pMenu, "43", "Any* Stained", 0);
AddMenuItem(pMenu, "72", "Any* Safari Mesh", 0);
AddMenuItem(pMenu, "143", "Any* Urban Masked", 0);
AddMenuItem(pMenu, "175", "Any* Scorched", 0);
AddMenuItem(pMenu, "414", "Any* Rust Coat", 0);
AddMenuItem(pMenu, "409", "Any* Tiger Tooth", 0);
DisplayMenu(pMenu, Client, 0);
}
}
else
{
if (pMenu)
{
SetMenuTitle(pMenu, "★ SELECT KNiFE SKiN ★");
AddMenuItem(pMenu, "-1", "» RANDOM «", 0);
AddMenuItem(pMenu, "0", "» DEFAULT «", 0);
if (g_pKnife[Client] == Knife:3)
{
AddMenuItem(pMenu, "411", "M9 Bayonet* Damascus Steel", 0);
AddMenuItem(pMenu, "562", "M9 Bayonet* Lore", 0);
AddMenuItem(pMenu, "567", "M9 Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "577", "M9 Bayonet* Autotronic", 0);
AddMenuItem(pMenu, "579", "M9 Bayonet* Bright Water", 0);
AddMenuItem(pMenu, "581", "M9 Bayonet* Freehand", 0);
}
if (g_pKnife[Client] == Knife:4)
{
AddMenuItem(pMenu, "558", "Bayonet* Lore", 0);
AddMenuItem(pMenu, "563", "Bayonet* Black Laminate", 0);
AddMenuItem(pMenu, "573", "Bayonet* Autotronic", 0);
}
if (g_pKnife[Client] == Knife:9)
{
AddMenuItem(pMenu, "559", "Flip* Lore", 0);
AddMenuItem(pMenu, "564", "Flip* Black Laminate", 0);
AddMenuItem(pMenu, "574", "Flip* Autotronic", 0);
}
if (g_pKnife[Client] == Knife:8)
{
AddMenuItem(pMenu, "560", "Gut* Lore", 0);
AddMenuItem(pMenu, "565", "Gut* Black Laminate", 0);
AddMenuItem(pMenu, "575", "Gut* Autotronic", 0);
}
if (g_pKnife[Client] == Knife:1)
{
AddMenuItem(pMenu, "561", "Karambit* Lore", 0);
AddMenuItem(pMenu, "566", "Karambit* Black Laminate", 0);
AddMenuItem(pMenu, "576", "Karambit* Autotronic", 0);
AddMenuItem(pMenu, "582", "Karambit* Freehand", 0);
}
AddMenuItem(pMenu, "580", "Any* Freehand", 0);
AddMenuItem(pMenu, "578", "Any* Bright Water", 0);
AddMenuItem(pMenu, "569", "Any* G. Doppler Phase #1", 0);
AddMenuItem(pMenu, "570", "Any* G. Doppler Phase #2", 0);
AddMenuItem(pMenu, "571", "Any* G. Doppler Phase #3", 0);
AddMenuItem(pMenu, "572", "Any* G. Doppler Phase #4", 0);
AddMenuItem(pMenu, "568", "Any* G. Doppler (Emerald)", 0);
AddMenuItem(pMenu, "418", "Any* Doppler Phase #1", 0);
AddMenuItem(pMenu, "419", "Any* Doppler Phase #2", 0);
AddMenuItem(pMenu, "420", "Any* Doppler Phase #3", 0);
AddMenuItem(pMenu, "421", "Any* Doppler Phase #4", 0);
AddMenuItem(pMenu, "415", "Any* Doppler (Ruby)", 0);
AddMenuItem(pMenu, "416", "Any* Doppler (Sapphire)", 0);
AddMenuItem(pMenu, "417", "Any* Doppler (Blackpearl)", 0);
AddMenuItem(pMenu, "38", "Any* Fade", 0);
AddMenuItem(pMenu, "413", "Any* Marble Fade", 0);
AddMenuItem(pMenu, "44", "Any* Case Hardened", 0);
AddMenuItem(pMenu, "59", "Any* Slaughter", 0);
AddMenuItem(pMenu, "12", "Any* Crimson Web", 0);
AddMenuItem(pMenu, "232", "Any* Crimson Web (Darker)", 0);
AddMenuItem(pMenu, "98", "Any* Ultraviolet", 0);
AddMenuItem(pMenu, "40", "Any* Night", 0);
AddMenuItem(pMenu, "5", "Any* Forest DDPAT", 0);
AddMenuItem(pMenu, "77", "Any* Boreal Forest", 0);
AddMenuItem(pMenu, "42", "Any* Blue Steel", 0);
AddMenuItem(pMenu, "410", "Any* Damascus Steel", 0);
AddMenuItem(pMenu, "43", "Any* Stained", 0);
AddMenuItem(pMenu, "72", "Any* Safari Mesh", 0);
AddMenuItem(pMenu, "143", "Any* Urban Masked", 0);
AddMenuItem(pMenu, "175", "Any* Scorched", 0);
AddMenuItem(pMenu, "414", "Any* Rust Coat", 0);
AddMenuItem(pMenu, "409", "Any* Tiger Tooth", 0);
DisplayMenu(pMenu, Client, 0);
}
}
}
if (!IsPlayerAlive(Client))
{
PrintToChat(Client, "* You must be\x05 Alive");
}
if (WeaponId == -1)
{
PrintToChat(Client, "* You must have an\x05 Active Weapon");
}
Id = GetEntProp(WeaponId, PropType:0, "m_iItemDefinitionIndex", 4, 0);
pMenu = CreateMenu(MenuHandler_Skins, MenuAction:28);
if (pMenu)
{
switch (Id)
{
case 1:
{
SetMenuTitle(pMenu, "Select Desert Eagle Skin");
Iter = 0;
while (Iter < 37)
{
FormatEx(Buffer, 256, g_DEagleSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 2:
{
SetMenuTitle(pMenu, "Select Dual Berettas Skin");
Iter = 0;
while (Iter < 31)
{
FormatEx(Buffer, 256, g_DualBerettasSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 3:
{
SetMenuTitle(pMenu, "Select Five-SeveN Skin");
Iter = 0;
while (Iter < 26)
{
FormatEx(Buffer, 256, g_FiveSeveNSKins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 4:
{
SetMenuTitle(pMenu, "Select Glock-18 Skin");
Iter = 0;
while (Iter < 33)
{
FormatEx(Buffer, 256, g_Glock18Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 7:
{
SetMenuTitle(pMenu, "Select AK-47 Skin");
Iter = 0;
while (Iter < 40)
{
FormatEx(Buffer, 256, g_Ak47Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 8:
{
SetMenuTitle(pMenu, "Select AUG Skin");
Iter = 0;
while (Iter < 29)
{
FormatEx(Buffer, 256, g_AugSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 9:
{
SetMenuTitle(pMenu, "Select AWP Skin");
Iter = 0;
while (Iter < 38)
{
FormatEx(Buffer, 256, g_AwpSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 10:
{
SetMenuTitle(pMenu, "Select FAMAS Skin");
Iter = 0;
while (Iter < 36)
{
FormatEx(Buffer, 256, g_FamasSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 11:
{
SetMenuTitle(pMenu, "Select G3SG1 Skin");
Iter = 0;
while (Iter < 29)
{
FormatEx(Buffer, 256, g_G3SG1Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 13:
{
SetMenuTitle(pMenu, "Select Galil AR Skin");
Iter = 0;
while (Iter < 36)
{
FormatEx(Buffer, 256, g_GalilARSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 14:
{
SetMenuTitle(pMenu, "Select M249 Skin");
Iter = 0;
while (Iter < 23)
{
FormatEx(Buffer, 256, g_M249Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 16:
{
SetMenuTitle(pMenu, "Select M4A4 Skin");
Iter = 0;
while (Iter < 40)
{
FormatEx(Buffer, 256, g_M4A4Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 17:
{
SetMenuTitle(pMenu, "Select MAC-10 Skin");
Iter = 0;
while (Iter < 32)
{
FormatEx(Buffer, 256, g_Mac10Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 19:
{
SetMenuTitle(pMenu, "Select P90 Skin");
Iter = 0;
while (Iter < 39)
{
FormatEx(Buffer, 256, g_P90Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 24:
{
SetMenuTitle(pMenu, "Select UMP-45 Skin");
Iter = 0;
while (Iter < 33)
{
FormatEx(Buffer, 256, g_Ump45Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 25:
{
SetMenuTitle(pMenu, "Select XM1014 Skin");
Iter = 0;
while (Iter < 31)
{
FormatEx(Buffer, 256, g_XM1014Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 26:
{
SetMenuTitle(pMenu, "Select PP-Bizon Skin");
Iter = 0;
while (Iter < 32)
{
FormatEx(Buffer, 256, g_PPBizonSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 27:
{
SetMenuTitle(pMenu, "Select MAG-7 Skin");
Iter = 0;
while (Iter < 30)
{
FormatEx(Buffer, 256, g_Mag7Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 28:
{
SetMenuTitle(pMenu, "Select Negev Skin");
Iter = 0;
while (Iter < 29)
{
FormatEx(Buffer, 256, g_NegevSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 29:
{
SetMenuTitle(pMenu, "Select Sawed-Off Skin");
Iter = 0;
while (Iter < 33)
{
FormatEx(Buffer, 256, g_SawedOffSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 30:
{
SetMenuTitle(pMenu, "Select Tec-9 Skin");
Iter = 0;
while (Iter < 32)
{
FormatEx(Buffer, 256, g_Tec9Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 32:
{
SetMenuTitle(pMenu, "Select P2000 Skin");
Iter = 0;
while (Iter < 31)
{
FormatEx(Buffer, 256, g_P2000Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 33:
{
SetMenuTitle(pMenu, "Select MP7 Skin");
Iter = 0;
while (Iter < 30)
{
FormatEx(Buffer, 256, g_Mp7Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 34:
{
SetMenuTitle(pMenu, "Select MP9 Skin");
Iter = 0;
while (Iter < 35)
{
FormatEx(Buffer, 256, g_Mp9Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 35:
{
SetMenuTitle(pMenu, "Select Nova Skin");
Iter = 0;
while (Iter < 34)
{
FormatEx(Buffer, 256, g_NovaSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 36:
{
SetMenuTitle(pMenu, "Select P250 Skin");
Iter = 0;
while (Iter < 31)
{
FormatEx(Buffer, 256, g_P250Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 38:
{
SetMenuTitle(pMenu, "Select SCAR-20 Skin");
Iter = 0;
while (Iter < 29)
{
FormatEx(Buffer, 256, g_Scar20Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 39:
{
SetMenuTitle(pMenu, "Select SG 553 Skin");
Iter = 0;
while (Iter < 30)
{
FormatEx(Buffer, 256, g_SG553Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 40:
{
SetMenuTitle(pMenu, "Select SSG 08 Skin");
Iter = 0;
while (Iter < 31)
{
FormatEx(Buffer, 256, g_SSG08Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 60:
{
SetMenuTitle(pMenu, "Select M4A1-S Skin");
Iter = 0;
while (Iter < 35)
{
FormatEx(Buffer, 256, g_M4A1Skins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 61:
{
SetMenuTitle(pMenu, "Select USP-S Skin");
Iter = 0;
while (Iter < 36)
{
FormatEx(Buffer, 256, g_UspSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 63:
{
SetMenuTitle(pMenu, "Select CZ75-Auto Skin");
Iter = 0;
while (Iter < 34)
{
FormatEx(Buffer, 256, g_CZ75AutoSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
case 64:
{
SetMenuTitle(pMenu, "Select R8 Revolver Skin");
Iter = 0;
while (Iter < 23)
{
FormatEx(Buffer, 256, g_RevolverSkins[Iter]);
IntToString(Iter, Info, 8);
AddMenuItem(pMenu, Info, Buffer, 0);
Iter += 1;
}
}
default:
{
SetMenuTitle(pMenu, "Select Skin");
AddMenuItem(pMenu, "0", "Default", 0);
}
}
g_ItemDefinitionIndex[Client] = Id;
DisplayMenu(pMenu, Client, 0);
}
}
return Action:0;
}
public Action:TimerHandler_DisplayStatTrakDetails(Handle:pTimer, any:Client)
{
new var1;
if (g_bIsInGame[Client] && !g_bMessageShown[Client])
{
PrintHintText(Client, "Type !ST for StatTrak™ weapons.");
PrintToChat(Client, ">> Type\x07 !ST\x01 for StatTrak™\x01 weapons.");
g_bMessageShown[Client] = 1;
}
return Action:0;
}
public .83232.my_Remove(Data)
{
AcceptEntityInput(Data, "KillHierarchy", -1, -1, 0);
return 0;
}
public .83232.my_Remove(Data)
{
AcceptEntityInput(Data, "KillHierarchy", -1, -1, 0);
return 0;
}
public .83292.ClassById(Id, String:Class[], Size)
{
switch (Id)
{
case 1:
{
FormatEx(Class, Size, "weapon_deagle");
}
case 2:
{
FormatEx(Class, Size, "weapon_elite");
}
case 3:
{
FormatEx(Class, Size, "weapon_fiveseven");
}
case 4:
{
FormatEx(Class, Size, "weapon_glock");
}
case 7:
{
FormatEx(Class, Size, "weapon_ak47");
}
case 8:
{
FormatEx(Class, Size, "weapon_aug");
}
case 9:
{
FormatEx(Class, Size, "weapon_awp");
}
case 10:
{
FormatEx(Class, Size, "weapon_famas");
}
case 11:
{
FormatEx(Class, Size, "weapon_g3sg1");
}
case 13:
{
FormatEx(Class, Size, "weapon_galilar");
}
case 14:
{
FormatEx(Class, Size, "weapon_m249");
}
case 16:
{
FormatEx(Class, Size, "weapon_m4a1");
}
case 17:
{
FormatEx(Class, Size, "weapon_mac10");
}
case 19:
{
FormatEx(Class, Size, "weapon_p90");
}
case 24:
{
FormatEx(Class, Size, "weapon_ump45");
}
case 25:
{
FormatEx(Class, Size, "weapon_xm1014");
}
case 26:
{
FormatEx(Class, Size, "weapon_bizon");
}
case 27:
{
FormatEx(Class, Size, "weapon_mag7");
}
case 28:
{
FormatEx(Class, Size, "weapon_negev");
}
case 29:
{
FormatEx(Class, Size, "weapon_sawedoff");
}
case 30:
{
FormatEx(Class, Size, "weapon_tec9");
}
case 32:
{
FormatEx(Class, Size, "weapon_hkp2000");
}
case 33:
{
FormatEx(Class, Size, "weapon_mp7");
}
case 34:
{
FormatEx(Class, Size, "weapon_mp9");
}
case 35:
{
FormatEx(Class, Size, "weapon_nova");
}
case 36:
{
FormatEx(Class, Size, "weapon_p250");
}
case 38:
{
FormatEx(Class, Size, "weapon_scar20");
}
case 39:
{
FormatEx(Class, Size, "weapon_sg556");
}
case 40:
{
FormatEx(Class, Size, "weapon_ssg08");
}
case 42:
{
FormatEx(Class, Size, "weapon_knife");
}
case 59:
{
FormatEx(Class, Size, "weapon_knife_t");
}
case 60:
{
FormatEx(Class, Size, "weapon_m4a1_silencer");
}
case 61:
{
FormatEx(Class, Size, "weapon_usp_silencer");
}
case 63:
{
FormatEx(Class, Size, "weapon_cz75a");
}
case 64:
{
FormatEx(Class, Size, "weapon_revolver");
}
case 500:
{
FormatEx(Class, Size, "weapon_bayonet");
}
case 505:
{
FormatEx(Class, Size, "weapon_knife_flip");
}
case 506:
{
FormatEx(Class, Size, "weapon_knife_gut");
}
case 507:
{
FormatEx(Class, Size, "weapon_knife_karambit");
}
case 508:
{
FormatEx(Class, Size, "weapon_knife_m9_bayonet");
}
case 509:
{
FormatEx(Class, Size, "weapon_knife_tactical");
}
case 512:
{
FormatEx(Class, Size, "weapon_knife_falchion");
}
case 514:
{
FormatEx(Class, Size, "weapon_knife_survival_bowie");
}
case 515:
{
FormatEx(Class, Size, "weapon_knife_butterfly");
}
case 516:
{
FormatEx(Class, Size, "weapon_knife_push");
}
default:
{
Class[0] = MissingTAG:0;
}
}
new var1;
if (Class[0])
{
var1 = 1;
}
else
{
var1 = 0;
}
return var1;
}
public .83292.ClassById(Id, String:Class[], Size)
{
switch (Id)
{
case 1:
{
FormatEx(Class, Size, "weapon_deagle");
}
case 2:
{
FormatEx(Class, Size, "weapon_elite");
}
case 3:
{
FormatEx(Class, Size, "weapon_fiveseven");
}
case 4:
{
FormatEx(Class, Size, "weapon_glock");
}
case 7:
{
FormatEx(Class, Size, "weapon_ak47");
}
case 8:
{
FormatEx(Class, Size, "weapon_aug");
}
case 9:
{
FormatEx(Class, Size, "weapon_awp");
}
case 10:
{
FormatEx(Class, Size, "weapon_famas");
}
case 11:
{
FormatEx(Class, Size, "weapon_g3sg1");
}
case 13:
{
FormatEx(Class, Size, "weapon_galilar");
}
case 14:
{
FormatEx(Class, Size, "weapon_m249");
}
case 16:
{
FormatEx(Class, Size, "weapon_m4a1");
}
case 17:
{
FormatEx(Class, Size, "weapon_mac10");
}
case 19:
{
FormatEx(Class, Size, "weapon_p90");
}
case 24:
{
FormatEx(Class, Size, "weapon_ump45");
}
case 25:
{
FormatEx(Class, Size, "weapon_xm1014");
}
case 26:
{
FormatEx(Class, Size, "weapon_bizon");
}
case 27:
{
FormatEx(Class, Size, "weapon_mag7");
}
case 28:
{
FormatEx(Class, Size, "weapon_negev");
}
case 29:
{
FormatEx(Class, Size, "weapon_sawedoff");
}
case 30:
{
FormatEx(Class, Size, "weapon_tec9");
}
case 32:
{
FormatEx(Class, Size, "weapon_hkp2000");
}
case 33:
{
FormatEx(Class, Size, "weapon_mp7");
}
case 34:
{
FormatEx(Class, Size, "weapon_mp9");
}
case 35:
{
FormatEx(Class, Size, "weapon_nova");
}
case 36:
{
FormatEx(Class, Size, "weapon_p250");
}
case 38:
{
FormatEx(Class, Size, "weapon_scar20");
}
case 39:
{
FormatEx(Class, Size, "weapon_sg556");
}
case 40:
{
FormatEx(Class, Size, "weapon_ssg08");
}
case 42:
{
FormatEx(Class, Size, "weapon_knife");
}
case 59:
{
FormatEx(Class, Size, "weapon_knife_t");
}
case 60:
{
FormatEx(Class, Size, "weapon_m4a1_silencer");
}
case 61:
{
FormatEx(Class, Size, "weapon_usp_silencer");
}
case 63:
{
FormatEx(Class, Size, "weapon_cz75a");
}
case 64:
{
FormatEx(Class, Size, "weapon_revolver");
}
case 500:
{
FormatEx(Class, Size, "weapon_bayonet");
}
case 505:
{
FormatEx(Class, Size, "weapon_knife_flip");
}
case 506:
{
FormatEx(Class, Size, "weapon_knife_gut");
}
case 507:
{
FormatEx(Class, Size, "weapon_knife_karambit");
}
case 508:
{
FormatEx(Class, Size, "weapon_knife_m9_bayonet");
}
case 509:
{
FormatEx(Class, Size, "weapon_knife_tactical");
}
case 512:
{
FormatEx(Class, Size, "weapon_knife_falchion");
}
case 514:
{
FormatEx(Class, Size, "weapon_knife_survival_bowie");
}
case 515:
{
FormatEx(Class, Size, "weapon_knife_butterfly");
}
case 516:
{
FormatEx(Class, Size, "weapon_knife_push");
}
default:
{
Class[0] = MissingTAG:0;
}
}
new var1;
if (Class[0])
{
var1 = 1;
}
else
{
var1 = 0;
}
return var1;
}
public .85760.IDIByClass(String:szClass[])
{
if (!strcmp(szClass, "weapon_bayonet", true))
{
return 500;
}
if (!strcmp(szClass, "weapon_knife_flip", true))
{
return 505;
}
if (!strcmp(szClass, "weapon_knife_gut", true))
{
return 506;
}
if (!strcmp(szClass, "weapon_knife_karambit", true))
{
return 507;
}
if (!strcmp(szClass, "weapon_knife_m9_bayonet", true))
{
return 508;
}
if (!strcmp(szClass, "weapon_knife_tactical", true))
{
return 509;
}
if (!strcmp(szClass, "weapon_knife_falchion", true))
{
return 512;
}
if (!strcmp(szClass, "weapon_knife_survival_bowie", true))
{
return 514;
}
if (!strcmp(szClass, "weapon_knife_butterfly", true))
{
return 515;
}
if (!strcmp(szClass, "weapon_knife_push", true))
{
return 516;
}
if (!strcmp(szClass, "weapon_knife", true))
{
return 42;
}
if (!strcmp(szClass, "weapon_knife_t", true))
{
return 59;
}
return 0;
}
public .85760.IDIByClass(String:szClass[])
{
if (!strcmp(szClass, "weapon_bayonet", true))
{
return 500;
}
if (!strcmp(szClass, "weapon_knife_flip", true))
{
return 505;
}
if (!strcmp(szClass, "weapon_knife_gut", true))
{
return 506;
}
if (!strcmp(szClass, "weapon_knife_karambit", true))
{
return 507;
}
if (!strcmp(szClass, "weapon_knife_m9_bayonet", true))
{
return 508;
}
if (!strcmp(szClass, "weapon_knife_tactical", true))
{
return 509;
}
if (!strcmp(szClass, "weapon_knife_falchion", true))
{
return 512;
}
if (!strcmp(szClass, "weapon_knife_survival_bowie", true))
{
return 514;
}
if (!strcmp(szClass, "weapon_knife_butterfly", true))
{
return 515;
}
if (!strcmp(szClass, "weapon_knife_push", true))
{
return 516;
}
if (!strcmp(szClass, "weapon_knife", true))
{
return 42;
}
if (!strcmp(szClass, "weapon_knife_t", true))
{
return 59;
}
return 0;
}
public .86548.hCSGO_PureChatCommand(String:Input[], String:Output[], Size)
{
static m_Length;
static m_Iterator;
m_Iterator = 0;
m_Length = 0;
Output[0] = MissingTAG:0;
while (strlen(Input) > m_Iterator)
{
new var1;
if (Input[m_Iterator] == '!' || Input[m_Iterator] == '/' || IsCharAlpha(Input[m_Iterator]) || IsCharNumeric(Input[m_Iterator]))
{
m_Length = Format(Output, Size, "%s%c", Output, Input[m_Iterator]);
}
m_Iterator += 1;
}
return m_Length;
}
public .86548.hCSGO_PureChatCommand(String:Input[], String:Output[], Size)
{
static m_Length;
static m_Iterator;
m_Iterator = 0;
m_Length = 0;
Output[0] = MissingTAG:0;
while (strlen(Input) > m_Iterator)
{
new var1;
if (Input[m_Iterator] == '!' || Input[m_Iterator] == '/' || IsCharAlpha(Input[m_Iterator]) || IsCharNumeric(Input[m_Iterator]))
{
m_Length = Format(Output, Size, "%s%c", Output, Input[m_Iterator]);
}
m_Iterator += 1;
}
return m_Length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment