Code:
#include <amxmodx>
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
#define MAKEWORD(%1,%2,%3,%4) ((((%1)&0xF)<<12)|(((%2)&0xF)<<8)|(((%3)&0xF)<<4)|((%4)&0xF))
#define GET_1(%1) ( (%1)>>12 & 0xF )
#define GET_2(%1) ( (%1)>>8 & 0xF )
#define GET_3(%1) ( (%1)>>4 & 0xF )
#define GET_4(%1) ( (%1) & 0xF )
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("test", "test")
}
public test(id)
{
new a = 1
new b = 5
new c = 7
new d = 13
new e = MAKEWORD(a,b,c,d)
console_print(id, "%d %d %d %d", a, b, c, d)
console_print(id, "%d %d %d %d", GET_1(e), GET_2(e), GET_3(e), GET_4(e))
return 1
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>