Raised This Month: $ Target: $400
 0% 

Get mapname from config file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 09-09-2008 , 06:52   Get mapname from config file
Reply With Quote #1

well i want this script to use config file which contains list of map to remove weapon entities from.


weapon_stripper.cfg
Quote:
de_map1
de_map2
cs_map
Weapons Stripper
Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN    "Weapons Stripper" #define AUTHOR    "Jim" #define VERSION    "1.0" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public plugin_precache() {     register_forward(FM_Spawn, "fwd_spawn") } public fwd_spawn(ent) {     new classname[32]     pev(ent, pev_classname, classname, 31)     if(classname[0] == 'a' && classname[1] == 'r')     {         engfunc(EngFunc_RemoveEntity, ent)         return FMRES_SUPERCEDE     }     return FMRES_IGNORED }

thanks in advanced and +1 karma
Mlk27 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 03:09.


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