下面是引用 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