Jump to content

JasperRieken

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by JasperRieken

  1. And it doesn't count either so it doesn't work
  2. I do believe it works but does it say if it reaches the 60 min does it say 1 Hour 2 Minutes or somting
  3. I can't figure out a dxscoreboard thingy i wanted to add a time like what the've played in total and that it counts up but i would really not know how to if someone could help that would be really awesome
  4. i have never worked with ColCuboid can you explain?
  5. Well the GUI comes up when you fly verry high over it so thats weird and the marker is small ClientSide local marker7 = createMarker(2287.3046875,-3014.7346191406,53.385776519775,"cylinder",1.5,255,255,255,255) function gui7(hitElement) if getElementType( hitElement ) == "player" and hitElement == getLocalPlayer() then if ( guiGetVisible (window) == true ) then -- check if the gui element is visible showCursor(false) guiSetVisible (window, false ) -- if it is, we hide it else guiSetVisible (window, false ) -- if not, we make it visible showCursor(true) end window = guiCreateWindow(532,268,249,340,"Admin Spawn",false) but1 = guiCreateButton(21,30,206,48,"Hydra",false,window) addEventHandler("onClientGUIClick", but1,hydraPlane, false) but2 = guiCreateButton(21,89,206,48,"Hunter",false,window) addEventHandler("onClientGUIClick", but2,hunterPlane, false) but3 = guiCreateButton(19,148,206,48,"RC Baron",false,window) addEventHandler("onClientGUIClick", but3,rcPlane, false) but4 = guiCreateButton(20,207,206,48,"SeaSparrow",false,window) addEventHandler("onClientGUIClick", but4,seaPlane, false) but5 = guiCreateButton(59,277,126,25,"Close",false,window) addEventHandler("onClientGUIClick", but5, hideWindow, false) end end addEventHandler("onClientMarkerHit", marker7, gui7) function hydraPlane() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnHydra", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function hunterPlane() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnHunter", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function rcPlane() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnRc", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function seaPlane() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnSea", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function hideWindow() guiSetVisible(window, false) showCursor(false) end ServerSide addEvent("spawnHydra", true) function adminQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 520, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Hydra spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnHydra", getRootElement(), adminQ ) addEvent("spawnHunter", true) function adminQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 425, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Hunter spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnHunter", getRootElement(), adminQ ) addEvent("spawnRc", true) function adminQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 464, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Rc Baron spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnRc", getRootElement(), adminQ ) addEvent("spawnSea", true) function adminQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 447, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Seasparrow spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnSea", getRootElement(), adminQ )
  6. No need This scriped is Solved ClientSide marker = createMarker(2327.27,-3083.64,59.25,"cylinder",2,255,255,255,255) function gui(hitElement) if getElementType( hitElement ) == "player" and hitElement == getLocalPlayer() then if ( guiGetVisible (window) == true ) then -- check if the gui element is visible showCursor(false) guiSetVisible (window, false ) -- if it is, we hide it else guiSetVisible (window, false ) -- if not, we make it visible showCursor(true) end window = guiCreateWindow(471,278,366,401,"Xuju Vechile's",false) but1 = guiCreateButton(100,42,158,45,"BXM",false,window) addEventHandler("onClientGUIClick", but1, bmxBike, false) but2 = guiCreateButton(100,114,158,45,"Mountain Bike",false,window) addEventHandler("onClientGUIClick", but2, mountainBike, false) but3 = guiCreateButton(101,192,158,45,"Bike",false,window) addEventHandler("onClientGUIClick", but3, Bike, false) but4 = guiCreateButton(101,267,158,45,"Sanchez",false,window) addEventHandler("onClientGUIClick", but4, Sanchez, false) but5 = guiCreateButton(26,362,82,30,"Close",false,window) addEventHandler("onClientGUIClick", but5, hideWindow, false) end end addEventHandler("onClientMarkerHit", marker, gui) function bmxBike() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnBmx", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function mountainBike() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnMountainbike", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function Bike() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnBike", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function Sanchez() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnSanchez", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end function hideWindow() guiSetVisible(window, false) showCursor(false) end ServerSide addEvent("spawnBmx", true) function bikeQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 481, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Bmx spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnBmx", getRootElement(), bikeQ ) addEvent("spawnMountainbike", true) function bikeQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 510, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("MountainBike spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnMountainbike", getRootElement(), bikeQ ) addEvent("spawnBike", true) function bikeQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 509, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Bike spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnBike", getRootElement(), bikeQ ) addEvent("spawnSanchez", true) function bikeQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 468, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Sanchez spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnSanchez", getRootElement(), bikeQ )
  7. it works now but if one person steps in everybody get's the gui what can i do?
  8. i made my first gui it opens and it sais bad event handler line 13 can't find out what's wrong somebody see somting? ClietSide marker = createMarker(2327.27,-3083.64,60.25,"cylinder",2,255,0,0,255) function gui() if ( guiGetVisible (window) == true ) then -- check if the gui element is visible showCursor(false) guiSetVisible (window, false ) -- if it is, we hide it else guiSetVisible (window, false ) -- if not, we make it visible showCursor(true) window = guiCreateWindow(471,278,366,401,"Xuju Vechile's",false) but1 = guiCreateButton(100,42,158,45,"BXM",false,window) addEventHandler("onClientGUIClick", but1, bmxBike, false) but2 = guiCreateButton(100,114,158,45,"Mountain Bike",false,window) but3 = guiCreateButton(101,192,158,45,"Bike",false,window) but4 = guiCreateButton(83,138,5,5,"",false,window) but5 = guiCreateButton(101,267,158,45,"Sanchez",false,window) but6 = guiCreateButton(26,362,82,30,"Close",false,window) end end addEventHandler("onClientMarkerHit", marker, gui) function bxmBike() guiSetVisible(window, false) showCursor(false) triggerServerEvent( "spawnBmx", getLocalPlayer(),getPlayerName( getLocalPlayer() ) ) end ServerSide addEvent("spawnBmx", true) function bikeQ(playerName) local guy = getPlayerFromName( playerName ); local x, y, z = getElementPosition ( guy ) local r = getPedRotation ( guy ) vehicle = createVehicle ( 481, x, y, z, 0, 0, r ) warpPedIntoVehicle ( guy, vehicle ) outputChatBox("Bmx spawned!", guy, 0, 255, 0) end addEventHandler ( "spawnBmx", getRootElement(), bikeQ )
  9. And how does it work on marker?
  10. can you make like a explain with one button? Button1 = guiCreateButton(100,42,158,45,"BXM",true,GUIEditor_Window[1]
  11. i really cant figure it out
  12. Thank you ill try if it doesn't work ill show what i did
  13. im trying to script a gui with mta wiki. But can't find how to script like a vechile spawn gui.... Can somebody here may be help iwant to script them on marker.... this is the gui GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(471,278,366,401,"Xuju Vechile's",false) GUIEditor_Button[1] = guiCreateButton(100,42,158,45,"BXM",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(100,114,158,45,"Mountain Bike",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(101,192,158,45,"Bike",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(83,138,5,5,"",false,GUIEditor_Button[3]) GUIEditor_Button[5] = guiCreateButton(101,267,158,45,"Sanchez",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(26,362,82,30,"Close",false,GUIEditor_Window[1])
  14. well i really can't figure out how can yo explain to me how?
  15. Well i can use your help with one more thing im trying to script a Gui for a vechile spawn can you help me? i wanna make it on markerhit get the gui and spawn the vechile same place this is the gui -- Created: 21/00/2011 13:17 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(471,278,366,401,"Xuju Vechile's",false) GUIEditor_Button[1] = guiCreateButton(100,42,158,45,"BXM",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(100,114,158,45,"Mountain Bike",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(101,192,158,45,"Bike",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(83,138,5,5,"",false,GUIEditor_Button[3]) GUIEditor_Button[5] = guiCreateButton(101,267,158,45,"Sanchez",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(26,362,82,30,"Close",false,GUIEditor_Window[1]) --- --- --- --- ---
  16. i can't can you help me out ?
  17. i don't use a code i set with admin panel
  18. i don't know how can you please make one
  19. no when player get set to Xuju Crew team that's what i want
×
×
  • Create New...