Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. GetVehicleFreeSeats_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFreeSeats")
  2.  
  3. GetVehicleFreeSeats(ByRef int_SeatFL, ByRef int_SeatFR, ByRef int_SeatBL, ByRef int_SeatBR)
  4. {
  5. global GetVehicleFreeSeats_func
  6. res := DllCall(GetVehicleFreeSeats_func, IntP, int_SeatFL, IntP, int_SeatFR, IntP, int_SeatBL, IntP, int_SeatBR)
  7. return res
  8. }
  9.  
  10. 1::
  11. if(IsChatOpen() == 1 || IsDialogOpen() == 1) {
  12. return
  13. }
  14. ;0 = Fahrer
  15. ;1 = Beifahrer
  16. ;2 = hinten links
  17. ;3 = hinten rechts
  18. if(IsPlayerInAnyVehicle() == 1)
  19. {
  20. if(GetVehicleFreeSeats(1) == 0)
  21. {
  22. SendChat("/freefromcar " kundenid " 1")
  23. return
  24. }
  25. if(GetVehicleFreeSeats(2) == 0)
  26. {
  27. SendChat("/freefromcar " kundenid " 2")
  28. return
  29. }
  30. if(GetVehicleFreeSeats(3) == 0)
  31. {
  32. SendChat("/freefromcar " kundenid " 3")
  33. return
  34. }
  35. }
  36. else
  37. {
  38. AddChatMessage(0x00ffff,"[Wheelman Keybinder]{FFFFFF} Du bist in keinem Fahrzeug")
  39. }
  40. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement