//E: Sorry for double post, didn't notice there was an extra forum for scripting support!
Hey guys!
I am currently developing a small mod and I am stuck at a certain point. I try to give each team a different set of weapons. When I looked through the forums I found this post:
https://forums.alliedmods.net/showthread.php?t=209850
What I've done:
1.) Tested this code on de_dust2:
PHP Code:
mp_ct_default_grenades = "weapon_flashbang weapon_smokegrenade weapon_decoygrenade"
mp_ct_default_melee = weapon_knife
mp_ct_default_primary = ""
mp_ct_default_secondary = weapon_fiveseven
mp_t_default_grenades = "weapon_flashbang weapon_smokegrenade weapon_decoygrenade"
mp_ct_default_melee = weapon_knife
mp_ct_default_primary = ""
mp_ct_default_secondary = ""
What I get is a CT without anything (just a knife) and a T with a glock. Which was stupid.
2.) Read the topic and saw there is a solution, tried to integrate it with the new standards
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
public OnEntityCreated(entity, const char[] classname)
{
if(StrEqual(classname, "game_player_equip"))
{
AcceptEntityInput(entity, "Kill");
}
}
This does not work either. Still the same result on de_dust2, vanille sourcemod stuff without any extensions than the default.
Does anyone know a solution for this?
Cheers
P.S: I've also checked if the ConVar is set correctly on the server checking it via console, it has the correct value.