Jump to content

KillerNico

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About KillerNico

  • Rank
    Square
  1. I have made a gui. and i want to open it if i hit a marker! But how ??
  2. And how to make it so that only Player with Vehicle will teleport >??
  3. Hi everybody! I learn scripting in this moment and need help. In a Teleporter i can set the Rotation of the player, right ?? I think its so: function MarkerHit ( hitPlayer, matchingDimension ) if source == inhouse then setElementPosition( hitPlayer, x, y, z ) setPlayerRotation ( x, y, z ) setVehicleFrozen ( true ) setTimer ( setVehicleFrozen, 1000 ) end addEventHandler( "onMarkerHit", inhouse, MarkerHit )
  4. There is one Problem: If i set the Script sever side then it show: Error:Feuerwehr\alarm_gui.lua:4:attemt to call global 'guiCreateWindow' (a nil value) And if i set it Client side: Error: triggered serverside event sendSound, but event is not added Serverside Here is the Script: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(782,176,240,493,"Alarm Menu",false) guiWindowSetMovable(GUIEditor_Window[1],true) guiWindowSetSizable(GUIEditor_Window[1],false)
  5. In my Script is one problem: If i press a Button it, the sound plays only for me. But i want that all can hear it, how i can do it ? Here is the code: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(782,176,240,493,"Alarm Menu",false) guiWindowSetMovable(GUIEditor_Window[1],true) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(22,56,196,55,"Nekluaralarm !",false,GUIEditor_Window[1])
  6. Ok for my Script i need a 2nd GUI function. In the Edit field anobody can type in anything and then it shows in text in chatbox! For example: I write in the editfield: LTR Tower, In the chatbox it show it so: Everybode come to LTR Tower! addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(3,178,261,208,"Uebungs Menu",false) GUIEditor_Button[1] = guiCreateButton(12,29,119,45,"Zur Zentrale",fal
  7. Ok i done it myself Îm so happy
  8. Ok if you want: I want to play Musik on Command "alarm", its .mp3 ! Ps.: Its ca. 30 saconds long
  9. Ok Thank you no more Questions
  10. Thank You Ps: 2nd Question: How i can close the gui ??
  11. Hi all I want to make a GUI: addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(782,176,240,493,"Alarm Menu",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(108,210,5,5,"",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(22,56,196,55,"Stufe 5",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(22,128,198,56,"Stufe
×
×
  • Create New...