if 0256: player $PLAYER_CHAR defined
then
0AB1: @get_samp_version_id 0 _returned: ID 0@
if 0AB0: 78 // N
then
repeat
wait 0
until 8AB0: 78 // N
0AC8: 31@ = allocate_memory_size 1024
0AD3: 31@ = format "/viplocker"
0AB1: @ProcessChatInput 2 SampVersionID 0@ InputText 31@
end
if 0AB0: 97 // NUM 1
then
repeat
wait 0
until 8AB0: 97 // NUM 1
0AC8: 31@ = allocate_memory_size 1024
0AD3: 31@ = format "/layvatlieu"
0AB1: @ProcessChatInput 2 SampVersionID 0@ InputText 31@
end
if 0AB0: 99 // NUM 3
then
repeat
wait 0
until 8AB0: 99 // NUM 3
0AC8: 31@ = allocate_memory_size 1024
0AD3: 31@ = format "/lockdoor"
0AB1: @ProcessChatInput 2 SampVersionID 0@ InputText 31@
wait 100
0AC8: 30@ = allocate_memory_size 1024
0AD3: 30@ = format "/vao"
0AB1: @ProcessChatInput 2 SampVersionID 0@ InputText 30@
end
end
:get_samp_version_id
// 0AB1: @get_samp_version_id 0 _returned: ID 0@
30@ = 0
IF 0AA2: 31@ = "samp.dll" // IF and SET
THEN
31@ += 0x128
0A8D: 29@ = read_memory 31@ size 4 virtual_protect 1
IF 29@ == 0x5542F47A
THEN // 0.3.7 R1
30@ = 1
END
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.