Quote:
Originally Posted by shavit
Those aren't even slowhacks as they don't change anything for the player's computer, but just in context for the gamemode. Even if they would, those examples are just harmless slowhacks.
Not allowing servers to change a player's weapon (see snippet below) would break gamemodes such as Trikz (CS:S) or even a "mini game-mode" inside the popular Jailbreak from CS:S, CS:GO and TF2:
Code:
switch(gLR_Current)
{
case LR_Dodgeball:
{
if(StrEqual(sWeapon, "flashbang"))
{
DataPack dp = new DataPack();
dp.WriteCell(GetClientSerial(client));
dp.WriteString("weapon_flashbang");
CreateTimer(0.25, Timer_AutoSwitch, dp);
}
}
}
public Action Timer_AutoSwitch(Handle Timer, any data)
{
ResetPack(data);
int serial = ReadPackCell(data);
char[] sWeapon = new char[32];
ReadPackString(data, sWeapon, 32);
CloseHandle(data);
int client = GetClientFromSerial(serial);
if(client == 0)
{
return Plugin_Stop;
}
FakeClientCommand(client, "use weapon_knife"); // simulate the same effect of sending "invprev" twice
GivePlayerItem(client, sWeapon);
FakeClientCommand(client, "use %s", sWeapon);
return Plugin_Stop;
}
|
I see, tbh, I also find this usefull. Especially on my AMXX bury plug-in when a player is burried all weapons are took off excluding knife for CS, crowbar for Hl etc umbrella for TFC as civilian etc or crowbar / wrench / knife / medikit depending on class etc. And after the player is unburried he gets all his weapons back. So, yea, this feature is usefull but here might be cases sometimes like if a serer uses this in terms of harmless slowhacking, like stripping weapons of certain users for no given reason at random time and so that other ppl can kill them, stuff like that you know.