AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Remove FY spawn weapons (https://forums.alliedmods.net/showthread.php?t=294427)

blanko 02-26-2017 13:56

Remove FY spawn weapons
 
How to remove the default awps and other weapon spawns from FY maps?

OciXCrom 02-26-2017 15:23

Re: Remove FY spawn weapons
 
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)         }     } }


All times are GMT -4. The time now is 02:01.

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