Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PlVers:__version = 5;
- new Float:NULL_VECTOR[3];
- new String:NULL_STRING[1];
- new Extension:__ext_core = 64;
- new MaxClients;
- new Extension:__ext_sdktools = 328;
- new Extension:__ext_sdkhooks = 372;
- new Float:PreviousPunchAngle[65][3];
- new BurstShotsFired[65];
- new ModeStateArray[65][2];
- new ProcessArray[65][4];
- new bool:IsAdmin[65];
- new g_iBunnyhop[65];
- new g_iNoFlash[65];
- new g_iFlashAlpha = -1;
- new Float:TakeDmg[65];
- new Float:TakeDmg[65];
- new Float:ChanceToTakeDmg[65];
- new Triggerbot[65];
- new Aimbot[65];
- new AimbotMulti[65];
- new OnAttack[65];
- new NoFallDmg[65];
- new Float:aFov[65];
- new Float:Speedhack[65];
- new Float:Smooth[65];
- new Float:AimChance[65];
- new Handle:WeaponTypeTrie;
- new Handle:WeaponZoomSpeedTrie;
- new AimPos[65];
- new AimT[65];
- new All[65][14];
- new Float:HeadChance[65];
- new HeadChanceF[65];
- new Float:view_angles[65][3];
- new aimbot_event;
- public Plugin:myinfo =
- {
- name = "Basic Chat",
- description = "",
- author = "AlliedModders LLC",
- version = "1.3.6",
- url = ""
- };
- public __ext_core_SetNTVOptional()
- {
- MarkNativeAsOptional("GetFeatureStatus");
- MarkNativeAsOptional("RequireFeature");
- MarkNativeAsOptional("AddCommandListener");
- MarkNativeAsOptional("RemoveCommandListener");
- VerifyCoreVersion();
- return 0;
- }
- Float:operator-(Float:)(Float:oper)
- {
- return oper ^ 0;
- }
- Float:operator*(Float:,_:)(Float:oper1, oper2)
- {
- return FloatMul(oper1, float(oper2));
- }
- Float:operator/(Float:,_:)(Float:oper1, oper2)
- {
- return FloatDiv(oper1, float(oper2));
- }
- bool:operator==(Float:,Float:)(Float:oper1, Float:oper2)
- {
- return FloatCompare(oper1, oper2) == 0;
- }
- bool:operator!=(Float:,Float:)(Float:oper1, Float:oper2)
- {
- return FloatCompare(oper1, oper2) != 0;
- }
- bool:operator!=(Float:,_:)(Float:oper1, oper2)
- {
- return FloatCompare(oper1, float(oper2)) != 0;
- }
- bool:operator>(Float:,Float:)(Float:oper1, Float:oper2)
- {
- return FloatCompare(oper1, oper2) > 0;
- }
- bool:operator>=(Float:,Float:)(Float:oper1, Float:oper2)
- {
- return FloatCompare(oper1, oper2) >= 0;
- }
- bool:operator>=(Float:,_:)(Float:oper1, oper2)
- {
- return FloatCompare(oper1, float(oper2)) >= 0;
- }
- bool:operator<(Float:,Float:)(Float:oper1, Float:oper2)
- {
- return FloatCompare(oper1, oper2) < 0;
- }
- bool:StrEqual(String:str1[], String:str2[], bool:caseSensitive)
- {
- return strcmp(str1, str2, caseSensitive) == 0;
- }
- StrCat(String:buffer[], maxlength, String:source[])
- {
- new len = strlen(buffer);
- if (len >= maxlength) {
- return 0;
- }
- return Format(buffer[len], maxlength - len, "%s", source);
- }
- GetEntDataArray(entity, offset, array[], arraySize, dataSize)
- {
- new i = 0;
- while (i < arraySize) {
- array[i] = GetEntData(entity, dataSize * i + offset, dataSize);
- i++;
- }
- return 0;
- }
- SetEntDataArray(entity, offset, array[], arraySize, dataSize, bool:changeState)
- {
- new i = 0;
- while (i < arraySize) {
- SetEntData(entity, dataSize * i + offset, array[i], dataSize, changeState);
- i++;
- }
- return 0;
- }
- GetEntityFlags(entity)
- {
- static bool:gotconfig;
- static String:datamap[8];
- if (!gotconfig) {
- new Handle:gc = LoadGameConfigFile("core.games");
- new bool:exists = GameConfGetKeyValue(gc, "m_fFlags", "", 32);
- CloseHandle(gc);
- if (!exists) {
- strcopy("", 32, "m_fFlags");
- }
- __unk = 1;
- }
- return GetEntProp(entity, PropType:1, "", 4);
- }
- GetClientButtons(client)
- {
- static bool:gotconfig;
- static String:datamap[8];
- if (!gotconfig) {
- new Handle:gc = LoadGameConfigFile("core.games");
- new bool:exists = GameConfGetKeyValue(gc, "m_nButtons", "", 32);
- CloseHandle(gc);
- if (!exists) {
- strcopy("", 32, "m_nButtons");
- }
- __unk = 1;
- }
- return GetEntProp(client, PropType:1, "", 4);
- }
- /* ERROR! Unrecognized opcode: genarray_z */
- function "EmitSoundToAll" (number 17)
- public OnPluginStart()
- {
- WeaponTypeTrie = CreateTrie();
- WeaponZoomSpeedTrie = CreateTrie();
- CreateConVar("ssh_version", "2.0", "Current Version", 0, false, 0, false, 0);
- g_iFlashAlpha = FindSendPropOffs("CCSPlayer", "m_flFlashMaxAlpha");
- HookEvent("player_blind", EventHook:5, EventHookMode:1);
- HookEvent("player_spawn", EventHook:9, EventHookMode:1);
- HookEventEx("player_death", EventHook:7, EventHookMode:0);
- HookEvent("weapon_fire", EventHook:11, EventHookMode:1);
- RegConsoleCmd("ssh_weapon", ModAttribute, "", 0);
- RegConsoleCmd("ssh_bunnyhop", ModBunnyhop, "", 0);
- RegConsoleCmd("ssh_noflash", ModNoFlash, "", 0);
- RegConsoleCmd("ssh_takendmg", ModLag, "", 0);
- RegConsoleCmd("ssh_lag", ModChance, "", 0);
- RegConsoleCmd("ssh_triggerbot", ModTrigger, "", 0);
- RegConsoleCmd("ssh_speedhack", ModSpeed, "", 0);
- RegConsoleCmd("ssh_aimbot", ModAim, "", 0);
- RegConsoleCmd("ssh_nofalldmg", ModFallDmg, "", 0);
- RegConsoleCmd("ssh_info", ModInfo, "", 0);
- RegConsoleCmd("say", Command_Say, "", 0);
- RegConsoleCmd("say_team", Command_Say, "", 0);
- new cnt = 0;
- while (cnt <= 64) {
- Aimbot[cnt] = 0;
- AimbotMulti[cnt] = 1;
- HeadChance[cnt] = 1065353216;
- AimPos[cnt] = 0;
- OnAttack[cnt] = 0;
- Smooth[cnt] = 1065353216;
- Speedhack[cnt] = 1065353216;
- Triggerbot[cnt] = 0;
- TakeDmg[cnt] = 1065353216;
- ChanceToTakeDmg[cnt] = 1065353216;
- AimT[cnt] = 0;
- All[cnt][0][0][0] = 1065353216;
- All[cnt][0][0][4] = -1082130432;
- All[cnt][0][0][8] = 1065353216;
- All[cnt][0][0][12] = -1;
- All[cnt][0][0][16] = 1065353216;
- All[cnt][0][0][20] = 1065353216;
- All[cnt][0][0][24] = 1065353216;
- All[cnt][0][0][28] = 1065353216;
- All[cnt][0][0][32] = 1065353216;
- All[cnt][0][0][36] = 1065353216;
- All[cnt][0][0][40] = 1065353216;
- All[cnt][0][0][44] = -1;
- All[cnt][0][0][48] = 0;
- All[cnt][0][0][52] = 0;
- AimChance[cnt] = 1065353216;
- SetTrieArray(WeaponTypeTrie, "all", All[cnt][0][0], 14, true);
- cnt++;
- }
- SetTrieValue(WeaponZoomSpeedTrie, "scout", any:1066878417, true);
- SetTrieValue(WeaponZoomSpeedTrie, "sg552", any:1066821222, true);
- SetTrieValue(WeaponZoomSpeedTrie, "awp", any:1068708659, true);
- SetTrieValue(WeaponZoomSpeedTrie, "sg550", any:1068708659, true);
- new client = 1;
- while (client <= MaxClients) {
- new AdminId:aid = GetUserAdmin(client);
- if (aid != AdminId:-1) {
- if (GetAdminFlag(aid, AdminFlag:15, AdmAccessMode:1)) {
- IsAdmin[client] = 1;
- }
- }
- if (IsClientInGame(client)) {
- SDKHook(client, SDKHookType:5, SDKHookCB:53);
- SDKHook(client, SDKHookType:20, SDKHookCB:55);
- SDKHook(client, SDKHookType:11, SDKHookCB:61);
- SDKHook(client, SDKHookType:16, SDKHookCB:63);
- SDKHook(client, SDKHookType:2, SDKHookCB:59);
- SDKHook(client, SDKHookType:17, SDKHookCB:65);
- SDKHook(client, SDKHookType:1, SDKHookCB:45);
- client++;
- }
- client++;
- }
- return 0;
- }
- public OnClientPutInServer(client)
- {
- SDKHook(client, SDKHookType:5, SDKHookCB:53);
- SDKHook(client, SDKHookType:20, SDKHookCB:55);
- SDKHook(client, SDKHookType:11, SDKHookCB:61);
- SDKHook(client, SDKHookType:16, SDKHookCB:63);
- SDKHook(client, SDKHookType:2, SDKHookCB:59);
- SDKHook(client, SDKHookType:17, SDKHookCB:65);
- SDKHook(client, SDKHookType:1, SDKHookCB:45);
- Smooth[client] = 1065353216;
- return 0;
- }
- public OnClientDisconnect(client)
- {
- if (IsClientInGame(client)) {
- Aimbot[client] = 0;
- AimbotMulti[client] = 1;
- HeadChance[client] = 1065353216;
- IsAdmin[client] = 0;
- AimPos[client] = 0;
- Smooth[client] = 1065353216;
- OnAttack[client] = 0;
- Speedhack[client] = 1065353216;
- Triggerbot[client] = 0;
- g_iBunnyhop[client] = 0;
- g_iNoFlash[client] = 0;
- TakeDmg[client] = 1065353216;
- ChanceToTakeDmg[client] = 1065353216;
- All[client][0][0][0] = 1065353216;
- All[client][0][0][4] = -1082130432;
- All[client][0][0][8] = 1065353216;
- All[client][0][0][12] = -1;
- All[client][0][0][16] = 1065353216;
- All[client][0][0][20] = 1065353216;
- All[client][0][0][24] = 1065353216;
- All[client][0][0][28] = 1065353216;
- All[client][0][0][32] = 1065353216;
- All[client][0][0][36] = 1065353216;
- All[client][0][0][40] = 1065353216;
- All[client][0][0][44] = -1;
- All[client][0][0][48] = 0;
- All[client][0][0][52] = 0;
- AimT[client] = 0;
- AimChance[client] = 1065353216;
- }
- return 0;
- }
- public Action:EventPlayerBlind(Handle:event, String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- if (!IsAdmin[client][0][0]) {
- return Action:0;
- }
- return Action:0;
- }
- public Action:EventPlayerDeath(Handle:event, String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- new client2 = GetClientOfUserId(GetEventInt(event, "attacker"));
- new var1;
- if (aimbot_event == client) {
- EmitSoundToAll("player/headshot1.wav", client, 2, 326, 0, 1, 100, -1, NULL_VECTOR, NULL_VECTOR, true, 0);
- SetEventBool(event, "headshot", true);
- aimbot_event = -1;
- HeadChanceF[client2] = 0;
- }
- return Action:0;
- }
- public OnClientPostAdminCheck(client)
- {
- new var1;
- if (IsFakeClient(client)) {
- return 0;
- }
- new AdminId:aid = GetUserAdmin(client);
- if (aid != AdminId:-1) {
- if (GetAdminFlag(aid, AdminFlag:15, AdmAccessMode:1)) {
- IsAdmin[client] = 1;
- }
- }
- return 0;
- }
- public OnPluginEnd()
- {
- CloseHandle(WeaponTypeTrie);
- CloseHandle(WeaponZoomSpeedTrie);
- return 0;
- }
- public Action:ModBunnyhop(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:0;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- g_iBunnyhop[client] = StringToInt(AttributeValue, 10);
- return Action:3;
- }
- public Action:Command_Say(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:0;
- }
- decl String:AttributeValue[128];
- decl String:final[256];
- BuildPath(PathType:0, final, 256, "ssh/");
- GetCmdArg(1, AttributeValue, 128);
- StrCat(final, 256, AttributeValue);
- StrCat(final, 256, ".cfg");
- new Handle:userfile = OpenFile(final, "r+");
- if (FileExists(final, false)) {
- while (!IsEndOfFile(userfile)) {
- decl String:line[256];
- ReadFileLine(userfile, line, 256);
- FakeClientCommand(client, line);
- }
- }
- return Action:0;
- }
- public Action:ModFallDmg(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- NoFallDmg[client] = StringToInt(AttributeValue, 10);
- return Action:3;
- }
- public Action:ModSpoof(client, args)
- {
- PrintToConsole(client, "Unknown Command");
- return Action:3;
- }
- public Action:ModAim(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue1[20];
- decl String:AttributeValue2[20];
- GetCmdArg(1, AttributeValue1, 20);
- if (GetCmdArgs() != 2) {
- Aimbot[client] = StringToInt(AttributeValue1, 10);
- } else {
- GetCmdArg(2, AttributeValue2, 20);
- if (StrEqual("fov", AttributeValue1, false)) {
- aFov[client] = StringToFloat(AttributeValue2);
- }
- if (StrEqual("smooth", AttributeValue1, false)) {
- if (StringToFloat(AttributeValue2) >= 1) {
- Smooth[client] = StringToFloat(AttributeValue2);
- }
- }
- if (StrEqual("onattack", AttributeValue1, false)) {
- OnAttack[client] = StringToInt(AttributeValue2, 10);
- }
- if (StrEqual("through", AttributeValue1, false)) {
- AimT[client] = StringToInt(AttributeValue2, 10);
- }
- if (StrEqual("chance", AttributeValue1, false)) {
- AimChance[client] = StringToFloat(AttributeValue2);
- }
- if (StrEqual("hs_chance", AttributeValue1, false)) {
- HeadChance[client] = StringToFloat(AttributeValue2);
- }
- if (StrEqual("multi", AttributeValue1, false)) {
- AimbotMulti[client] = StringToInt(AttributeValue2, 10);
- }
- if (StrEqual("pos", AttributeValue1, false)) {
- if (StrEqual("head", AttributeValue2, false)) {
- AimPos[client] = 0;
- }
- if (StrEqual("normal", AttributeValue2, false)) {
- AimPos[client] = 1;
- }
- }
- }
- return Action:3;
- }
- public Action:ModInfo(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- PrintToConsole(client, "\n");
- PrintToConsole(client, "ssh_aimbot 1");
- PrintToConsole(client, "ssh_bunnyhop 0-1");
- PrintToConsole(client, "ssh_noflash 0-1");
- PrintToConsole(client, "ssh_lag 0.0-1.0");
- PrintToConsole(client, "ssh_takendmg 0.0-1.0");
- PrintToConsole(client, "ssh_weapon <sub> <value>");
- PrintToConsole(client, "ssh_triggerbot 0-1");
- PrintToConsole(client, "ssh_speedhack 0.0-50.0");
- PrintToConsole(client, "ssh_nofalldmg 0-1");
- PrintToConsole(client, "\n");
- PrintToConsole(client, "Aimbot Subkeys:");
- PrintToConsole(client, "fov 0.0-360.0");
- PrintToConsole(client, "onattack 0-1");
- PrintToConsole(client, "\n");
- PrintToConsole(client, "Weapon Subkeys:");
- PrintToConsole(client, "\n");
- PrintToConsole(client, "recoil 0.0-1.0");
- PrintToConsole(client, "firerate 0-25");
- PrintToConsole(client, "dmg 0-30");
- PrintToConsole(client, "dmg_head 0-30");
- PrintToConsole(client, "dmg_leg 0-30");
- PrintToConsole(client, "dmg_arm 0-30");
- PrintToConsole(client, "dmg_chest 0-30");
- PrintToConsole(client, "ammo 0-1");
- PrintToConsole(client, "fastswitch");
- return Action:3;
- }
- public Action:ModSpeed(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- Speedhack[client] = StringToFloat(AttributeValue);
- SetEntPropFloat(client, PropType:1, "m_flLaggedMovementValue", Speedhack[client][0][0]);
- return Action:3;
- }
- public Action:ModTrigger(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- Triggerbot[client] = StringToInt(AttributeValue, 10);
- return Action:3;
- }
- public Action:ModNoFlash(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- g_iNoFlash[client] = StringToInt(AttributeValue, 10);
- return Action:3;
- }
- public Action:ModLag(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- TakeDmg[client] = StringToFloat(AttributeValue);
- return Action:3;
- }
- public Action:ModChance(client, args)
- {
- if (!IsAdmin[client][0][0]) {
- return Action:3;
- }
- decl String:AttributeValue[20];
- GetCmdArg(1, AttributeValue, 20);
- ChanceToTakeDmg[client] = StringToFloat(AttributeValue);
- return Action:3;
- }
- /* ERROR! unknown operator */
- function "ModAttribute" (number 36)
- public bool:TraceRayDontHitSelf(entity, mask, data)
- {
- if (data == entity) {
- return false;
- }
- return true;
- }
- public Action:EventPlayerSpawn(Handle:event, String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- SetEntPropFloat(client, PropType:1, "m_flLaggedMovementValue", Speedhack[client][0][0]);
- return Action:0;
- }
- /* ERROR! unknown operator */
- function "MakeVector" (number 39)
- public CalcAngle(Float:src[3], Float:dst[3], Float:angles[3])
- {
- decl Float:delta[3];
- delta[0] = FloatSub(src[0], dst[0]);
- delta[4] = FloatSub(src[4], dst[4]);
- delta[8] = FloatSub(src[8], dst[8]);
- new Float:hyp = SquareRoot(FloatAdd(FloatMul(delta[0], delta[0]), FloatMul(delta[4], delta[4])));
- angles[0] = FloatMul(3.14159, ArcTangent(FloatDiv(delta[8], hyp)));
- angles[4] = FloatMul(3.14159, ArcTangent(FloatDiv(delta[4], delta[0])));
- angles[8] = 0;
- if (delta[0] >= 0) {
- new var1 = angles[4];
- var1 = FloatAdd(180, var1);
- }
- return 0;
- }
- public Float:GetDmg(client, cnt)
- {
- decl String:buf[256];
- GetClientWeapon(client, buf, 256);
- new Float:ret = 0;
- if (strcmp(buf, "weapon_glock", true)) {
- if (strcmp(buf, "weapon_usp", true)) {
- if (strcmp(buf, "weapon_p228", true)) {
- if (strcmp(buf, "weapon_deagle", true)) {
- if (strcmp(buf, "weapon_elite", true)) {
- if (strcmp(buf, "weapon_fiveseven", true)) {
- if (strcmp(buf, "weapon_m3", true)) {
- if (strcmp(buf, "weapon_xm1014", true)) {
- if (strcmp(buf, "weapon_galil", true)) {
- if (strcmp(buf, "weapon_ak47", true)) {
- if (strcmp(buf, "weapon_scout", true)) {
- if (strcmp(buf, "weapon_sg552", true)) {
- if (strcmp(buf, "weapon_awp", true)) {
- if (strcmp(buf, "weapon_g3sg1", true)) {
- if (strcmp(buf, "weapon_famas", true)) {
- if (strcmp(buf, "weapon_m4a1", true)) {
- if (strcmp(buf, "weapon_aug", true)) {
- if (strcmp(buf, "weapon_sg550", true)) {
- if (strcmp(buf, "weapon_mac10", true)) {
- if (strcmp(buf, "weapon_tmp", true)) {
- if (strcmp(buf, "weapon_mp5navy", true)) {
- if (strcmp(buf, "weapon_ump45", true)) {
- if (strcmp(buf, "weapon_p90", true)) {
- if (strcmp(buf, "weapon_m249", true)) {
- } else {
- ret = FloatAdd(100, GetRandomFloat(1, 25));
- }
- }
- ret = FloatAdd(65, GetRandomFloat(1, 30));
- }
- ret = FloatAdd(60, GetRandomFloat(1, 20));
- }
- ret = FloatAdd(70, GetRandomFloat(1, 30));
- }
- ret = FloatAdd(70, GetRandomFloat(1, 25));
- }
- ret = FloatAdd(70, GetRandomFloat(1, 30));
- }
- ret = FloatAdd(200, GetRandomFloat(1, 100));
- }
- ret = FloatAdd(110, GetRandomFloat(1, 30));
- }
- ret = FloatAdd(100, GetRandomFloat(1, 40));
- }
- ret = FloatAdd(90, GetRandomFloat(1, 25));
- }
- ret = FloatAdd(200, GetRandomFloat(1, 100));
- }
- ret = FloatAdd(250, GetRandomFloat(1, 160));
- }
- ret = FloatAdd(90, GetRandomFloat(1, 30));
- }
- ret = FloatAdd(150, GetRandomFloat(1, 100));
- }
- ret = FloatAdd(125, GetRandomFloat(1, 40));
- }
- ret = FloatAdd(100, GetRandomFloat(1, 40));
- }
- ret = FloatAdd(65, GetRandomFloat(1, 40));
- }
- ret = FloatAdd(70, GetRandomFloat(1, 15));
- }
- ret = FloatAdd(80, GetRandomFloat(1, 15));
- }
- ret = FloatAdd(70, GetRandomFloat(1, 15));
- }
- ret = FloatAdd(100, GetRandomFloat(1, 40));
- }
- ret = FloatAdd(90, GetRandomFloat(1, 15));
- }
- ret = FloatAdd(85, GetRandomFloat(1, 15));
- } else {
- ret = FloatAdd(50, GetRandomFloat(0, 15));
- }
- ret = FloatMul(ret, GetRandomFloat(0.9, 1.1));
- new helmet = GetEntProp(cnt, PropType:0, "m_bHasHelmet", 4);
- if (helmet) {
- ret = FloatMul(0.9, ret);
- }
- if (!HeadChanceF[client][0][0]) {
- ret = FloatMul(ret, GetRandomFloat(0.3, 0.65));
- }
- return ret;
- }
- /* ERROR! unknown operator */
- function "EventWeaponFire" (number 42)
- /* ERROR! unknown operator */
- function "OnPlayerRunCmd" (number 43)
- /* ERROR! unknown operator */
- function "OnPreThinkPost" (number 44)
- /* ERROR! unknown operator */
- function "OnPostThink" (number 45)
- /* ERROR! unknown operator */
- function "OnPostThinkPost" (number 46)
- /* ERROR! unknown operator */
- function "OnTraceAttack" (number 47)
- /* ERROR! unknown operator */
- function "OnTakeDamage" (number 48)
- public OnFireBullets(client, shots, String:weaponname[])
- {
- return 0;
- }
- public Action:OnWeaponEquip(client, weapon)
- {
- decl String:WeaponName[32];
- GetEdictClassname(weapon, WeaponName, 30);
- ReplaceString(WeaponName, 30, "weapon_", "", false);
- decl GetWeaponInfo[14];
- GetTrieArray(WeaponTypeTrie, WeaponName, GetWeaponInfo, 14, 0);
- if (All[client][0][0][12] != -1) {
- ModeStateArray[client][0][0][0] = 0;
- }
- if (All[client][0][0][44] != -1) {
- ModeStateArray[client][0][0][4] = 0;
- }
- return Action:0;
- }
- public Action:OnWeaponSwitch(client, weapon)
- {
- BurstShotsFired[client] = 0;
- decl String:WeaponName[32];
- GetEdictClassname(weapon, WeaponName, 30);
- ReplaceString(WeaponName, 30, "weapon_", "", false);
- decl GetWeaponInfo[14];
- GetTrieArray(WeaponTypeTrie, WeaponName, GetWeaponInfo, 14, 0);
- if (All[client][0][0][52] == 1) {
- ProcessArray[client][0][0][12] = 1;
- }
- return Action:0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement