Raised This Month: $ Target: $400
 0% 

what's shield id? help~


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Basic-Master
Veteran Member
Join Date: Apr 2005
Location: hello pm
Old 05-07-2005 , 17:33  
Reply With Quote #4

okay, try this:
Code:
#include <amxmodx> #include <fakemeta> #include <engine> #include <fun> #define OFFSET_SHIELD    510 #define OFFSET_SHIELD_AMD64    559 //AMXX team forgot to put this in core.inc //returns true if server is amd64 native is_amd64_server(); public plugin_precache() {     precache_model("models/test/p_shield.mdl"); } public plugin_modules(){     require_module("fakemeta");     require_module("fun"); } public cs_user_has_shield( id ){     new shieldFlag;     if ( is_amd64_server() ) shieldFlag = get_pdata_int(id, OFFSET_SHIELD_AMD64, 0);         else shieldFlag = get_pdata_int(id, OFFSET_SHIELD);             return (shieldFlag & (1<<24)); } public event_curweapon(id) {     if (cs_user_has_shield(id))         entity_set_string(id,EV_SZ_weaponmodel,"models/test/p_shield.mdl"); }

works only when fakemeta, engine and fun modules are added to modules.ini.
Basic-Master is offline
Send a message via ICQ to Basic-Master Send a message via MSN to Basic-Master
 



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:48.


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