You solved my problem with
Code:
224
{
(1<<0) m_bChangeNameAtRespawn
( 1<<1) m_szNewName[]
}
Real offset are in reality 896 and 897 but i didn't think we could directly pass them, could you explain it please, i don't understand well russian
Test plugin :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
#define PLUGIN ""
const XO_PLAYER = 5
const m_bChangeNameAtRespawn = 224
const m_szNewName = 224*4 + 1
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
register_clcmd("drop", "drop")
}
public drop(id)
{
if( get_pdata_int(id, m_bChangeNameAtRespawn, XO_PLAYER) & (1<<0) )
{
new szNewName[32]
get_pdata_string(id, m_szNewName, szNewName, charsmax(szNewName), 0, XO_PLAYER)
client_print(id, print_chat, "New Name gonna be : %s", szNewName)
}
}
Edit :
Haven't tested on linux but i believe you have to do *4 with extra offset as well
__________________