Raised This Month: $ Target: $400
 0% 

Orpheu - Problems with HAM - GiveAmmo - And what the hell is Think?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sake
Senior Member
Join Date: Jul 2011
Old 08-08-2011 , 13:20   Re: Problems with HAM - GiveAmmo - And what the hell is Think?
Reply With Quote #7

Another thing I couldn't figure out. I am trying to use GiveAmmo directly from the game without the need of using HAM.

PHP Code:
{
    
"name" "giveAmmo",
    
"class" "CBasePlayer",
    
"library" "mod",
    
"arguments" :
    [
    {
        
"type" "int",
        
"info" "ammo"
    
},
    {
        
"type" "char *",
        
"info" "Ammo Name"
    
},
    {
        
"type" "int",
        
"info" "ammomax"
    
}
    ],
    
"indexes":
    [
        {
            
"os" "windows",
            
"mod" "cstrike",
            
"value" 15
        
},
        {
            
"os" "linux",
            
"mod" "cstrike",
            
"value" 16
        
}
    ]

This is the giveAmmo File. The Call works but I don't get any ammo. What do I have to pass as second parameter in order to get for example "556nato" - Ammo?

EDIT: Didn't count right. Will let you know if that was the problem.

EDIT: Yep, Works .

Last edited by sake; 08-08-2011 at 13:51.
sake 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:19.


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