Raised This Month: $ Target: $400
 0% 

Remove FY spawn weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blanko
Senior Member
Join Date: Aug 2008
Old 02-26-2017 , 13:56   Remove FY spawn weapons
Reply With Quote #1

How to remove the default awps and other weapon spawns from FY maps?
__________________
blanko is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-26-2017 , 15:23   Re: Remove FY spawn weapons
Reply With Quote #2

Code:
#include <amxmodx> #include <engine> #define PLUGIN_VERSION "1.0" new const g_szEntities[][] = { "player_weaponstrip", "game_player_equip", "armoury_entity" } public plugin_init() {     register_plugin("No Weapons On Ground", PLUGIN_VERSION, "OciXCrom")     register_cvar("@NoWeaponsOnGround", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)         for(new i, iEnt = -1; i < sizeof(g_szEntities); i++)     {         iEnt = -1                 while((iEnt = find_ent_by_class(iEnt, g_szEntities[i])))         {             if(is_valid_ent(iEnt))                 remove_entity(iEnt)         }     } }
__________________

Last edited by OciXCrom; 02-26-2017 at 15:23.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 02:45.


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