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

Disable drop guns every round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nocky
Member
Join Date: Oct 2013
Location: Czech Republic
Old 03-14-2019 , 18:14   Disable drop guns every round
Reply With Quote #1

Hi, how to forbid each new round from falling down when they have been fired from their last round.

https://www.youtube.com/watch?v=6rivx6HvMK4
Nocky is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-15-2019 , 10:36   Re: Disable drop guns every round
Reply With Quote #2

PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public void OnEntityCreated(int entity, const char[] classname)
{    
    if (
StrEqual(classname"game_player_equip"))
    {
        
SDKHook(entitySDKHook_SpawnPostOnGamePlayerEquipSpawn);
    }
}

public 
void OnGamePlayerEquipSpawn(int entity)
{
    if (
GetEntProp(entityProp_Data"m_spawnflags") & 1)
    {
        return;
    }

    
SetEntProp(entityProp_Data"m_spawnflags"4);

https://developer.valvesoftware.com/...e_player_equip
__________________

Last edited by Ilusion9; 03-15-2019 at 10:38.
Ilusion9 is offline
Nocky
Member
Join Date: Oct 2013
Location: Czech Republic
Old 03-16-2019 , 01:42   Re: Disable drop guns every round
Reply With Quote #3

Thanks, it works
Nocky is offline
Reply


Thread Tools
Display Modes

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 12:33.


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