Raised This Month: $51 Target: $400
 12% 

[CSGO] Axe and hammer pick up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
root88
Senior Member
Join Date: May 2016
Old 12-08-2018 , 05:01   [CSGO] Axe and hammer pick up
Reply With Quote #1

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[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    if(
IsPlayerAlive(client))
    {
        
int iAxe GivePlayerItem(client"weapon_axe");
        
EquipPlayerWeapon(clientiAxe);
    }

It will work, but I still can't pick them up from ground.
__________________

Last edited by root88; 12-08-2018 at 05:51. Reason: update, better code
root88 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode