PHP:
:SET_CHAT_INPUT_ENABLED
{
0AB1: @SET_CHAT_INPUT_ENABLED 1 Status 0 // 1 = Enable, 0 = Disable
}
IF 0AA2: 31@ = "samp.dll"
THEN
0AB1: @get_samp_version_id 0 _returned: ID 17@
IF 17@ > 0
THEN
IF 17@ == 1 // 0.3.7 R1
THEN
0A8E: 30@ = 31@ + 0x21A0E8 // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x657E0 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x658E0 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 2 // 0.3.7 R2
THEN
0A8E: 30@ = 31@ + 0x21A0F0 // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x658B0 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x659B0 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 3 // 0.3.DL
THEN
0A8E: 30@ = 31@ + 0x2ACA14 // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x68EC0 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x68FC0 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 4 // 0.3.7 R3
THEN
0A8E: 30@ = 31@ + 0x26E8CC // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x68D10 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x68E10 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 5 // 0.3.7 R4
THEN
0A8E: 30@ = 31@ + 0x26E9FC // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x69440 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x69540 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 6 // 0.3.7 R4 - v2
THEN
0A8E: 30@ = 31@ + 0x26E9FC // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x69480 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x69580 //SAMP_CHAT_INPUT_CLOSE
END
END
IF 17@ == 7 // 0.3.7 R5
THEN
0A8E: 30@ = 31@ + 0x26EB84 // SAMP_CHAT_INPUT_OFFSET
0A8D: 30@ = readMem 30@ sz 4 vp 0
IF 0@ == 1
THEN 0A8E: 29@ = 31@ + 0x69480 //SAMP_CHAT_INPUT_OPEN
ELSE 0A8E: 29@ = 31@ + 0x69580 //SAMP_CHAT_INPUT_CLOSE
END
END
0AA8: call_function_method 29@ struct 30@ num_params 0 pop 0 _retVal 6@
END
END
0AB2: ret 0