Raised This Month: $ Target: $400
 0% 

Remove health and guns from maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-26-2014 , 04:13   Re: Remove health and guns from maps
Reply With Quote #1

The "game_player_equip" entities are responsible for equipping players on spawn, remove those and the player will not be equipped: https://github.com/Arkshine/CSSDK/bl...rules.cpp#L645
__________________
In Flames we trust!
Nextra is offline
Hackerpcs
Member
Join Date: Jul 2012
Location: Greece
Old 11-26-2014 , 05:32   Re: Remove health and guns from maps
Reply With Quote #2

Quote:
Originally Posted by Nextra View Post
The "game_player_equip" entities are responsible for equipping players on spawn, remove those and the player will not be equipped: https://github.com/Arkshine/CSSDK/bl...rules.cpp#L645
The weapons aren't given on player spawn, they are given when you go to a certain area (described in 1st post) in the map and are not on the ground. My plugin uses this to block weapons on ground
PHP Code:
//plugin_init
/* ************ Weapon pickup block - By Exolent ********** */
    
RegisterHamHam_Touch"armoury_entity""FwdHamPlayerPickup" );
    
RegisterHamHam_Touch"weaponbox""FwdHamPlayerPickup" );

/* ******************************* Block weapon pickup - By Exolent ******************************** */
public FwdHamPlayerPickupiEntityid )
{
    return ( 
<= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE HAM_IGNORED

So I tried this

PHP Code:
//plugin_init
    
RegisterHamHam_Touch"game_player_equip""gm_pl_eq" );

public 
gm_pl_eqiEntityid )
{
    return ( 
<= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE HAM_IGNORED

But it doesn't work, weapons are still equipped in said spots.
Hackerpcs is offline
Reply



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 17:32.


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