Raised This Month: $ Target: $400
 0% 

5 items i need to know


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-04-2009 , 04:55   Re: 5 items i need to know
Reply With Quote #2

  1. Code:
    #include <amxmodx> #include <hamsandwich>   new g_iBuyZoneEntSpawn;   public plugin_precache()         g_iBuyZoneEntSpawn = RegisterHam(Ham_Spawn, "func_buyzone", "fwdBuyZoneEntSpawn");   public plugin_init()         DisableHamForward(g_iBuyZoneEntSpawn);   public fwdBuyZoneEntSpawn(iEnt)         return pev_valid(iEnt) ? HAM_SUPERCEDE : HAM_IGNORED;
  2. Code:
    #include <amxmodx> #include <fun> #include <hamsandwich>   #define OFFSET_PRIMARYWEAPON 116   public plugin_init()         RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);   public fwdPlayerSpawn(iCl)         if (is_user_alive(iCl))         {                 strip_user_weapons(iCl);                 set_pdata_int(iCl, OFFSET_PRIMARYWEAPON, 0);                 give_item(iCl, "weapon_knife"); // Remove this if you don't want knife         }
  3. Code:
    #include <amxmodx> #include <fakemeta>   public plugin_init()         register_forward(FM_CmdStart, "fwdCmdStart");   public fwdCmdStart(iCl, iHandle) {         if (get_user_weapon(iCl) == CSW_KNIFE)         {                 static iButtons;                 iButtons = get_uc(iHandle, UC_Buttons);                   if (iButtons & IN_ATTACK)                 {                         set_uc(iHandle, UC_Buttons, ~IN_ATTACK);                           return FMRES_SUPERCEDE;                 }                 else if (iButtons & IN_ATTACK2)                 {                         set_uc(iHandle, UC_Buttons, ~IN_ATTACK2);                           return FMRES_SUPERCEDE;                 }         }           return FMRES_IGNORED; }
  4. Code:
    #include <amxmodx> #include <cstrike> #include <hamsandwich>   public plugin_init()         RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);   public fwdPlayerSpawn(iCl)         if (is_user_alive(iCl))                 cs_set_user_plant(iCl, 0, 0);
__________________

Last edited by hleV; 06-04-2009 at 05:07.
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 13:55.


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