Green Gaben
Join Date: Mar 2006
Location: OH-IO!
|
02-23-2016
, 23:22
Re: [CS:GO] 2/23 New update - *4096 model precache table*
|
#32
|
Quote:
Originally Posted by psychonic
Bans are by GSLTs, which are registered to your Steam account either by a web api key or on the new registration page. Accounts ties to a web api key used for workshop, if different, aren't touched.
Using GiveNamedItem with any of the knifes besides weapon_knife and weapon_knifegg will trigger the detection.
|
I was using a completely different steam account with CS:GO + a different phone number for my new API keys. I also wasn't spawning any of their market items (not even "weapon_knifegg" as I'm sure people saw me crying about during the last ban wave).
This is an old plugin I made pretty much when skins came out that would apply your skin to weapons the map spawned. I was still running the plugin until I finally removed it tonight in hopes it was causing the bans. Maybe the way it quickly swapped out the map weapon for your own was causing it?
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools_functions>
#include <sdktools_entinput>
#include <cstrike>
#pragma semicolon 1
new const String:PLUGIN_NAME[] = "Weapon skin fix";
new const String:PLUGIN_VERSION[] = "2.3";
public Plugin:myinfo =
{
name = PLUGIN_NAME,
author = "hlstriker",
description = "Allows players to use their skins on map spawned weapons.",
version = PLUGIN_VERSION,
url = "www.swoobles.com"
}
#define MAX_WEAPON_ENT_NAME_LEN 32
#define ITEM_DEF_INDEX_M4A1 60
#define ITEM_DEF_INDEX_USP 61
enum
{
WEAPON_TEAM_ANY = 0,
WEAPON_TEAM_T = CS_TEAM_T,
WEAPON_TEAM_CT = CS_TEAM_CT
};
new Handle:g_aWeapons;
enum _:WeaponData
{
String:WEAPON_ENT_NAME[MAX_WEAPON_ENT_NAME_LEN],
WEAPON_TEAM_NUMBER
};
public OnPluginStart()
{
CreateConVar("map_weapon_skins_ver", PLUGIN_VERSION, PLUGIN_NAME, FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_NOTIFY|FCVAR_PRINTABLEONLY);
g_aWeapons = CreateArray(WeaponData);
AddWeaponsToArray();
for(new iClient=1; iClient<=MaxClients; iClient++)
{
if(IsClientInGame(iClient))
PlayerHooks(iClient);
}
}
public OnClientPutInServer(iClient)
{
PlayerHooks(iClient);
}
PlayerHooks(iClient)
{
if(IsFakeClient(iClient))
return;
SDKHook(iClient, SDKHook_WeaponEquipPost, OnWeaponEquip_Post);
}
public OnWeaponEquip_Post(iClient, iWeapon)
{
if(iWeapon < 1 || !IsValidEntity(iWeapon))
return;
if(!GetEntProp(iWeapon, Prop_Data, "m_iHammerID"))
return;
static String:szClassName[MAX_WEAPON_ENT_NAME_LEN];
if(!GetEntityClassname(iWeapon, szClassName, sizeof(szClassName)))
return;
SetEntProp(iWeapon, Prop_Data, "m_iHammerID", 0);
new iItemDefinitionIndex = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex");
switch(iItemDefinitionIndex)
{
case ITEM_DEF_INDEX_M4A1: strcopy(szClassName, sizeof(szClassName), "weapon_m4a1_silencer");
case ITEM_DEF_INDEX_USP: strcopy(szClassName, sizeof(szClassName), "weapon_usp_silencer");
}
new iActiveWeapon = GetEntPropEnt(iClient, Prop_Send, "m_hActiveWeapon");
if(iActiveWeapon == iWeapon)
SetEntPropEnt(iClient, Prop_Send, "m_hActiveWeapon", -1);
RemovePlayerItem(iClient, iWeapon);
if(GiveWeapon(iClient, szClassName, iItemDefinitionIndex))
{
AcceptEntityInput(iWeapon, "Kill");
}
else
{
EquipPlayerWeapon(iClient, iWeapon);
if(iActiveWeapon == iWeapon)
SetEntPropEnt(iClient, Prop_Send, "m_hActiveWeapon", iWeapon);
}
}
bool:GiveWeapon(iClient, const String:szWeaponName[], iItemDefinitionIndex)
{
new iIndex = FindStringInArray(g_aWeapons, szWeaponName);
if(iIndex == -1)
return false;
static eWeaponData[WeaponData];
GetArrayArray(g_aWeapons, iIndex, eWeaponData);
new iClientTeam = GetClientTeam(iClient);
if(eWeaponData[WEAPON_TEAM_NUMBER] != WEAPON_TEAM_ANY)
SetEntProp(iClient, Prop_Send, "m_iTeamNum", eWeaponData[WEAPON_TEAM_NUMBER]);
new iWeapon = GivePlayerItem(iClient, eWeaponData[WEAPON_ENT_NAME]);
SetEntProp(iClient, Prop_Send, "m_iTeamNum", iClientTeam);
RemovePlayerItem(iClient, iWeapon);
SetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex", iItemDefinitionIndex);
EquipPlayerWeapon(iClient, iWeapon);
return true;
}
AddWeaponsToArray()
{
// Knife
AddWeaponToArray("weapon_knife");
// Pistols
AddWeaponToArray("weapon_glock", WEAPON_TEAM_T);
AddWeaponToArray("weapon_hkp2000", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_usp_silencer", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_elite");
AddWeaponToArray("weapon_p250");
AddWeaponToArray("weapon_cz75a");
AddWeaponToArray("weapon_fiveseven", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_tec9", WEAPON_TEAM_T);
AddWeaponToArray("weapon_deagle");
// Heavy
AddWeaponToArray("weapon_nova");
AddWeaponToArray("weapon_xm1014");
AddWeaponToArray("weapon_sawedoff", WEAPON_TEAM_T);
AddWeaponToArray("weapon_mag7", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_m249");
AddWeaponToArray("weapon_negev");
// SMGs
AddWeaponToArray("weapon_mac10", WEAPON_TEAM_T);
AddWeaponToArray("weapon_mp7");
AddWeaponToArray("weapon_mp9", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_ump45");
AddWeaponToArray("weapon_p90");
AddWeaponToArray("weapon_bizon");
// Rifles
AddWeaponToArray("weapon_galilar", WEAPON_TEAM_T);
AddWeaponToArray("weapon_famas", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_ak47", WEAPON_TEAM_T);
AddWeaponToArray("weapon_m4a1", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_m4a1_silencer", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_ssg08");
AddWeaponToArray("weapon_sg556", WEAPON_TEAM_T);
AddWeaponToArray("weapon_aug", WEAPON_TEAM_CT);
AddWeaponToArray("weapon_awp");
AddWeaponToArray("weapon_g3sg1", WEAPON_TEAM_T);
AddWeaponToArray("weapon_scar20", WEAPON_TEAM_CT);
}
AddWeaponToArray(const String:szWeaponEntName[], const iWeaponTeam=WEAPON_TEAM_ANY)
{
decl eWeaponData[WeaponData];
strcopy(eWeaponData[WEAPON_ENT_NAME], MAX_WEAPON_ENT_NAME_LEN, szWeaponEntName);
eWeaponData[WEAPON_TEAM_NUMBER] = iWeaponTeam;
PushArrayArray(g_aWeapons, eWeaponData);
}
|
|