Raised This Month: $ Target: $400
 0% 

[HL1] Hooking Keyvalue on entities not in gametype


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 11-02-2013 , 20:32   Re: [HL1] Hooking Keyvalue on entities not in gametype
Reply With Quote #1

Quote:
Originally Posted by ConnorMcLeod View Post
Just don't filter key = "classname" and you gonna catch other properties.
Got it, thanks.

Solution:
PHP Code:
public pfn_keyvalue(entid)
{
    new class[
32], key[32], value[32]
    
copy_keyvalue(class, 31key31value31)
    
    
log_to_file("ents.log","ClassName : %s  KeyName : %s  KeyValue : %s",class, keyvalue)
    
    if(
containi(class, "weapon_")!=-1)
        
log_to_file("weapon.log","ClassName : %s  KeyName : %s  KeyValue : %s",class, keyvalue)
    if(
containi(class, "ammo_")!=-1)
        
log_to_file("ammo.log","ClassName : %s  KeyName : %s  KeyValue : %s",class, keyvalue)

__________________
+|- KARMA Respectively

HLM is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2013 , 20:47   Re: [HL1] Hooking Keyvalue on entities not in gametype
Reply With Quote #2

You wanna change ground weapons ?
What do you want to do exactly ?
Sounds like x y problem.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 23:15.


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