// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread 'GetDrugs'
:GetDrugs_21
not SAMP.Available
else_jump @GetDrugs_41
wait 100
jump @GetDrugs_21
:GetDrugs_41
0B34: samp register_client_command "/gdrugs" to_label @GetDrugs_68
:GetDrugs_57
wait 0
jump @GetDrugs_57
:GetDrugs_68
SAMP.IsCommandTyped(1@)
if and
Player.Defined($PLAYER_CAHR)
not Actor.InCar($PLAYER_ACTOR, $Car)
else_jump @GetDrugs_68
call @GetDrugs_237 3 2174.62 -1660.75 15.04
0AF9: samp say_msg "/get drugs 5"
jump @GetDrugs_237
:GetDrugs_237
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
3@ = SAMP.GetPlayerStruct(3@)
3@ += 55
alloc 4@ 68
0C10: memcpy destination 4@ source 3@ size 68
0C0D: struct 4@ offset 6 size 4 = 0@
0C0D: struct 4@ offset 10 size 4 = 1@
0C0D: struct 4@ offset 14 size 4 = 2@
5@ = RakNet.NewBitStream()
RakNet.Write(5@, 116, BS_TYPE_BYTE, 1)
RakNet.Write(5@, 4@, BS_TYPE_ARRAY, 68)
RakNet.LiteSend(5@)
RakNet.DeleteBitStream(5@)
free 4@
ret 0