Jump to content

ViRuZGamiing

Members
  • Posts

    1,050
  • Joined

  • Last visited

Everything posted by ViRuZGamiing

  1. Mr.Prestige why you have an whole code after the key="F2"
  2. Hello Cummunity, I have this in my script: key = "m" It works fine with "m" but if I want it to work with "F2" is it still the same?
  3. So you want a script already made with problems because normally people upload scripts with mistakes and then they fix it.
  4. Please some help, I tried again and made a bigger mess.
  5. Isn't that a Server Sided script?
  6. Ow I forgot to add in Server sided this: createBlip(-2643, 639, 15, 22, 2)
  7. Hello Community, Please don't say I s*ck, i'm new to script and learning. But it don't work my script. I triggered as much as I could and went to Wiki every 5 secs. So I hope you guys can help me as last option. My Script SERVER SIDED: local theMarker = createMarker ( -2643, 639, 15, "cylinder", 1, 0, 0, 200, 170 ) -- creates the marker function MarkerHit ( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) setGUIvisable ("Panel") -- sets the triggered GUI visable triggerClientEvent() -- Triggers the GUI see Client end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) function createCar local createVehicle (416, -2591 584 15) -- ID X Y and Z setPedIntoCar(createVehicle) -- Warps the Player into the Created Car end function setTeam onGUIclick(bAccept) then setPlayerTeam("Medic") if getPlayerTeam = Medic then outputChatBox("You are already an Medic") end -- Adds the Command for Medic members to heal players local range = 50 addCommandHandler('heal', -- creates the command /heal function(p,c,who) local who = getPlayerFromName(who) if who then local mx,my,mz = getElementPosition(p) local ux,uy,uz = getElementPosition(who) if getDistanceBetweenPoints3D(mx,my,mz,ux,uy,uz) <= range then if getPlayerTeam(p) == getTeamFromName("Medic") then -- only for medics able setElementHealth(who, 100) -- sets full health setPlayerMoney(who, -100) -- Takes 100$ for healing end else outputChatBox("This player is too far away",p,0,0,225) end else outputChatBox('Player not found.',p,0,0,255) end end ) CLIENT SIDED: GUIEditor = { memo = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.29, 0.24, 0.42, 0.49, "", true) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) bAccept = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "", true, GUIEditor.window[1]) bAccept = guiCreateButton(0.60, 0.20, 0.34, 0.17, "Accept Job", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", bAccept, showGUIbf, false) addEventHandler("onClientGUIClick", bAccept, joinTeam, false) bClose = guiCreateButton(0.67, 0.61, 0.20, 0.16, "CLOSE", true, GUIEditor.window[1]) guiSetProperty(bClose, "NormalTextColour", "FFAAAAAA") addEventHandler("onClientGUIClick", bClose, showGUIbf, false) GUIEditor.memo[1] = guiCreateMemo(0.08, 0.20, 0.41, 0.67, "Become a Medic and heal people by using the command /heal player !", true, GUIEditor.window[1]) end triggerServerEvent("theMarker") triggerServerEvent("createCar") triggerServerEvent("setTeam") end I know this isn't good but I tried and I know people who just give up but I tried. Thanks for Helping already and be kind with reply's
  8. If I add this to my Medic Job script it will make Job instead of Medic? Please say Yes
  9. This looks very difficult, can someone explain the "getDistanceBetweenPoints"
  10. Hello Community, A Part of the Script: if getPlayerTeam(player) == getTeamFromName("Medic") then I don't want my Scoreboard to be longer and longer so I thought... Can I add a instead of a Row saying Medic add an Colomn Job. Greetings Billy
  11. Hello Community, My Script: function medic(player, cmd, who) local who = getPlayerFromName(who) if getPlayerTeam(player) == getTeamFromName("Medic") then setElementHealth(who, 100) end end addCommandHandler("heal", medic) What I want: The Script works fine but I want to set a Range that only players around me can be healed with this added: else outputChatBox("This player isn't close to you", 0, 0, 225) Thanks for helping already
  12. I know I can trust him but I want see how it looks, how the GUI's look...
  13. Screenshots please, It's more convincing to buy with it.
  14. Name a price or tell ur skype [Price for all]
  15. I think you also could add: else outputChatBox ("This Player doesn't exist") end
  16. I'm new to, Do I need to read them all or choose 1? Give me the best 1 out the list.
  17. A bit like this; https://community.multitheftauto.com/index.php?p= ... ls&id=4863 Just edit it but don't edit Credits. Only edit: • outputChatBox • addCommandHandler's if they are in • Add new things or Delete things is also possible
  18. Car doesn't unfreeze after Car repaired
  19. Hi, Here's my script; What I want? - When Element (Player) Hits the Marker (onMarkerHit) the car is frozen till the the car is repaired. What I think, which is the right script; function freeze if onClientMarkerHit (Player) then elementFreeze if getVehicleHealth = 100 then elementUnfreeze addEventHandler ( "onClientMarkerHit", freeze)
  20. What you mean? I need to paste the script here or what?
  21. Okay maybe someone else will be as kind to help (Example: TA-PL, manve...)
×
×
  • Create New...