First off, you dont need to include core, since amxmodx does that already..
and I added <amxmisc> for the cmd_access() function..
Oh, and the return value in plugin_init() is ignored, so you dont need it..
Edit: oooops.. you dont need engine module either..
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new PLUGIN[]="Offset"
new AUTHOR[]="Stephenr"
new VERSION[]="0.1"
public plugin_init()
{
register_clcmd("amx_offset","get_offset", ADMIN_LEVEL_A, "<offset>")
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public get_offset(id, lvl, cid)
{
if( !cmd_access( id, lvl, cid, 1 ) )
return PLUGIN_HANDLED
new szOffset[16]
read_argv( 1, szOffset, 15 )
new iOffset = str_to_num( szOffset )
if( iOffset > 0 )
{
new iPDataVal = get_pdata_int( id, iOffset )
client_print( id, print_chat, "Your Private Data at Offset %d is: %d", iOffset, iPDataVal )
}
return PLUGIN_HANDLED
}
I hope that helps..