Hi!
After CSGO Danger Zone Update there are axes and hammers. What I'd like to do is picking them up in normal game mode. You can spawn them for example with:
Code:
sv_cheats 1
give weapon_axe
give weapon_hammer
but you can't pick them up. Anyone?
*update
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn);
}
public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
if(IsPlayerAlive(client))
{
int iAxe = GivePlayerItem(client, "weapon_axe");
EquipPlayerWeapon(client, iAxe);
}
}
It will work, but I still can't pick them up from ground.
__________________