下面是引用 i-c0112 于 2010-11-27 11:31 发表的 :
补充:
1. enum除了列举常数外,在PAWN语言里更可用于资料型态(data structure)
2. OFFSET是藉由一些高手们用memhack从cs的dll档读出的,可以由记忆体位址来改变DLL档里变数的值
而且hamsandwich更可用OFFSET呼叫DLL里的函数
3. ?:一起使用时跟if...else...差不多 ex:(条件)? 成立时... : 不成立时...
: 则是常用于tag ex: Float: Bool: CsTeams:
没错!
off set 为
cstrike\addons\amxmodx\modules
内的 dll 所定义的
否则, 我弄一个 cs_pc_b() // pc爆炸
指令..... 那....嘿嘿....
fakemeta 的off set 编号
#define OFFSET_ARMORTYPE 112
#define OFFSET_TEAM 114
#define OFFSET_CSMONEY 115
#define OFFSET_PRIMARYWEAPON 116
#define OFFSET_LASTACTIVITY 124
#define OFFSET_INTERNALMODEL 126
#define OFFSET_NVGOGGLES 129
#define OFFSET_DEFUSE_PLANT 193
#define OFFSET_VIP 209
#define OFFSET_TK 216
#define OFFSET_HOSTAGEKILLS 217
#define OFFSET_MAPZONE 235
#define OFFSET_ISDRIVING 350
#define OFFSET_STATIONARY 362
#define OFFSET_ZOOMTYPE 363
#define OFFSET_AWM_AMMO 377
#define OFFSET_SCOUT_AMMO 378
#define OFFSET_PARA_AMMO 379
#define OFFSET_FAMAS_AMMO 380
#define OFFSET_M3_AMMO 381
#define OFFSET_USP_AMMO 382
#define OFFSET_FIVESEVEN_AMMO 383
#define OFFSET_DEAGLE_AMMO 384
#define OFFSET_P228_AMMO 385
#define OFFSET_GLOCK_AMMO 386
#define OFFSET_FLASH_AMMO 387
#define OFFSET_HE_AMMO 388
#define OFFSET_SMOKE_AMMO 389
#define OFFSET_C4_AMMO 390
#define OFFSET_CSDEATHS 444
#define OFFSET_SHIELD 510
#define OFFSET_WEAPONTYPE 43
#define OFFSET_CLIPAMMO 51
#define OFFSET_SILENCER_FIREMODE 74
#define OFFSET_HOSTAGEFOLLOW 86
#define OFFSET_HOSTAGE_NEXTUSE 100
#define OFFSET_HOSTAGE_LASTUSE 483
#define OFFSET_HOSTAGEID 487
#define OFFSET_ARMOURY_TYPE 34
#define OFFSET_C4_EXPLODE_TIME 100
#define OFFSET_C4_DEFUSING 0x181