Raised This Month: $ Target: $400
 0% 

Unknown command: jointeam [HLDM]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-12-2009 , 05:11   Re: strip_user_weapons works selectively [HLDM]
Reply With Quote #2

Why don't you block the pickup?
Code:
#include <amxmodx> #include <fakemeta_util> #include <hamsandwich>   #define MAX_CLASSNAMES 3   new g_szClassNames[MAX_CLASSNAMES][] = {         "weaponbox",         "armoury_entity",         "grenade" };   public plugin_init() {         register_forward(FM_Touch, "fwTouch");           RegisterHam(Ham_Spawn, "player", "hSpawn", 1); }   public fwTouch(iEnt, iCl) {         if (!pev_valid(iEnt) || !is_user_alive(iCl))                 return FMRES_IGNORED;           new szClassName[32];         pev(iEnt, pev_classname, szClassName, 31);           for (new i = 0; i < MAX_CLASSNAMES; i++)                 if (equal(szClassName, g_szClassNames[i]))                         return FMRES_SUPERCEDE;           return FMRES_IGNORED; }   public hSpawn(iCl) {         if (!is_user_alive(iCl))                 return;           fm_strip_user_weapons(iCl); }
__________________
hleV 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 16:51.


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