gabriel

2
//$PLAYER_ACTOR $PLAYER_CHAR $ONMISSION {$CLEO} const CMD = 0@ STATE = 1@ PLAYER_ID = 2@ PLAYER_HANDLE = 3@ ANGLE = 4@ X1 = 5@ Y1 = 6@ Z1 = 7@ X2 = 8@ Y2 = 9@ Z2 = 10@ X3 = 11@ Y3 = 12@ Z3 = 13@ INI_MOVESPEED=14@ end 0000: 0662: printstring "TSlapper" 0662: printstring "MADE BY Vlad1337" {$INCLUDE SAMP_AV} 0B34: samp register_client_command "slp" to_label @cmd 0AF2: INI_MOVESPEED = get_float_from_ini_file "cleo\TSlapper.ini" section "Setti ngs" key "MoveSpeed" while true wait 0  if STATE == 1  then ANGLE = Actor.Angle(PLAYER_HAN DLE)  Actor.Angle($PLAYER_AC TOR) = ANGLE  04C4: store_coords_to X1 Y1 Z1 from_actor PLAYER_HANDLE with_offset 0.0 0.0 0.0  04C4: store_coords_to X2 Y2 Z2 from_actor PLAYER_HANDLE with_offset 0.0 INI_MOVESPEED 0.1  0063: X2 -= X1 // (float) 0063: Y2 -= Y1 // (float) 0063: Z2 -= Z1 // (float) wait 100  04C4: store_coords_to X3 Y3 Z3 from_actor PLAYER_HANDLE with_offset 0.0 -3.0 0.1  call @SendOnFootData 6 XYZ X3 Y3 Z3 VelXYZ X2 Y2 Z2  STATE = 0  Actor.RemoveReferences(PLAYER_HANDLE)  end end :cmd 0B35: samp CMD = get_last_command_params 0AD4: CMD = scan_string CMD format "%d" PLAYER_ID jf @err1

Upload: andrey

Post on 09-Mar-2016

3 views

Category:

Documents


0 download

TRANSCRIPT

 

//$PLAYER_ACTOR $PLAYER_CHAR $ONMISSION{$CLEO}constCMD = 0@STATE = 1@PLAYER_ID = 2@PLAYER_HANDLE = 3@ANGLE = 4@X1 = 5@Y1 = 6@Z1 = 7@

X2 = 8@Y2 = 9@Z2 = 10@

X3 = 11@Y3 = 12@Z3 = 13@INI_MOVESPEED=14@end0000:0662: printstring "TSlapper"0662: printstring "MADE BY Vlad1337"{$INCLUDE SAMP_AV}0B34: samp register_client_command "slp" to_label @cmd0AF2: INI_MOVESPEED = get_float_from_ini_file "cleo\TSlapper.ini" section "Settings" key "MoveSpeed"

while truewait 0  if STATE == 1  then

ANGLE = Actor.Angle(PLAYER_HANDLE)  Actor.Angle($PLAYER_ACTOR) = ANGLE 

04C4: store_coords_to X1 Y1 Z1 from_actor PLAYER_HANDLE with_offset 0.00.0 0.0  04C4: store_coords_to X2 Y2 Z2 from_actor PLAYER_HANDLE with_offset 0.0INI_MOVESPEED 0.1 

0063: X2 -= X1 // (float)0063: Y2 -= Y1 // (float)0063: Z2 -= Z1 // (float)wait 100

 04C4: store_coords_to X3 Y3 Z3 from_actor PLAYER_HANDLE with_offset 0.0

-3.0 0.1  call @SendOnFootData 6 XYZ X3 Y3 Z3 VelXYZ X2 Y2 Z2  STATE = 0  Actor.RemoveReferences(PLAYER_HANDLE)  endend

:cmd0B35: samp CMD = get_last_command_params0AD4: CMD = scan_string CMD format "%d" PLAYER_IDjf @err1

 

0B23: samp is_player_connected PLAYER_IDjf @err2PLAYER_HANDLE = SAMP.GetActorHandleByPlayerID(PLAYER_ID)if056D: actor PLAYER_HANDLE definedjf @err3STATE = 1SAMP.CmdRet()

:err10AF8: samp add_message_to_chat "{FFFF00}[TSlapper] {FFFFFF}Ââåäèòå /slp [ID èãðîêà]" color 0xSAMP.CmdRet()

:err20AF8: samp add_message_to_chat "{FFFF00}[TSlapper] {FFFFFF}Èãðîê íå ïîäêëþ÷åí" color 0xFFFFFFSAMP.CmdRet()

:err30AF8: samp add_message_to_chat "{FFFF00}[TSlapper] {FFFFFF}Èãðîê âíå çîíû ïðîðèñîâêè" color 0SAMP.CmdRet()

:SendOnFootData0B2B: samp 6@ = get_player_id_by_actor_handle $PLAYER_ACTOR0AC8: 7@ = allocate_memory_size 680BBA: samp store_player 6@ onfoot_data 7@0C0D: struct 7@ offset 6 size 4 = 0@0C0D: struct 7@ offset 10 size 4 = 1@0C0D: struct 7@ offset 14 size 4 = 2@

0C0D: struct 7@ offset 38 size 4 = 3@0C0D: struct 7@ offset 42 size 4 = 4@0C0D: struct 7@ offset 46 size 4 = 5@0BC0: samp send_onfoot_data 7@0AC9: free_allocated_memory 7@ret 0