Raised This Month: $51 Target: $400
 12% 

Gamedata Hook AMX 1.9


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
colossus
Member
Join Date: Sep 2013
Old 05-15-2020 , 02:17   Gamedata Hook AMX 1.9
Reply With Quote #1

Hi, how to hook this

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <gameconfig>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "colossus"

new GameConfig:gameConfig
new HookGiveDefaultItems

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
gameConfig LoadGameConfigFile("modules.games/game.cstrike")
    
HookGiveDefaultItems GameConfGetOffset(gameConfig"GiveDefaultItems")
    
server_print("a%d b%d"gameConfigHookGiveDefaultItems)
}

public 
GiveDefaultItems(id) {
    
client_print(idprint_chat"Testtt")
    return 
PLUGIN_CONTINUE

Output:
a1 b-1

Last edited by colossus; 05-15-2020 at 02:20.
colossus 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 02:43.


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