Advertisement
100xdonaldx001

AHK SAMP LyD Oamt Keybinder

Aug 18th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive, GTA:SA:MP
  2. #UseHook
  3. #NoEnv
  4.  
  5. global ERROR_OK := 0
  6. global ERROR_PROCESS_NOT_FOUND := 1
  7. global ERROR_OPEN_PROCESS := 2
  8. global ERROR_INVALID_HANDLE := 3
  9. global ERROR_MODULE_NOT_FOUND := 4
  10. global ERROR_ENUM_PROCESS_MODULES := 5
  11. global ERROR_ZONE_NOT_FOUND := 6
  12. global ERROR_CITY_NOT_FOUND := 7
  13. global ERROR_READ_MEMORY := 8
  14. global ERROR_WRITE_MEMORY := 9
  15. global ERROR_ALLOC_MEMORY := 10
  16. global ERROR_FREE_MEMORY := 11
  17. global ERROR_WAIT_FOR_OBJECT := 12
  18. global ERROR_CREATE_THREAD := 13
  19. global ADDR_ZONECODE := 0xA49AD4
  20. global ADDR_POSITION_X := 0xB6F2E4
  21. global ADDR_POSITION_Y := 0xB6F2E8
  22. global ADDR_POSITION_Z := 0xB6F2EC
  23. global ADDR_CPED_PTR := 0xB6F5F0
  24. global ADDR_CPED_HPOFF := 0x540
  25. global ADDR_CPED_ARMOROFF := 0x548
  26. global ADDR_VEHICLE_PTR := 0xBA18FC
  27. global ADDR_VEHICLE_HPOFF := 0x4C0
  28. global ADDR_CPED_MONEY := 0x0B7CE54
  29. global ADDR_CPED_INTID := 0xA4ACE8
  30. global ADDR_VEHICLE_DOORSTATE := 0x4F8
  31. global ADDR_VEHICLE_ENGINESTATE := 0x428
  32. global ADDR_VEHICLE_LIGHTSTATE := 0x584
  33. global ADDR_VEHICLE_MODEL := 0x22
  34. global ADDR_VEHICLE_TYPE := 0x590
  35. global ADDR_VEHICLE_DRIVER := 0x460
  36. global oAirplaneModels := [417, 425, 447, 460, 469, 476, 487, 488, 497, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593]
  37. global oBikeModels := [481,509,510]
  38. global ovehicleNames := ["Landstalker","Bravura","Buffalo","Linerunner","Perrenial","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Whoopee","BFInjection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RCBandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley'sRCVan","Skimmer","PCJ-600","Faggio","Freeway","RCBaron","RCRaider","Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","NewsChopper","Rancher","FBIRancher","Virgo","Greenwood","Jetmax","Hotring","Sandking","BlistaCompact","PoliceMaverick","Boxvillde","Benson","Mesa","RCGoblin","HotringRacerA","HotringRacerB","BloodringBanger","Rancher","SuperGT","Elegant","Journey","Bike","MountainBike","Beagle","Cropduster","Stunt","Tanker","Roadtrain","Nebula","Majestic","Buccaneer","Shamal","hydra","FCR-900","NRG-500","HPV1000","CementTruck","TowTruck","Fortune","Cadrona","FBITruck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster","Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RCTiger","Flash","Tahoma","Savanna","Bandito","FreightFlat","StreakCarriage","Kart","Mower","Dune","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","NewsVan","Tug","Trailer","Emperor","Wayfarer","Euros","Hotdog","Club","FreightBox","Trailer","Andromada","Dodo","RCCam","Launch","PoliceCar","PoliceCar","PoliceCar","PoliceRanger","Picador","S.W.A.T","Alpha","Phoenix","GlendaleShit","SadlerShit","Luggage","Luggage","Stairs","Boxville","Tiller","UtilityTrailer"]
  39. global ADDR_SAMP_INCHAT_PTR := 0x21a10c
  40. global ADDR_SAMP_INCHAT_PTR_OFF := 0x55
  41. global ADDR_SAMP_USERNAME := 0x219A6F
  42. global ADDR_SAMP_CHATMSG_PTR := 0x21a0e4
  43. global ADDR_SAMP_SHOWDLG_PTR := 0x21a0b8
  44. global FUNC_SAMP_SENDCMD := 0x65c60
  45. global FUNC_SAMP_SENDSAY := 0x57f0
  46. global FUNC_SAMP_ADDTOCHATWND := 0x64520
  47. global FUNC_SAMP_SHOWGAMETEXT := 0x9c2c0
  48. global FUNC_SAMP_PLAYAUDIOSTR := 0x62da0
  49. global FUNC_SAMP_STOPAUDIOSTR := 0x629a0
  50. global FUNC_SAMP_SHOWDIALOG := 0x6B9C0
  51. global FUNC_UPDATESCOREBOARD := 0x8a10
  52. global SAMP_INFO_OFFSET := 0x21a0f8
  53. global SAMP_PPOOLS_OFFSET := 0x3CD
  54. global SAMP_PPOOL_PLAYER_OFFSET := 0x18
  55. global SAMP_SLOCALPLAYERID_OFFSET := 0x4
  56. global SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET := 0x1A
  57. global SAMP_SZLOCALPLAYERNAME_OFFSET := 0xA
  58. global SAMP_PSZLOCALPLAYERNAME_OFFSET := 0xA
  59. global SAMP_PREMOTEPLAYER_OFFSET := 0x2E
  60. global SAMP_ISTRLENNAME___OFFSET := 0x1C
  61. global SAMP_SZPLAYERNAME_OFFSET := 0xC
  62. global SAMP_PSZPLAYERNAME_OFFSET := 0xC
  63. global SAMP_ILOCALPLAYERPING_OFFSET := 0x26
  64. global SAMP_ILOCALPLAYERSCORE_OFFSET := 0x2A
  65. global SAMP_IPING_OFFSET                    := 0x28
  66. global SAMP_ISCORE_OFFSET                   := 0x24
  67. global SAMP_ISNPC_OFFSET                    := 0x4
  68. global SAMP_PLAYER_MAX := 1004
  69. global SIZE_SAMP_CHATMSG := 0xFC
  70. global hGTA := 0x0
  71. global dwGTAPID := 0x0
  72. global dwSAMP := 0x0
  73. global pMemory := 0x0
  74. global pParam1 := 0x0
  75. global pParam2 := 0x0
  76. global pParam3 := 0x0
  77. global pInjectFunc := 0x0
  78. global nZone := 1
  79. global nCity := 1
  80. global bInitZaC := 0
  81. global iRefreshScoreboard := 0
  82. global oScoreboardData := ""
  83. global iRefreshHandles := 0
  84. global iUpdateTick := 2500
  85.  
  86.  
  87. ; Error-Codes
  88. API_ERROR_NONE                              := 0
  89. API_ERROR_SNAPSHOT_FAILED                   := 1
  90. API_ERROR_SAMP_NOT_FOUND                    := 2
  91. API_ERROR_REMOTE_MEMORY_ALLOCATION_FAILED   := 3
  92. API_ERROR_WRITEPROCESSMEMORY_FAILED         := 4
  93. API_ERROR_GETPROCADDRESS_FAILED             := 5
  94. API_ERROR_REMOTETHREAD_FAILED               := 6
  95. API_ERROR_INVALID_GTA_HANDLE                := 7
  96. API_ERROR_PIPE_DOESNT_RESPOND               := 8
  97. API_ERROR_STRING_TOO_LONG                   := 9
  98.  
  99. PLAYER_STATE_LEAVING_VEHICLE                := 0
  100. PLAYER_STATE_NORMAL                         := 1
  101. PLAYER_STATE_DRIVING                        := 50
  102. PLAYER_STATE_DYING                          := 54
  103. PLAYER_STATE_DEAD                           := 55
  104.  
  105. CALLBACK_HEAL                               := 0
  106. CALLBACK_ARMOR                              := 1
  107. CALLBACK_POSITION                           := 2
  108. CALLBACK_ENTEREXIT                          := 3
  109. CALLBACK_VEHICLE_ENTEREXIT                  := 4
  110. CALLBACK_VEHICLE_HEALTH                     := 5
  111. CALLBACK_VEHICLE_ENGINE                     := 6
  112. CALLBACK_VEHICLE_LOCK                       := 7
  113. CALLBACK_VEHICLE_SPEED                      := 8
  114. CALLBACK_WEAPON_CLIP                        := 9
  115. CALLBACK_WEAPON_TOTALCLIP                   := 10
  116. CALLBACK_WEAPON_SWITCH                      := 11
  117. CALLBACK_CHATLOG                            := 12
  118.  
  119.  
  120. PATH_API := RelToAbs(A_ScriptDir, "API.dll")
  121.  
  122. hModule := DllCall("LoadLibrary", Str, PATH_API)
  123. if(hModule == -1 || hModule == 0)
  124.  
  125.  
  126. ; Funktionsadressen in der DLL
  127. Init_func               := DllCall("GetProcAddress", UInt, hModule, Str, "API_Init")
  128. SetParam_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetParam")
  129. ReadMemory_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_ReadMemory")
  130. WriteMemory_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_WriteMemory")
  131. GetBasePointer_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetBasePointer")
  132. GetCommandLine_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCommandLine")
  133. GetLastError_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastError")
  134. SetLastError_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetLastError")
  135. SendChat_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_SendChat")
  136. ShowGameText_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowGameText")
  137. AddChatMessage_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_AddChatMessage")
  138. ShowDialog_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowDialog")
  139. IsDialogOpen_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsDialogOpen")
  140. GetLastDialogId_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogId")
  141. GetLastDialogType_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogType")
  142. BlockChatInput_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_BlockChatInput")
  143. GetChatLine_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLine")
  144. GetChatLineFromFile_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLineFromFile")
  145. IsChatOpen_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsChatOpen")
  146.  
  147. GetScreenSizeX_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeX")
  148. GetScreenSizeY_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeY")
  149. GetFramerate_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetFramerate")
  150. GetCurrentWeatherId_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCurrentWeatherId")
  151. GetZoneName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneName")
  152. GetCityName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityName")
  153. GetZoneNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneNameByCoords")
  154. GetCityNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityNameByCoords")
  155. GetMarkerPos_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMarkerPos")
  156. GetLastMousePosOnMenuMap_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastMousePosOnMenuMap")
  157. GetMapMarkerPos_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMapMarkerPos")
  158. FindGroundZForPosition_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_FindGroundZForPosition")
  159. WorldToScreen_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_WorldToScreen")
  160. ScreenToWorld_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_ScreenToWorld")
  161. RegisterTextBind_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_RegisterTextBind")
  162. UnregisterTextBind_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterTextBind")
  163. UnregisterAllTextBinds_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterAllTextBinds")
  164. TextBindTimer_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextBindTimer")
  165. IsMenuOpen_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsMenuOpen")
  166.  
  167. GetPlayerId_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerId")
  168. GetPlayerName_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerName")
  169. GetServerIp_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerIp")
  170. GetServerPort_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerPort")
  171.  
  172. ; //////////////////
  173. ;   CPed.h
  174. ; //////////////////
  175. GetPlayerCPed_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerCPed")
  176. GetPlayerHealth_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerHealth")
  177. GetPlayerArmor_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerArmor")
  178. GetPlayerMoney_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerMoney")
  179. GetPlayerWanteds_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWanteds")
  180. GetPlayerPosition_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPosition")
  181. IsPlayerInRangeOfPoint_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint")
  182. IsPlayerInRangeOfPoint2D_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint2D")
  183. IsPlayerInAnyInterior_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyInterior")
  184. IsPlayerFrozen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerFrozen")
  185. GetPlayerWeaponSlot_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponSlot")
  186. GetPlayerWeaponId_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponId")
  187. GetPlayerWeaponName_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponName")
  188. GetPlayerWeaponClip_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponClip")
  189. GetPlayerWeaponTotalClip_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponTotalClip")
  190. GetPlayerWeaponState_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponState")
  191. GetPlayerState_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerState")
  192.  
  193. ; //////////////////
  194. ;   Vehicle.h
  195. ; //////////////////
  196. GetVehiclePointer_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehiclePointer")
  197. GetVehicleModelId_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelId")
  198. GetVehicleModelName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelName")
  199. GetVehicleModelNameById_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelNameById")
  200. GetVehicleType_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleType")
  201. GetVehicleHealth_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleHealth")
  202. GetVehicleRadioStation_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStation")
  203. GetVehicleRadioStationName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStationName")
  204. GetVehicleFreeSeats_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFreeSeats")
  205. GetVehicleSpeed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSpeed")
  206. GetVehicleFirstColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFirstColor")
  207. GetVehicleSecondColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSecondColor")
  208. GetVehicleColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColor")
  209. GetVehicleColorRGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorRGB")
  210. GetVehicleColorARGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorARGB")
  211.  
  212.  
  213. IsPlayerInAnyVehicle_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyVehicle")
  214. IsPlayerDriver_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerDriver")
  215. IsPlayerPassenger_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerPassenger")
  216. IsVehicleSeatUsed_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSeatUsed")
  217. IsVehicleLocked_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLocked")
  218. IsVehicleSirenEnabled_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSirenEnabled")
  219. IsVehicleHornEnabled_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleHornEnabled")
  220. IsVehicleAlternateSirenEnabled_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleAlternateSirenEnabled")
  221. IsVehicleEngineEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleEngineEnabled")
  222. IsVehicleLightEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLightEnabled")
  223. IsPlayerInCar_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInCar")
  224. IsPlayerInPlane_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInPlane")
  225. IsPlayerInBoat_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBoat")
  226. IsPlayerInTrain_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInTrain")
  227. IsPlayerInBike_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBike")
  228. ; //////////////////
  229. ;   Draw
  230. ; //////////////////
  231. TextCreate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextCreate")
  232. TextDestroy_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextDestroy")
  233. TextSetShadow_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShadow")
  234. TextSetShown_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShown")
  235. TextSetColor_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetColor")
  236. TextSetPos_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetPos")
  237. TextSetString_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetString")
  238. TextUpdate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextUpdate")
  239.  
  240. BoxCreate_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxCreate")
  241. BoxDestroy_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxDestroy")
  242. BoxSetShown_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetShown")
  243. BoxSetBorder_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorder")
  244. BoxSetBorderColor_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorderColor")
  245. BoxSetColor_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetColor")
  246. BoxSetHeight_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetHeight")
  247. BoxSetPos_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetPos")
  248. BoxSetWidth_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetWidth")
  249.  
  250. LineCreate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineCreate")
  251. LineDestroy_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineDestroy")
  252. LineSetShown_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetShown")
  253. LineSetColor_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetColor")
  254. LineSetWidth_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetWidth")
  255. LineSetPos_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetPos")
  256.  
  257. ImageCreate_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageCreate")
  258. ImageDestroy_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageDestroy")
  259. ImageSetShown_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetShown")
  260. ImageSetAlign_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetAlign")
  261. ImageSetPos_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetPos")
  262. ImageSetRotation_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetRotation")
  263.  
  264. DestroyAllVisual_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_DestroyAllVisual")
  265. ShowAllVisual_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowAllVisual")
  266. HideAllVisual_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_HideAllVisual")
  267.  
  268.  
  269. ; ////////////////
  270. ;     CALLBACK
  271. ; ////////////////
  272. SetCallbackPointer_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetCallbackPointer")
  273. UnSetCallbackPointer_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetCallbackPointer")
  274. SetListenCallback_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetListenCallback")
  275. UnSetListenCallback_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallback")
  276. UnSetListenCallbackAll_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallbackAll")
  277.  
  278. ; ////////////////
  279. ;     PlayerData.h
  280. ; ////////////////
  281. UpdateServerData_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_UpdateServerData")
  282. GetPlayerNameById_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerNameById")
  283. GetPlayerIdByName_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerIdByName")
  284.  
  285. Init()
  286. {
  287.     global Init_func
  288.     res := DllCall(Init_func)
  289.     return res
  290. }
  291.  
  292. SetParam(str_Name, str_Value)
  293. {
  294.     global SetParam_func
  295.     res := DllCall(SetParam_func, Str, str_Name, Str, str_Value)
  296.     return res
  297. }
  298.  
  299. ReadMemory(addr, size, ByRef data)
  300. {
  301.     global ReadMemory_func
  302.     VarSetCapacity(data,size)
  303.     res := DllCall(ReadMemory_func, UInt, addr, UInt, size, StrP, data)
  304.     return res
  305. }
  306.  
  307. WriteMemory(addr, size, data)
  308. {
  309.     global WriteMemory_func
  310.     res := DllCall(WriteMemory_func, UInt, addr, UInt, size, Str, data)
  311.     return res
  312. }
  313.  
  314. GetBasePointer(dll)
  315. {
  316.     global GetBasePointer_func
  317.     res :=DllCall(GetBasePointer_func, Str, dll)
  318.     return res
  319. }
  320.  
  321. GetCommandLine(ByRef line)
  322. {
  323.     global GetCommandLine_func
  324.     VarSetCapacity(line,512,0)
  325.     res := DllCall(GetCommandLine_func, StrP, line)
  326.     return res
  327. }
  328.  
  329. GetLastError()
  330. {
  331.     global GetLastError_func
  332.     res:=DllCall(GetLastError_func)
  333.     return res
  334. }
  335.  
  336. SetLastError(error)
  337. {
  338.     global SetLastError_func
  339.     res := DllCall(SetLastError_func, Int, error)
  340.     return res
  341. }
  342.  
  343. SendChat(msg)
  344. {
  345.     global SendChat_func
  346.     res := DllCall(SendChat_func, Str, msg)
  347.     return res
  348. }
  349.  
  350. ShowGameText(str_Text, int_Time, int_Style)
  351. {
  352.     global ShowGameText_func
  353.     res := DllCall(ShowGameText_func,Str , str_Text, Int, int_Time, Int, int_Style)
  354.     return res
  355. }
  356.  
  357. AddChatMessage(int_Color, str_Text)
  358. {
  359.     global AddChatMessage_func
  360.     res := DllCall(AddChatMessage_func, Int, int_Color, Str, str_Text)
  361.     return res
  362. }
  363.  
  364. ShowDialog(style, caption, text, button)
  365. {
  366.     global ShowDialog_func
  367.     res := DllCall(ShowDialog_func, Int, style, Str, caption, Str, text, Str, button)
  368.     return res
  369. }
  370.  
  371. IsDialogOpen()
  372. {
  373.     global IsDialogOpen_func
  374.     res := DllCall(IsDialogOpen_func)
  375.     return res
  376. }
  377.  
  378. GetLastDialogId()
  379. {
  380.     global GetLastDialogId_func
  381.     res := DllCall(GetLastDialogId_func)
  382.     return res
  383. }
  384.  
  385. GetLastDialogType()
  386. {
  387.     global GetLastDialogType_func
  388.     res := DllCall(GetLastDialogType_func)
  389.     return res
  390. }
  391.  
  392. BlockChatInput(block)
  393. {
  394.     global BlockChatInput_func
  395.     res := DllCall(BlockChatInput_func,UChar,block)
  396.     return res
  397. }
  398.  
  399. GetChatLine(id, ByRef line)
  400. {
  401.     global GetChatLine_func
  402.     VarSetCapacity(line,256,0)
  403.     res := DllCall(GetChatLine_func,Int,id,StrP,line)
  404.     return res
  405. }
  406.  
  407. GetChatLineFromFile(id, ByRef line)
  408. {
  409.     global GetChatLineFromFile_func
  410.     VarSetCapacity(line,256,0)
  411.     res := DllCall(GetChatLineFromFile_func,Int,id,StrP,line)
  412.     return res
  413. }
  414.  
  415. IsChatOpen()
  416. {
  417.     global IsChatOpen_func
  418.     res := DllCall(IsChatOpen_func)
  419.     return res
  420. }
  421.  
  422. GetScreenSizeX()
  423. {
  424.     global GetScreenSizeX_func
  425.     res := DllCall(GetScreenSizeX_func)
  426.     return res
  427. }
  428.  
  429. GetScreenSizeY()
  430. {
  431.     global GetScreenSizeY_func
  432.     res := DllCall(GetScreenSizeY_func)
  433.     return res
  434. }
  435.  
  436. GetFramerate()
  437. {
  438.     global GetFramerate_func
  439.     res := DllCall(GetFramerate_func)
  440.     return res
  441. }
  442.  
  443. GetCurrentWeatherId()
  444. {
  445.     global GetCurrentWeatherId_func
  446.     res := DllCall(GetCurrentWeatherId_func)
  447.     return res
  448. }
  449.  
  450. GetZoneName( ByRef str_ZoneName)
  451. {
  452.     global GetZoneName_func
  453.     VarSetCapacity(str_ZoneName, 32)
  454.     res := DllCall(GetZoneName_func, StrP, str_ZoneName)
  455.     return res
  456. }
  457.  
  458. GetCityName( ByRef str_CityName)
  459. {
  460.     global GetCityName_func
  461.     VarSetCapacity(str_CityName, 32)
  462.     res := DllCall(GetCityName_func, StrP, str_CityName)
  463.     return res
  464. }
  465.  
  466. GetZoneNameByCoords(x, y, ByRef str_ZoneName)
  467. {
  468.     global GetZoneNameByCoords_func
  469.     VarSetCapacity(str_ZoneName, 32)
  470.     res := DllCall(GetZoneNameByCoords_func, Float, x, Float, y, StrP, str_ZoneName)
  471.     return res
  472. }
  473.  
  474. GetCityNameByCoords(x, y, ByRef str_CityName)
  475. {
  476.     global GetCityNameByCoords_func
  477.     VarSetCapacity(str_CityName, 32)
  478.     res := DllCall(GetCityNameByCoords_func, Float, x, Float, y, StrP, str_CityName)
  479.     return res
  480. }
  481.  
  482. GetMarkerPos(ByRef x, ByRef y, ByRef z)
  483. {
  484.     global GetMarkerPos_func
  485.     res := DllCall(GetMarkerPos_func, FloatP, x, FloatP, y, FloatP, z)
  486.     return res
  487. }
  488.  
  489. GetLastMousePosOnMenuMap(ByRef x, ByRef y)
  490. {
  491.     global GetLastMousePosOnMenuMap_func
  492.     res := DllCall(GetLastMousePosOnMenuMap_func, FloatP, x, FloatP, y)
  493.     return res
  494. }
  495.  
  496. GetMapMarkerPos(ByRef x, ByRef y)
  497. {
  498.     global GetMapMarkerPos_func
  499.     res := DllCall(GetMapMarkerPos_func, FloatP, x, FloatP, y)
  500.     return res
  501. }
  502.  
  503. FindGroundZForPosition(x,y)
  504. {
  505.     global FindGroundZForPosition_func
  506.     res := DllCall(FindGroundZForPosition_func, Float, x, Float, y, "Cdecl float")
  507.     return res
  508. }
  509.  
  510. WorldToScreen(worldX, worldY, worldZ, ByRef screenX, ByRef screenY)
  511. {
  512.     global WorldToScreen_func
  513.     res := DllCall(WorldToScreen_func, Float, worldX, Float, worldY, Float, worldZ, FloatP, screenX, FloatP, screenY)
  514.     return res
  515. }
  516.  
  517. ScreenToWorld(screenX, screenY, ByRef worldX, ByRef worldY, ByRef worldZ)
  518. {
  519.     global ScreenToWorld_func
  520.     res := DllCall(ScreenToWorld_func, Float, screenX, Float, screenY, FloatP, worldX, FloatP, worldY, FloatP, worldZ)
  521.     return res
  522. }
  523.  
  524. RegisterTextBind(str_TextBind, float_PosX, float_PosY, float_PosZ, float_Radius, int_Delay, int_Loop, int_GroupId, int_isChild, int_Timeout)
  525. {
  526.     global RegisterTextBind_func
  527.     res := DllCall(RegisterTextBind_func, Str, str_TextBind, Float, float_PosX, Float, float_PosY, Float, float_PosZ, Float, float_Radius, Int, int_Delay, Int, int_Loop, Int, int_GroupId, Int, int_isChild, Int, int_Timeout)
  528.     return res
  529. }
  530.  
  531. UnregisterTextBind(int_TextBindId)
  532. {
  533.     global UnregisterTextBind_func
  534.     res := DllCall(UnregisterTextBind_func, Int, int_TextBindId)
  535.     return res
  536. }
  537.  
  538. UnregisterAllTextBinds()
  539. {
  540.     global UnregisterAllTextBinds_func
  541.     res := DllCall(UnregisterAllTextBinds_func)
  542.     return res
  543. }
  544.  
  545. TextBindTimer(int_TextBindSleep)
  546. {
  547.     global TextBindTimer_func
  548.     res := DllCall(TextBindTimer_func, Int, int_TextBindSleep)
  549.     return res
  550. }
  551.  
  552. IsMenuOpen()
  553. {
  554.     global IsMenuOpen_func
  555.     res := DllCall(IsMenuOpen_func)
  556.     return res
  557. }
  558.  
  559. GetPlayerId()
  560. {
  561.     global GetPlayerId_func
  562.     res := DllCall(GetPlayerId_func)
  563.     return res
  564. }
  565.    
  566. GetPlayerName(ByRef szName)
  567. {
  568.     global GetPlayerName_func
  569.     VarSetCapacity(szName,25)
  570.     res := DllCall(GetPlayerName_func, StrP, szName)
  571.     return res
  572. }
  573.  
  574. GetServerIp(ByRef szHost)
  575. {
  576.     global GetServerIp_func
  577.     VarSetCapacity(szHost, 30)
  578.     res := DllCall(GetServerIp_func, StrP, szHost)
  579.     return res
  580. }
  581.  
  582. GetServerPort()
  583. {
  584.     global GetServerPort_func
  585.     res := DllCall(GetServerPort_func)
  586.     return res
  587. }
  588.  
  589. ; /////////////////////// CPED ////////////////////////////
  590. ; /////////////////////// CPED ////////////////////////////
  591. ; /////////////////////// CPED ////////////////////////////
  592.  
  593. GetPlayerCPed()
  594. {
  595.     global GetPlayerCPed_func
  596.     res :=DllCall(GetPlayerCPed_func)
  597.     return res
  598. }
  599.  
  600. GetPlayerHealth()
  601. {
  602.     global GetPlayerHealth_func
  603.     res := DllCall(GetPlayerHealth_func)
  604.     return res
  605. }
  606.  
  607. GetPlayerArmor()
  608. {
  609.     global GetPlayerArmor_func
  610.     res := DllCall(GetPlayerArmor_func)
  611.     return res
  612. }
  613.  
  614. GetPlayerMoney()
  615. {
  616.     global GetPlayerMoney_func
  617.     res := DllCall(GetPlayerMoney_func)
  618.     return res
  619. }
  620.  
  621. GetPlayerWanteds()
  622. {
  623.     global GetPlayerWanteds_func
  624.     res := DllCall(GetPlayerWanteds_func)
  625.     return res
  626. }
  627.  
  628. GetPlayerPosition(ByRef flo_posX, ByRef flo_posY, ByRef flo_posZ, ByRef flo_Rotation)
  629. {
  630.     global GetPlayerPosition_func
  631.     res := DllCall(GetPlayerPosition_func, FloatP, flo_posX, FloatP, flo_posY, FloatP, flo_posZ,  FloatP, flo_Rotation)
  632.     return res
  633. }
  634.  
  635. IsPlayerInRangeOfPoint(flo_posX, flo_posY, flo_posZ, flo_posRadius)
  636. {
  637.     global IsPlayerInRangeOfPoint_func
  638.     res := DllCall(IsPlayerInRangeOfPoint_func, Float, flo_posX, Float, flo_posY, Float, flo_posZ, Float, flo_posRadius)
  639.     return res
  640. }
  641.  
  642. IsPlayerInRangeOfPoint2D(flo_posX, flo_posY, flo_posRadius)
  643. {
  644.     global IsPlayerInRangeOfPoint2D_func
  645.     res := DllCall(IsPlayerInRangeOfPoint2D_func, Float, flo_posX, Float, flo_posY, Float, flo_posRadius)
  646.     return res
  647. }
  648.  
  649. IsPlayerInAnyInterior()
  650. {
  651.     global IsPlayerInAnyInterior_func
  652.     res := DllCall(IsPlayerInAnyInterior_func)
  653.     return res
  654. }
  655.  
  656. IsPlayerFrozen()
  657. {
  658.     global IsPlayerFrozen_func
  659.     res := DllCall(IsPlayerFrozen_func)
  660.     return res
  661. }
  662.  
  663. GetPlayerWeaponSlot()
  664. {
  665.     global GetPlayerWeaponSlot_func
  666.     res := DllCall(GetPlayerWeaponSlot_func)
  667.     return res
  668. }
  669.  
  670. GetPlayerWeaponId(int_WeaponSlot)
  671. {
  672.     global GetPlayerWeaponId_func
  673.     res := DllCall(GetPlayerWeaponId_func, Int, int_WeaponSlot)
  674.     return res
  675. }
  676.  
  677. GetPlayerWeaponName(int_WeaponSlot, ByRef str_WeapName)
  678. {
  679.     global GetPlayerWeaponName_func
  680.     VarSetCapacity(str_WeapName, 32)
  681.     res := DllCall(GetPlayerWeaponName_func, Int, int_WeaponSlot, StrP, str_WeapName)
  682.     return res
  683. }
  684.  
  685. GetPlayerWeaponClip(int_WeaponSlot)
  686. {
  687.     global GetPlayerWeaponClip_func
  688.     res := DllCall(GetPlayerWeaponClip_func, Int, int_WeaponSlot)
  689.     return res
  690. }
  691.  
  692. GetPlayerWeaponTotalClip(int_WeaponSlot)
  693. {
  694.     global GetPlayerWeaponTotalClip_func
  695.     res := DllCall(GetPlayerWeaponTotalClip_func, Int, int_WeaponSlot)
  696.     return res
  697. }
  698.  
  699. GetPlayerWeaponState()
  700. {
  701.     global GetPlayerWeaponState_func
  702.     res := DllCall(GetPlayerWeaponState_func)
  703.     return res
  704. }
  705.  
  706. GetPlayerState()
  707. {
  708.     global GetPlayerState_func
  709.     res := DllCall(GetPlayerState_func)
  710.     return res
  711. }
  712.  
  713. ; /////////////////////// VEHICLE ////////////////////////////
  714. ; /////////////////////// VEHICLE ////////////////////////////
  715. ; /////////////////////// VEHICLE ////////////////////////////
  716.  
  717. GetVehiclePointer()
  718. {
  719.     global GetVehiclePointer_func
  720.     res := DllCall(GetVehiclePointer_func)
  721.     return res
  722. }
  723.  
  724. GetVehicleModelId()
  725. {
  726.     global GetVehicleModelId_func
  727.     res := DllCall(GetVehicleModelId_func)
  728.     return res
  729. }
  730.  
  731. GetVehicleModelName(ByRef str_VehicleName)
  732. {
  733.     global GetVehicleModelName_func
  734.     VarSetCapacity(str_VehicleName, 32)
  735.     res := DllCall(GetVehicleModelName_func, StrP, str_VehicleName)
  736.     return res
  737. }
  738.  
  739. GetVehicleModelNameById(int_VehicleId, ByRef str_VehicleName)
  740. {
  741.     global GetVehicleModelNameById_func
  742.     VarSetCapacity(str_VehicleName, 32)
  743.     res := DllCall(GetVehicleModelNameById_func, Int, int_VehicleId, StrP, str_VehicleName)
  744.     return res
  745. }
  746.  
  747. GetVehicleType()
  748. {
  749.     global GetVehicleType_func
  750.     res := DllCall(GetVehicleType_func)
  751.     return res
  752. }
  753.  
  754. GetVehicleHealth()
  755. {
  756.     global GetVehicleHealth_func
  757.     res := DllCall(GetVehicleHealth_func)
  758.     return res
  759. }
  760.  
  761. GetVehicleRadioStation()
  762. {
  763.     global GetVehicleRadioStation_func
  764.     res := DllCall(GetVehicleRadioStation_func)
  765.     return res
  766. }
  767.  
  768. GetVehicleRadioStationName(ByRef str_RadioName)
  769. {
  770.     global GetVehicleRadioStationName_func
  771.     VarSetCapacity(str_RadioName, 32)
  772.     res := DllCall(GetVehicleRadioStationName_func, StrP, str_RadioName)
  773.     return res
  774. }
  775.  
  776. GetVehicleFreeSeats(ByRef int_SeatFL, ByRef int_SeatFR, ByRef int_SeatBL, ByRef int_SeatBR)
  777. {
  778.     global GetVehicleFreeSeats_func
  779.     res := DllCall(GetVehicleFreeSeats_func, IntP, int_SeatFL, IntP, int_SeatFR, IntP, int_SeatBL, IntP, int_SeatBR)
  780.     return res
  781. }
  782.  
  783. GetVehicleSpeed(float_SpeedMult)
  784. {
  785.     global GetVehicleSpeed_func
  786.     res := DllCall(GetVehicleSpeed_func, Float, float_SpeedMult)
  787.     return res
  788. }
  789.  
  790. GetVehicleFirstColor()
  791. {
  792.     global GetVehicleFirstColor_func
  793.     res := DllCall(GetVehicleFirstColor_func)
  794.     return res
  795. }
  796.  
  797. GetVehicleSecondColor()
  798. {
  799.     global GetVehicleSecondColor_func
  800.     res := DllCall(GetVehicleSecondColor_func)
  801.     return res
  802. }
  803.  
  804. GetVehicleColor(ByRef int_ColorFirst, ByRef int_ColorSecond)
  805. {
  806.     global GetVehicleColor_func
  807.     res := DllCall(GetVehicleColor_func, IntP, int_ColorFirst, IntP, int_ColorSecond)
  808.     return res
  809. }
  810.  
  811. GetVehicleColorRGB(int_Color, ByRef uint_ColorRGB)
  812. {
  813.     global GetVehicleColorRGB_func
  814.     res := DllCall(GetVehicleColorRGB_func, Int, int_Color, UIntP, uint_ColorRGB)
  815.     return res
  816. }
  817.  
  818. GetVehicleColorARGB(int_Color, ByRef uint_ColorARGB)
  819. {
  820.     global GetVehicleColorARGB_func
  821.     res := DllCall(GetVehicleColorARGB_func, Int, int_Color, UIntP, uint_ColorARGB)
  822.     return res
  823. }
  824.  
  825.  
  826.  
  827. IsPlayerInAnyVehicle()
  828. {
  829.     global IsPlayerInAnyVehicle_func
  830.     res := DllCall(IsPlayerInAnyVehicle_func)
  831.     return res
  832. }
  833.  
  834. IsPlayerDriver()
  835. {
  836.     global IsPlayerDriver_func
  837.     res := DllCall(IsPlayerDriver_func)
  838.     return res
  839. }
  840.  
  841. IsPlayerPassenger()
  842. {
  843.     global IsPlayerPassenger_func
  844.     res := DllCall(IsPlayerPassenger_func)
  845.     return res
  846. }
  847.  
  848. IsVehicleSeatUsed(int_SeatId)
  849. {
  850.     global IsVehicleSeatUsed_func
  851.     res := DllCall(IsVehicleSeatUsed_func, int, int_SeatId)
  852.     return res
  853. }
  854.  
  855. IsVehicleLocked()
  856. {
  857.     global IsVehicleLocked_func
  858.     res := DllCall(IsVehicleLocked_func)
  859.     return res
  860. }
  861.  
  862. IsVehicleSirenEnabled()
  863. {
  864.     global IsVehicleSirenEnabled_func
  865.     res := DllCall(IsVehicleSirenEnabled_func)
  866.     return res
  867. }
  868.  
  869. IsVehicleHornEnabled()
  870. {
  871.     global IsVehicleHornEnabled_func
  872.     res := DllCall(IsVehicleHornEnabled_func)
  873.     return res
  874. }
  875.  
  876. IsVehicleAlternateSirenEnabled()
  877. {
  878.     global IsVehicleAlternateSirenEnabled_func
  879.     res := DllCall(IsVehicleAlternateSirenEnabled_func)
  880.     return res
  881. }
  882.  
  883. IsVehicleEngineEnabled()
  884. {
  885.     global IsVehicleEngineEnabled_func
  886.     res := DllCall(IsVehicleEngineEnabled_func)
  887.     return res
  888. }
  889.  
  890. IsVehicleLightEnabled()
  891. {
  892.     global IsVehicleLightEnabled_func
  893.     res := DllCall(IsVehicleLightEnabled_func)
  894.     return res
  895. }
  896.  
  897. IsPlayerInCar()
  898. {
  899.     global IsPlayerInCar_func
  900.     res := DllCall(IsPlayerInCar_func)
  901.     return res
  902. }
  903.  
  904. IsPlayerInPlane()
  905. {
  906.     global IsPlayerInPlane_func
  907.     res := DllCall(IsPlayerInPlane_func)
  908.     return res
  909. }
  910.  
  911. IsPlayerInBoat()
  912. {
  913.     global IsPlayerInBoat_func
  914.     res := DllCall(IsPlayerInBoat_func)
  915.     return res
  916. }
  917.  
  918. IsPlayerInTrain()
  919. {
  920.     global IsPlayerInTrain_func
  921.     res := DllCall(IsPlayerInTrain_func)
  922.     return res
  923. }
  924.  
  925. IsPlayerInBike()
  926. {
  927.     global IsPlayerInBike_func
  928.     res := DllCall(IsPlayerInBike_func)
  929.     return res
  930. }
  931.  
  932. ;////////////////// DRAW ///////////////////
  933. ;////////////////// DRAW ///////////////////
  934. ;////////////////// DRAW ///////////////////
  935.  
  936. TextCreate(Font, fontsize, bold, italic, x, y, color, text, shadow, show)
  937. {
  938.     global TextCreate_func
  939.     res := DllCall(TextCreate_func,Str,Font,Int,fontsize,UChar,bold,UChar,italic,Int,x,Int,y,UInt,color,Str,text,UChar,shadow,UChar,show)
  940.     return res
  941. }
  942.  
  943. TextDestroy(id)
  944. {
  945.     global TextDestroy_func
  946.     res := DllCall(TextDestroy_func,Int,id)
  947.     return res
  948. }
  949.  
  950. TextSetShadow(id, shadow)
  951. {
  952.     global TextSetShadow_func
  953.     res := DllCall(TextSetShadow_func,Int,id,UChar,shadow)
  954.     return res
  955. }
  956.  
  957. TextSetShown(id, show)
  958. {
  959.     global TextSetShown_func
  960.     res := DllCall(TextSetShown_func,Int,id,UChar,show)
  961.     return res
  962. }
  963.  
  964. TextSetColor(id,color)
  965. {
  966.     global TextSetColor_func
  967.     res := DllCall(TextSetColor_func,Int,id,UInt,color)
  968.     return res
  969. }
  970.  
  971. TextSetPos(id,x,y)
  972. {
  973.     global TextSetPos_func
  974.     res := DllCall(TextSetPos_func,Int,id,Int,x,Int,y)
  975.     return res
  976. }
  977.  
  978. TextSetString(id,Text)
  979. {
  980.     global TextSetString_func
  981.     res := DllCall(TextSetString_func,Int,id,Str,Text)
  982.     return res
  983. }
  984.  
  985. TextUpdate(id,Font,Fontsize,bold,italic)
  986. {
  987.     global TextUpdate_func
  988.     res := DllCall(TextUpdate_func,Int,id,Str,Font,int,Fontsize,UChar,bold,UChar,italic)
  989.     return res
  990. }
  991.  
  992. BoxCreate(x,y,width,height,Color,show)
  993. {
  994.     global BoxCreate_func
  995.     res := DllCall(BoxCreate_func,Int,x,Int,y,Int,width,Int,height,UInt,Color,UChar,show)
  996.     return res
  997. }
  998.  
  999. BoxDestroy(id)
  1000. {
  1001.     global BoxDestroy_func
  1002.     res := DllCall(BoxDestroy_func,Int,id)
  1003.     return res
  1004. }
  1005.  
  1006. BoxSetShown(id,Show)
  1007. {
  1008.     global BoxSetShown_func
  1009.     res := DllCall(BoxSetShown_func,Int,id,UChar,Show)
  1010.     return res
  1011. }
  1012.    
  1013. BoxSetBorder(id,height,Show)
  1014. {
  1015.     global BoxSetBorder_func
  1016.     res := DllCall(BoxSetBorder_func,Int,id,Int,height,Int,Show)
  1017.     return res
  1018. }
  1019.  
  1020.  
  1021. BoxSetBorderColor(id,Color)
  1022. {
  1023.     global BoxSetBorderColor_func
  1024.     res := DllCall(BoxSetBorderColor_func,Int,id,UInt,Color)
  1025.     return res
  1026. }
  1027.  
  1028. BoxSetColor(id,Color)
  1029. {
  1030.     global BoxSetColor_func
  1031.     res := DllCall(BoxSetColor_func,Int,id,UInt,Color)
  1032.     return res
  1033. }
  1034.  
  1035. BoxSetHeight(id,height)
  1036. {
  1037.     global BoxSetHeight_func
  1038.     res := DllCall(BoxSetHeight_func,Int,id,Int,height)
  1039.     return res
  1040. }
  1041.  
  1042. BoxSetPos(id,x,y)
  1043. {
  1044.     global BoxSetPos_func  
  1045.     res := DllCall(BoxSetPos_func,Int,id,Int,x,Int,y)
  1046.     return res
  1047. }
  1048.  
  1049. BoxSetWidth(id,width)
  1050. {
  1051.     global BoxSetWidth_func
  1052.     res := DllCall(BoxSetWidth_func,Int,id,Int,width)
  1053.     return res
  1054. }
  1055.  
  1056. LineCreate(x1,y1,x2,y2,width,color,show)
  1057. {
  1058.     global LineCreate_func
  1059.     res := DllCall(LineCreate_func,Int,x1,Int,y1,Int,x2,Int,y2,Int,Width,UInt,color,UChar,show)
  1060.     return res
  1061. }
  1062.  
  1063. LineDestroy(id)
  1064. {
  1065.     global LineDestroy_func
  1066.     res := DllCall(LineDestroy_func,Int,id)
  1067.     return res
  1068. }
  1069.  
  1070. LineSetShown(id,show)
  1071. {
  1072.     global LineSetShown_func
  1073.     res := DllCall(LineSetShown_func,Int,id,UChar,show)
  1074.     return res
  1075. }
  1076.  
  1077. LineSetColor(id,color)
  1078. {
  1079.     global LineSetColor_func
  1080.     res := DllCall(LineSetColor_func,Int,id,UInt,color)
  1081.     return res
  1082. }
  1083.  
  1084. LineSetWidth(id, width)
  1085. {
  1086.     global LineSetWidth_func
  1087.     res := DllCall(LineSetWidth_func,Int,id,Int,width)
  1088.     return res
  1089. }
  1090.  
  1091. LineSetPos(id,x1,y1,x2,y2)
  1092. {
  1093.     global LineSetPos_func
  1094.     res := DllCall(LineSetPos_func,Int,id,Int,x1,Int,y1,Int,x2,Int,y2)
  1095.     return res
  1096. }
  1097.  
  1098. ImageCreate(path, x, y, rotation, align, show)
  1099. {
  1100.     global ImageCreate_func
  1101.     res := DllCall(ImageCreate_func, Str, path, Int, x, Int, y, Int, rotation, Int, align, UChar, show)
  1102.     return res
  1103. }
  1104.  
  1105. ImageDestroy(id)
  1106. {
  1107.     global ImageDestroy_func
  1108.     res := DllCall(ImageDestroy_func,Int,id)
  1109.     return res
  1110. }
  1111.  
  1112. ImageSetShown(id,show)
  1113. {
  1114.     global ImageSetShown_func
  1115.     res := DllCall(ImageSetShown_func,Int,id,UChar,show)
  1116.     return res
  1117. }
  1118.  
  1119. ImageSetAlign(id,align)
  1120. {
  1121.     global ImageSetAlign_func
  1122.     res := DllCall(ImageSetAlign_func,Int,id,Int,align)
  1123.     return res
  1124. }
  1125.  
  1126. ImageSetPos(id, x, y)
  1127. {
  1128.     global ImageSetPos_func
  1129.     res := DllCall(ImageSetPos_func,Int,id,Int,x, Int, y)
  1130.     return res
  1131. }
  1132.  
  1133. ImageSetRotation(id, rotation)
  1134. {
  1135.     global ImageSetRotation_func
  1136.     res := DllCall(ImageSetRotation_func,Int,id,Int, rotation)
  1137.     return res
  1138. }
  1139.  
  1140. DestroyAllVisual()
  1141. {
  1142.     global DestroyAllVisual_func
  1143.     res := DllCall(DestroyAllVisual_func)
  1144.     return res
  1145. }
  1146.  
  1147. ShowAllVisual()
  1148. {
  1149.     global ShowAllVisual_func
  1150.     res := DllCall(ShowAllVisual_func)
  1151.     return res
  1152. }
  1153.  
  1154. HideAllVisual()
  1155. {
  1156.     global HideAllVisual_func
  1157.     res := DllCall(HideAllVisual_func )
  1158.     return res
  1159. }
  1160.  
  1161.  
  1162.  
  1163. ;////////////////// CALLBACK ///////////////////
  1164. ;////////////////// CALLBACK ///////////////////
  1165. ;////////////////// CALLBACK ///////////////////
  1166.  
  1167. SetListenCallback(int_Id)
  1168. {
  1169.     global SetListenCallback_func
  1170.     res := DllCall(SetListenCallback_func, Int, int_Id)
  1171.     return res
  1172. }
  1173.  
  1174. UnSetCallbackPointer()
  1175. {
  1176.     global UnSetCallbackPointer_func
  1177.     res := DllCall(UnSetCallbackPointer_func)
  1178.     return res
  1179. }
  1180.  
  1181. SetCallbackPointer(int_Id)
  1182. {
  1183.     global SetCallbackPointer_func
  1184.     res := DllCall(SetCallbackPointer_func, Int, int_Id)
  1185.     return res
  1186. }
  1187.  
  1188. UnSetListenCallback(int_Id)
  1189. {
  1190.     global UnSetListenCallback_func
  1191.     res := DllCall(UnSetListenCallback_func, Int, int_Id)
  1192.     return res
  1193. }
  1194. UnSetListenCallbackAll()
  1195. {
  1196.     global UnSetListenCallbackAll_func
  1197.     res := DllCall(UnSetListenCallbackAll_func)
  1198.     return res
  1199. }
  1200.  
  1201. GetCallbackHealParams(ptr_HealStruct, ByRef iOldHeal, ByRef iNewHeal)
  1202. {
  1203.         ioldHeal := NumGet(ptr_HealStruct+0, "int")
  1204.         inewHeal := NumGet(ptr_HealStruct+4, "int")
  1205. }
  1206.  
  1207. GetCallbackArmorParams(ptr_ArmorStruct, ByRef iOldArmor, ByRef iNewArmor)
  1208. {
  1209.         ioldArmor := NumGet(ptr_ArmorStruct+0, "int")
  1210.         inewArmor := NumGet(ptr_ArmorStruct+4, "int")
  1211. }
  1212.  
  1213. GetCallbackPositionParams(ptr_PositionStruct, ByRef fOldPosX, ByRef fOldPosY, ByRef fOldPosZ, ByRef fOldPosR, ByRef fNewPosX, ByRef fNewPosY, ByRef fNewPosZ, ByRef fNewPosR)
  1214. {
  1215.         fOldPosX := NumGet(ptr_PositionStruct+0, "float")
  1216.         fOldPosY := NumGet(ptr_PositionStruct+4, "float")
  1217.         fOldPosZ := NumGet(ptr_PositionStruct+8, "float")
  1218.         fOldPosR := NumGet(ptr_PositionStruct+12, "float")
  1219.         fNewPosX := NumGet(ptr_PositionStruct+16, "float")
  1220.         fNewPosY := NumGet(ptr_PositionStruct+20, "float")
  1221.         fNewPosZ := NumGet(ptr_PositionStruct+24, "float")
  1222.         fNewPosR := NumGet(ptr_PositionStruct+28, "float")
  1223. }
  1224.  
  1225. GetCallbackEnterExitParams(ptr_EnterExitStruct, ByRef iOldInteriorState, ByRef iNewInteriorState)
  1226. {
  1227.         iOldInteriorState := NumGet(ptr_EnterExitStruct+0, "int")
  1228.         iNewInteriorState := NumGet(ptr_EnterExitStruct+4, "int")
  1229. }
  1230.  
  1231. GetCallbackVehicleEnterExitParams(ptr_VehicleEnterExitStruct, ByRef iOldVehicleEnterExit, ByRef iNewVehicleEnterExit)
  1232. {
  1233.         iOldVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+0, "int")
  1234.         iNewVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+4, "int")
  1235. }
  1236.  
  1237. GetCallbackVehicleHealthParams(ptr_VehicleHealthStruct, ByRef iOldVehicleHealth, ByRef iNewVehicleHealth)
  1238. {
  1239.         iOldVehicleHealth := NumGet(ptr_VehicleHealthStruct+0, "int")
  1240.         iNewVehicleHealth := NumGet(ptr_VehicleHealthStruct+4, "int")
  1241. }
  1242.  
  1243. GetCallbackVehicleEngineParams(ptr_VehicleEngineStruct, ByRef iOldVehicleEngine, ByRef iNewVehicleEngine)
  1244. {
  1245.         iOldVehicleEngine := NumGet(ptr_VehicleEngineStruct+0, "int")
  1246.         iNewVehicleEngine := NumGet(ptr_VehicleEngineStruct+4, "int")
  1247. }
  1248.  
  1249. GetCallbackVehicleLockParams(ptr_VehicleLockStruct, ByRef iOldVehicleLock, ByRef iNewVehicleLock)
  1250. {
  1251.         iOldVehicleLock := NumGet(ptr_VehicleLockStruct+0, "int")
  1252.         iNewVehicleLock := NumGet(ptr_VehicleLockStruct+4, "int")
  1253. }
  1254.  
  1255. GetCallbackVehicleSpeedParams(ptr_VehicleSpeedStruct, ByRef iOldVehicleSpeed, ByRef iNewVehicleSpeed)
  1256. {
  1257.         iOldVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+0, "int")
  1258.         iNewVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+4, "int")
  1259. }
  1260.  
  1261. GetCallbackWeaponSwitchParams(ptr_WeaponSwitchStruct, ByRef iOldWeaponId, ByRef iNewWeaponId)
  1262. {
  1263.         iOldWeaponId := NumGet(ptr_WeaponSwitchStruct+0, "int")
  1264.         iNewWeaponId := NumGet(ptr_WeaponSwitchStruct+4, "int")
  1265. }
  1266.  
  1267. GetCallbackWeaponClipParams(ptr_WeaponClipStruct, ByRef iOldWeaponClip, ByRef iNewWeaponClip)
  1268. {
  1269.         iOldWeaponClip := NumGet(ptr_WeaponClipStruct+0, "int")
  1270.         iNewWeaponClip := NumGet(ptr_WeaponClipStruct+4, "int")
  1271. }
  1272.  
  1273. GetCallbackWeaponTotalClipParams(ptr_WeaponTotalClipStruct, ByRef iOldWeaponTotalClip, ByRef iNewWeaponTotalClip)
  1274. {
  1275.         iOldWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+0, "int")
  1276.         iNewWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+4, "int")
  1277. }
  1278.  
  1279. GetCallbackChatlogParams(ptr_ChatlogStruct, ByRef string)
  1280. {
  1281.         VarSetCapacity(string, 256, 0)
  1282.         string := StrGet(ptr_ChatlogStruct)
  1283. }
  1284.  
  1285. UpdateServerData()
  1286. {
  1287.     global UpdateServerData_func
  1288.     res := DllCall(UpdateServerData_func)
  1289.     return res
  1290. }
  1291.  
  1292. GetPlayerNameById(id,ByRef name)
  1293. {
  1294.     VarSetCapacity(name,24,0)
  1295.     global GetPlayerNameById_func
  1296.     res := DllCall(GetPlayerNameById_func,UShort,id,StrP,name)
  1297.     return res
  1298. }
  1299.  
  1300. GetPlayerIdByName(name)
  1301. {
  1302.     global GetPlayerIdByName_func
  1303.     res := DllCall(GetPlayerIdByName_func,Str,name)
  1304.     return res
  1305. }
  1306.  
  1307.  
  1308.  
  1309.  
  1310. DecimalToHex(Var){
  1311.     ; Convert a decimal integer to hexadecimal:
  1312.     SetFormat, IntegerFast, hex
  1313.     Dec2Hex += Var ; Sets Dec2Hex (which previously contained 11) to be 0xb.
  1314.     Dec2Hex .= "" ; Necessary due to the "fast" mode.
  1315.     SetFormat, IntegerFast, d
  1316.     StringTrimLeft, Dec2Hex, Dec2Hex, 2 ; removes 0x from the string
  1317.     StringUpper, Dec2Hex, Dec2Hex ; makes it all caps
  1318.     sDec2Hex .= Dec2Hex
  1319.     return sDec2Hex
  1320. }
  1321.  
  1322. RelToAbs(root, dir, s = "\") {
  1323.     pr := SubStr(root, 1, len := InStr(root, s, "", InStr(root, s . s) + 2) - 1)
  1324.         , root := SubStr(root, len + 1), sk := 0
  1325.     If InStr(root, s, "", 0) = StrLen(root)
  1326.         StringTrimRight, root, root, 1
  1327.     If InStr(dir, s, "", 0) = StrLen(dir)
  1328.         StringTrimRight, dir, dir, 1
  1329.     Loop, Parse, dir, %s%
  1330.     {
  1331.         If A_LoopField = ..
  1332.             StringLeft, root, root, InStr(root, s, "", 0) - 1
  1333.         Else If A_LoopField =
  1334.             root =
  1335.         Else If A_LoopField != .
  1336.             Continue
  1337.         StringReplace, dir, dir, %A_LoopField%%s%
  1338.     }
  1339.     Return, pr . root . s . dir
  1340. }
  1341.  
  1342.  
  1343. Login:
  1344. #SingleInstance
  1345. SetBatchLines, -1
  1346. Menu, Tray, NoStandard
  1347. Menu, Tray, Add, Exit, GuiClose
  1348. Menu, Tray, Default, Exit
  1349. InputBox, uName, Login, Gib den Benutzernamen ein!
  1350. If uName = Ordnungsamt LYD
  1351. InputBox, uPass, Login, Gib das Passwort ein!, HIDE
  1352. Else
  1353. {
  1354. Msgbox, 48, Login, Falsches Passwort` gib das richtige Passwort ein !
  1355. Goto, GuiClose
  1356. }
  1357. If uPass = 30112015
  1358. Goto, EnterScript
  1359. Else
  1360. Msgbox, 48, Login,Der Keybinder wird beendet!
  1361. GuiClose:
  1362. ExitApp
  1363. Return
  1364. EnterScript:
  1365. Msgbox, 48, Login, Erfolgreich Angemeldet.
  1366. return
  1367.  
  1368. t::
  1369. Suspend On
  1370. SendInput t
  1371. Hotkey, Enter, On
  1372. Hotkey, Escape, On
  1373. Hotkey, t, Off
  1374. return
  1375.  
  1376. NumpadEnter::
  1377. Enter::
  1378. Suspend Permit
  1379. Suspend Off
  1380. Hotkey, t, On
  1381. Hotkey, Enter, Off
  1382. Hotkey, Escape, Off
  1383. return
  1384.  
  1385. Escape::
  1386. Suspend Permit
  1387. Suspend Off
  1388. SendInput {Escape}
  1389. Hotkey, t, On
  1390. Hotkey, Enter, Off
  1391. Hotkey, Escape, Off
  1392. return
  1393.  
  1394. F12::
  1395. Suspend
  1396. SendInput, % "t/me " (A_IsSuspended ? "deaktiviert" : "aktiviert") " seinen Oamt-Keybinder. {enter}"
  1397. if(!%A_IsSuspended%)
  1398. Hotkey, t, On
  1399. return
  1400.  
  1401. +1::
  1402. SendChat("/Parkscheinkontrolle")
  1403. return
  1404.  
  1405. +2::
  1406. SendChat("/Parkstrafe")
  1407. return
  1408.  
  1409. +3::
  1410. SendChat("/Strafzettel")
  1411. return
  1412.  
  1413. +4::
  1414. SendChat("/Abnehmen")
  1415. SendChat("Guten Tag, dies ist der Beschwerdebeantworter des Ordnungsamtes")
  1416. SendChat("Wenn Sie eine Beschwerde haben, melden Sie sich")
  1417. SendChat("bitte im Forum bei einem Ausbilder oder Leader")
  1418. SendChat("oder warten Sie bei uns im Warteraum (im TS) bis")
  1419. SendChat("sich eine zuständige Person bei ihnen meldet.")
  1420. SendChat("Danke für ihre Aufmerksamkeit.")
  1421. SendChat("/auflegen")
  1422. return
  1423.  
  1424. +5::
  1425. Suspend
  1426. SendInput, % "t/"(A_IsSuspended ? "blitzeraufstellen 85 300" : "blitzerabbauen") "  {enter}"
  1427. if(!%A_IsSuspended%)
  1428. Hotkey, t, On
  1429. return
  1430.  
  1431. +6::
  1432. Sendchat("/oparken")
  1433. Sendchat("/Fparken")
  1434. return
  1435.  
  1436. +7::
  1437. SendChat("/Kofferraumansehen")
  1438. SendChat("/me schaut sich den Kofferraum an")
  1439. return
  1440.  
  1441. +8::
  1442. SendChat("Aus Sicherheitsgründen werde ich Sie nun Festnehmen!")
  1443. SendInput t{/}festnehmen{space}
  1444. Return
  1445.  
  1446. +9::
  1447. GetPlayerName(pName)
  1448. SendChat("Ich spreche Ihnen hiermit nach §12 BR Abs.1 einen 30 minütigen Platzverweis aus")
  1449. SendChat("Sollten Sie diesem nicht Nachkommen, sind wir Gezwungen Ihnen Wanteds zu geben")
  1450. SendChat("Sollten Sie dann immer noch nicht Weggehen, Wird Die Polizei Gerufen")
  1451. SendChat("oder wir werden Sie Festnehmen und ggf. Ihr Auto wenn vorhanden kostenpflichtig")
  1452. SendChat("Entfernen. Sollten Sie uns jetzt Abschießen wollen, verstoßen Sie gegen")
  1453. SendChat(" $27 SR Abs.2 (SDM auf Beamte)")
  1454. SendChat("Danke für Ihre Aufmerksamkeit!")
  1455. return
  1456.  
  1457. +0::
  1458. SendChat("/staatrepair")
  1459. return
  1460.  
  1461. !1::
  1462. SendChat("Ich werde Sie nun auf Waffen und Drogen Durchsuchen")
  1463. SendInput t{/}durchsuchen{space}
  1464. Return
  1465.  
  1466. !2::
  1467. SendChat("Ich kontrolliere Sie nun auf Drogen und Alkoholkonsum!")
  1468. SendInput t{/}Promille{space}
  1469. return
  1470.  
  1471. !3::
  1472. SendChat("Ihre Waffen/Drogen werden Ihnen aus Sicherheitsgründen abgenommen!")
  1473. SendInput t{/}entnehmen{space}
  1474. return
  1475.  
  1476. !4::
  1477. SendInput t{/}fpunkte{space}
  1478. return
  1479.  
  1480. !5::
  1481. SendChat("/Abnehmen")
  1482. SendChat("Guten Tag, San Andreas Ordnungsamt.")
  1483. SendChat("Wie kann ich Ihnen Helfen?")
  1484. return
  1485.  
  1486. !6::
  1487. GetPlayerName(pName)
  1488. SendChat("Hallo San Andreas Ordnungsamt")
  1489. Sleep 100
  1490. SendChat("" pName " mein Name.")
  1491. Sleep 100
  1492. SendChat("Sie haben ihr Fahrzeug im Halteverbot stehen.")
  1493. Sleep 100
  1494. SendChat("Ich gebe ihnen 2 Minuten Zeit es wegzufahren.")
  1495. Sleep 100
  1496. SendChat("Andernfalls sind wir gezwunden, dass Fahrzeug")
  1497. Sleep 100
  1498. SendChat("Kostenpflichtig abzuschleppen.")
  1499. Sleep 100
  1500. SendChat("Dies Kostet Sie 35000$")
  1501. return
  1502.  
  1503. !7::
  1504. SendChat("/motor")
  1505. SendChat("/licht")
  1506. SendChat("/flock")
  1507. return
  1508.  
  1509. !9::
  1510. SendChat("/me macht den Warnblinker an/aus")
  1511. SendChat("/warnblinker")
  1512. return
  1513.  
  1514. !0::
  1515. SendChat("/fc Allgemeiner Fahrzeug Respawn in 20 Sekunden!")
  1516. SendChat("/fc Noch 20 Sekunden!")
  1517. Sleep 5000
  1518. SendChat("/fc Noch 15 Sekunden!")
  1519. Sleep 5000
  1520. SendChat("/fc Nurnoch 10 Sekunden bis zum respawn schnell in die Fahrzeuge!")
  1521. Sleep 5000
  1522. SendChat("/fc Noch 5 Sekunden!")
  1523. Sleep 1000
  1524. SendChat("/fc Noch 4 Sekunden!")
  1525. Sleep 1000
  1526. SendChat("/fc Noch 3 Sekunden!")
  1527. Sleep 1000
  1528. SendChat("/fc Noch 2 Sekunden!")
  1529. Sleep 1000
  1530. SendChat("/fc Noch 1 Sekunde!")
  1531. Sleep 1000
  1532. SendChat("/respawncars")
  1533. SendChat("/fc Respawn!")
  1534. SendChat("/fc Die O-Amt Fahrzeuge wurden erfolgreich Respawnt!")
  1535. return
  1536.  
  1537. !ü::
  1538. If(IsChatOpen() or IsDialogOpen()){
  1539. SendInput 1
  1540. return
  1541. }
  1542. SendChat("/pickwaffe")
  1543. return
  1544.  
  1545. :?:/pw::
  1546. SendChat("/pickwaffe")
  1547. return
  1548.  
  1549. ^ & 1::
  1550. If(IsChatOpen() or IsDialogOpen()){
  1551. SendInput 1
  1552. return
  1553. }
  1554. SendChat("/m >>>San Andreas Ordnungsamt!<<<")
  1555. SendChat("/m >>>Räumen Sie umgehend die Straße!<<<")
  1556. return
  1557.  
  1558. ^ & 2::
  1559. If(IsChatOpen() or IsDialogOpen()){
  1560. SendInput 2
  1561. return
  1562. }
  1563. SendChat("/m >>>San Andreas Ordnungsamt!<<<")
  1564. SendChat("/m >>>Allgemeine Verkehrskontrolle!<<<")
  1565. SendChat("/m >>>Fahren Sie sofort rechts ran!<<<")
  1566. return
  1567.  
  1568. ^ & 3::
  1569. If(IsChatOpen() or IsDialogOpen()){
  1570. SendInput 3
  1571. return
  1572. }
  1573. SendChat("/m >>>Dies ist die letzte Aufforderung!<<<")
  1574. SendChat("/m >>>Fahren Sie sofort rechts ran!<<<")
  1575. return
  1576.  
  1577. ^ & 4::
  1578. If(IsChatOpen() or IsDialogOpen()){
  1579. SendInput 4
  1580. return
  1581. }
  1582. GetPlayerName(pName)
  1583. SendChat("Guten Tag, das ist eine allgemeine Verkehrs Kontrolle.")
  1584. SendChat("" pName " ist mein Name.")
  1585. return
  1586.  
  1587. ^ & 5::
  1588. If(IsChatOpen() or IsDialogOpen()){
  1589. SendInput 5
  1590. return
  1591. }
  1592. SendChat("Bitte stellen Sie den Motor ab und steigen Sie aus.")
  1593. return
  1594.  
  1595. ^ & 6::
  1596. GetPlayerName(pName)
  1597. If(IsChatOpen() or IsDialogOpen()){
  1598. SendInput 6
  1599. return
  1600. }
  1601. SendChat("Bitte zeigen Sie mir ihren Personalausweis mit /pass " pName "")
  1602. SendChat("Nun zeigen Sie mir ihre Scheine mit /scheine " pName "")
  1603. SendChat("Und zum Schluss möchte ich ihren Fahrzeugschein sehen, das machen Sie mit /fahrzeugschein " pName "")
  1604. return
  1605.  
  1606. ^ & 7::
  1607. If(IsChatOpen() or IsDialogOpen()){
  1608. SendInput 7
  1609. return
  1610. }
  1611. SendChat("Vielen Dank!")
  1612. SendChat("Nun werde ich Sie auf Drogen und Alkohol untersuchen!")
  1613. return
  1614.  
  1615. ^ & 8::
  1616. If(IsChatOpen() or IsDialogOpen()){
  1617. SendInput 8
  1618. return
  1619. }
  1620. SendChat("Zum Schluss möchte ich einen Blick in ihren Kofferraum werfen.")
  1621. SendChat("Diesen Öffnen Sie mit /kofferraum wahrend Sie in ihrem Fahrzeug sitzen.")
  1622. return
  1623.  
  1624. ^ & 9::
  1625. If(IsChatOpen() or IsDialogOpen()){
  1626. SendInput 9
  1627. return
  1628. }
  1629. SendChat("Vielen Dank für ihre Kooperation.")
  1630. SendChat("Schönen Tag noch und gute Weiterfahrt.")
  1631. return
  1632.  
  1633. ^ & 0::
  1634. SendChat("/dienst")
  1635. SendChat("/oamt")
  1636. return
  1637.  
  1638. :?:/test::
  1639. suspend permit
  1640. SendChat("Test")
  1641. return
  1642.  
  1643. +::
  1644. If(IsChatOpen() or IsDialogOpen()){
  1645. SendInput x
  1646. return
  1647. }
  1648. ShowDialog(DIALOG_STYLE_LIST, "Punkteliste und Ordnungsgelder", "{FFAA00}######################################################`nVerkehrsstrafpunkte i.V.m. möglichen Ordnungsgeldern:`n`n{00FF00}Behinderung des Verkehrsflusses: 1 Strafpunkte oder 2.000$`nAbsichtliches Zerstören von Verkehrsanlagen: 2 Strafpunkte oder 7.500$`nFahren ohne Licht: 3 Strafpunkte oder 3.000$`nParken im Halteverbot: 2 Strafpunkte oder 3.000$`nFahren abseits der Straße: 3 Strafpunkte oder 7.500$`nFahren ohne Helm: 3 Strafpunkte (Gilt nur für Motorrad!)`nMissachtung der Vorfahrtsregeln: 3 Strafpunkte oder 5.000$`nBehinderung von Einsatzfahrzeugen: 4 Strafpunkte`nVerursachen eines Unfalles: 4 Strafpunkte oder 10.000$`nFahren auf falscher Straßenseite, wenn kein Hindernis erkennbar ist: 6 Strafpunkte`nFahren über eine rote Ampel: 7 Strafpunkte`nFahren unter Alkohol-/Drogeneinfluss: 10 Strafpunkte`nAbsichtliches Anfahren von Personen: 10 Strafpunkte`nZeigen von Waffen in Waffenverbotszone - Entnehmen der Waffen`nSchießen in Waffenverbotszonen: Waffenscheinsperre`n`nTiefflug: Scheinentzug`nAusnahme: [San News] [Rettungsdienst] [Ordnungsamt] [Polizei/FBI/Army] (Nur im Einsatz)`n`nRotorn: Scheinentzug ggf. A-Prison`nRammen anderer Luftfahrzeuge: Scheinentzug Ausnahme: [Polizisten] [Army] [FBI](Nur im Einsatz)`nFahren von nicht angemeldetem Fahrzeug: 6 Strafpunkte und 40000$ Strafe`nParken von nicht Angemeldetem Fahrzeug: 5000$ Strafe und direkte Anmeldung!`n{FFAA00}######################################################`n{00FF00}Ordnungsgelder:`n`nAbschleppmaßnahme: 35000$`nFahren ohne Gültige Zulassung: 15000$`nFahren ohne gültigem TÜV: 25000$`nBeleidigung: 5000$`nBenutzen von Nitro(gilt nur in Los Santos:2500$ oder 2 Wanteds für StVO`nErregung Öffentlichen Ärgernisses: 10000$`nÖffentliches Urinieren: 5000$`n{FFAA00}######################################################", "Schließen")
  1649. return
  1650.  
  1651. #::
  1652. If(IsChatOpen() or IsDialogOpen()){
  1653. SendInput l
  1654. return
  1655. }
  1656. ShowDialog(Dialog_Style_List, "Tastenkombinationen", "{FFBB00}############################`nF12 = Keybinder An/Ausschalten`n{00FF00}############################`n^+1 = Räumen Sie umgehend die Straße`n^+2 = Allgemeine Verkehrskontrolle`n^+3 = Letzt Aufforderung`n^+4 = Guten Tag, dies ist eine Verkehrskontrolle`n^+5 = Motor ausstellen und aussteigen`n^+6 = Auffordern alle Scheine zu zeigen`n^+7 = Vielen dank ich werde Sie nun durchsuchen`n^+8 = Bitte zeigen Sie mir ihren Kofferaum`n^+9 = Vielen dank für Ihre Kooperation`n^+0 = In den Dienst gehen`n{F7FE2E}############################`nShift+1 = Fahrzeughalter ermitteln/Parkschein kontrollieren`nShift+2 = Bußgeld geben wegen Parken ohne Parkschein`nShift+3 = Bußgeld geben wegen Parken im Halteverbot`nShift+4 = Beschwerdebeantworter (sollte jemand euch anrufen und eine Beschwerde haben)`nShift+5 = Blitzer Aufstellen/Abbauen`nShitf+6 = Operken/Fparken`nShift+7 = Kofferraum durchsuchen`nShift+8 = Vorwarnen das ich Handschellen anlegen werde und Festnehmen`nShift+9 = Aussprechen eines Platzverweises auf öffentlichem Gelände`nShift+0 = Staats-Raparatur`n{FF0000}############################`nALT+1 = Person durchsuchen`nALT+2 = Person auf Alkohol und Drogen testen`nALT+3 = Waffen oder Drogen entnehmen`nALT+4 = Strafpunkte auf Scheine geben`nALT+5 = Guten Tag San Andreas Ordnungsamt`nALT+6 = Text für stehen im Halteverbot`nALT+7 = Motor an/aus Carlock auf/zu Licht an/aus`nALT+8 = Nur Carlock`nALT+9 = Warblinker an/aus`nALT+0 = Car Respawn (Nur als Ausbilder oder Leader Nutzbar)`nALT+Ü = Waffen Aufheben`n{0000FF}############################`nSchein ID's:`nAutoschein: 1`nBootsschein: 2`nFlugschein: 3`nMotorradschein: 4`nLKWschein: 5`nWaffenschein: 6 ", "Schließen")
  1657. return
  1658.  
  1659. ä::
  1660. If(IsChatOpen() or IsDialogOpen()){
  1661. SendInput x
  1662. return
  1663. }
  1664. ShowDialog(DIALOG_STYLE_LIST, "Sonstiges", "{00FF00}######################################################`nNeulingen unter Level 2 Bitte keine Punkte geben nur Wanteds.`nPersonen Mit Faggios, Fahrrädern oder Sonstigen Fahrzeugen bei denen man keinen Schein braucht Wanteds für StVO geben.`nPersonen die Permanent gegen die StVO Vertoßen bitte mit Beweisen den Schein entziehen.`nDauerhupen ohne jeglichem Grund ist verboten und wird mit StVO Wanteds Bestraft!`n{F7FE2E}######################################################`nCommands die nicht in der /Help liste Stehen:`n/vrk = Text für die Verkehrskontrolle (nur im Stratum verwenden)`n/HSirene = Die Sirene eines RTW/Polizeiwagens an/aus machen", "Schließen")
  1665. return
  1666.  
  1667. Autobefehle:
  1668. if(IsPlayerInRangeOfPoint(2288.4749, 2444.5205, 3.0815, 3) && IsPlayerInAnyVehicle())
  1669. {
  1670. SendChat("/staatrepair")
  1671. ShowGameText("~r~Fahrzeug ~g~Repariert", 2500, 3)
  1672. Sleep, 3000
  1673. }
  1674. else if(IsPlayerInRangeOfPoint(1554.6696, -1612.0137, 13.1293, 3) && IsPlayerInAnyVehicle())
  1675. {
  1676. SendChat("/staatrepair")
  1677. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1678. Sleep, 3000
  1679. }
  1680. else if(IsPlayerInRangeOfPoint(2047.3696,-1319.7498,23.9810,4.0) && IsPlayerInAnyVehicle())
  1681. {
  1682. SendChat("/staatrepair")
  1683. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1684. Sleep, 3000
  1685. }
  1686. else if(IsPlayerInRangeOfPoint(1240.7091,-2028.5955,59.6859,4.0) && IsPlayerInAnyVehicle())
  1687. {
  1688. SendChat("/staatrepair")
  1689. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1690. Sleep, 3000
  1691. }
  1692. else if(IsPlayerInRangeOfPoint(833.1295,-1240.3947,15.1100,4.0) && IsPlayerInAnyVehicle())
  1693. {
  1694. SendChat("/staatrepair")
  1695. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1696. Sleep, 3000
  1697. }
  1698. else if(IsPlayerInRangeOfPoint(1248.3625,-1833.8903,13.3930,4.0) && IsPlayerInAnyVehicle())
  1699. {
  1700. SendChat("/staatrepair")
  1701. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1702. Sleep, 3000
  1703. }
  1704. else if(IsPlayerInRangeOfPoint(621.2955,-584.5904,17.2330,4.0) && IsPlayerInAnyVehicle())
  1705. {
  1706. SendChat("/staatrepair")
  1707. SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
  1708. Sleep, 3000
  1709. }
  1710. if ( A_IsSuspended )
  1711. return
  1712. Getchatline(0, Chatline0)
  1713. if(instr(Chatline0, "Sie stehen an einer Zollstation"))
  1714. {
  1715. sendchat("/Zollamt")
  1716. }
  1717. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement