After taking a look on your code,
This :
PHP Code:
stock TF2_GetNameOfClass(TFClassType:class, String:name[], maxlen)
{
switch (class)
{
case TFClass_Scout: Format(name, maxlen, "scout");
case TFClass_Soldier: Format(name, maxlen, "soldier");
case TFClass_Pyro: Format(name, maxlen, "pyro");
case TFClass_DemoMan: Format(name, maxlen, "demoman");
case TFClass_Heavy: Format(name, maxlen, "heavy");
case TFClass_Engineer: Format(name, maxlen, "engineer");
case TFClass_Medic: Format(name, maxlen, "medic");
case TFClass_Sniper: Format(name, maxlen, "sniper");
case TFClass_Spy: Format(name, maxlen, "spy");
}
}
is useless because you didn't use in your code.
You forgot to do a command for this :
PHP Code:
public Action:Command_getmsnow(client, args)
{
CreateTimer(0.1, Command_GetmsRandom);
}
And for the SDKHook_OnTakeDamage : You should write this :
PHP Code:
public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
if(IsValidClient(attacker))
{
if(g_bIsHHH[victim] && g_bIsHHH[attacker])
{
if(victim == attacker)
{
return Plugin_Handled;
}
}
}
return Plugin_Continue;
}
instead of this
PHP Code:
public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
if(attacker >= 1 && attacker <= MaxClients)
{
if(g_bIsHHH[victim] && g_bIsHHH[attacker])
{
return Plugin_Handled;
}
}
return Plugin_Continue;
}
For your reports :
1)For the "Fancy SpellBook" : There is something on tf2_stocks.inc :
Code:
// TF2 Weapon Loadout Slots
enum
{
TFWeaponSlot_Primary, //0
TFWeaponSlot_Secondary, //1
TFWeaponSlot_Melee, //2
TFWeaponSlot_Grenade, //3
TFWeaponSlot_Building, //4
TFWeaponSlot_PDA, //5
TFWeaponSlot_Item1, //6
TFWeaponSlot_Item2 //7
};
Try to remove the weapon slot 6 or 7 or both.
PHP Code:
TF2_RemoveWeaponSlot(client, 6);
2) Already Awnsered on
my previous post
3) Same as above
__________________