Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetVehicleFreeSeats_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFreeSeats")
- GetVehicleFreeSeats(ByRef int_SeatFL, ByRef int_SeatFR, ByRef int_SeatBL, ByRef int_SeatBR)
- {
- global GetVehicleFreeSeats_func
- res := DllCall(GetVehicleFreeSeats_func, IntP, int_SeatFL, IntP, int_SeatFR, IntP, int_SeatBL, IntP, int_SeatBR)
- return res
- }
- 1::
- if(IsChatOpen() == 1 || IsDialogOpen() == 1) {
- return
- }
- ;0 = Fahrer
- ;1 = Beifahrer
- ;2 = hinten links
- ;3 = hinten rechts
- if(IsPlayerInAnyVehicle() == 1)
- {
- if(GetVehicleFreeSeats(1) == 0)
- {
- SendChat("/freefromcar " kundenid " 1")
- return
- }
- if(GetVehicleFreeSeats(2) == 0)
- {
- SendChat("/freefromcar " kundenid " 2")
- return
- }
- if(GetVehicleFreeSeats(3) == 0)
- {
- SendChat("/freefromcar " kundenid " 3")
- return
- }
- }
- else
- {
- AddChatMessage(0x00ffff,"[Wheelman Keybinder]{FFFFFF} Du bist in keinem Fahrzeug")
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement