Jump to content

[STM]Metalhero

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by [STM]Metalhero

  1. maybe you can find scripts here https://community.multitheftauto.com/ or if you rly want special scripts post a reply
  2. your problem is "createTeam" ist is server function you must learn to choose server and client side
  3. 1. function createScroll() 2. local scrollbar = guiCreateScrollBar (0.95,0,0.05,1,false,true) 3. guiSetProperty(scrollbar,"StepSize",0.1/19.5) 4. addEventHandler("onClientGUIScroll",scrollbar,onScroll) 5. showCursor(true) 6. end 7. 8. function onScroll() 9. outputChatBox(tostring(guiScrollBarGetScrollPosition(source)*10)) 10. end 11. 12. createScroll()
  4. gj
  5. you dont need to detect key yust wire funtion with bined keys for example function start () bindKey("accelerate","both",funcw) bindKey("brake_reverse","both",funcb) end addEventHandler( "onClientResourceStart", getRootElement( ),start) function funkw () outputChatBox("You drive with vehicle") end function funkb () outputChatBox("You drive reverse with vehicle") end
  6. stupid post have you login with the account or regisertert with [GGR]Jack_Miller
  7. i make it for 10 € a mounth
  8. it not work pls help me
  9. can any help to trigger one hunter rocket hit a object ? thx for all anserwers
  10. no but i think i must one part of script in server side and one part of script in client side but i dont work
  11. if have map a map cod ebut marker odnt work function resource_says_hai () outputChatBox ( "Metalhero says Have FUN", getRootElement(), 51, 255,255 ) k1 = createObject ( 8838, 3389.5720214844, -1764.0531005859, 28, 0, 0, 0 ) k2 = createObject ( 2898, 3411.4658203125, -1774.7734375, 26.377542495728, 0, 326.25, 0 ) k3 = createObject ( 2898, 3505.853515625, -1739.0093994141, 2.952540397644 ) s1 = createObject ( 2898, 3379.9379882813, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s2 = createObject ( 2898, 3383.9897460938, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s3 = createObject ( 2898, 3388.0126953125, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s4 = createObject ( 2898, 3392.0622558594, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s5 = createObject ( 2898, 3396.0676269531, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s6 = createObject ( 2898, 3400.0974121094, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 ) s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 ) m2 = createMarker ( 3595.6535644531, -1826.3543701172, 13, "corona", 1, 255, 255, 0, 255 ) setTimer ( nightmaker, 1000, 0 ) setWeather ( 29 ) setCloudsEnabled ( true ) setSkyGradient( 0, 255, 0, 0, 255, 255 ) setWaterColor( 51, 255 , 255 ) end addEventHandler("onResourceStart", getRootElement(), resource_says_hai ) function nightmaker () setTime ( 0, 0 ) end setTimer(function() destroyElement ( k1 )end,30000,1) m1 = createMarker ( 3415.6726074219, -1790.2113037109, 25.48247718811, "corona", 1, 255, 255, 0, 255 ) setTimer (outputChatBox,5000,1,"O: !!!Touch the light to Open Secret Ways!!! :O", getRootElement(), 255, 0,0 ) function Markery ( hitPlayer, matchingDimension ) if source == m1 then pojazd = getPedOccupiedVehicle ( hitPlayer ) outputChatBox ( "!!!"..pojazd.." Has Open the way!!!", getRootElement(), 51, 255,0 ) moveObject ( s1, 10,3379.9379882813, -1774.4644775391, 30.15, 0, 340, 0 ) moveObject ( s2, 10,3383.9897460938, -1774.4644775391, 31.60, 0, 340, 0 ) moveObject ( s3, 10,3388.0126953125, -1774.4644775391, 33.05, 0, 340, 0 ) moveObject ( s4, 10,3392.0622558594, -1774.4644775391, 34.50, 0, 340, 0 ) moveObject ( s5, 10,3396.0676269531, -1774.4644775391, 35.95, 0, 340, 0 ) moveObject ( s6, 10,3400.0974121094, -1774.4644775391, 37.40, 0, 340, 0 ) moveObject ( s7, 10,3404.1044921875, -1774.4644775391, 38.85, 0, 340, 0 ) destroyElement ( m1 ) end if source == m2 then elseif isPedInVehicle(hitplayer) then local vehicle=getPedOccupiedVehicle(hitplayer) setElementPosition (vehicle , 328.11853027344, -3056.39453125, 635.34979248047 ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), Markery )
  12. i dont check this fuction stand first
  13. i dont steal
  14. not with server side ok i have try to make waht but i dont work pl shelp SERVER: addEvent "Killer" function blowVehicle(player) end triggerClientEvent(getRootElement(),"onkillTimer") addEventHandler("onMapStarting") CLIENT: afkTime = 3000 function funcInput ( key, keyState ) if ( keyState == "up" ) then if not isTimer(afktimer) then afktimer = setTimer(function() outputChatBox("afk") end,afkTime,1) end else if isTimer( afktimer) then killTimer ( afktimer ) end end end function bindTheKeys () bindKey("fire","both",clientAction) bindKey("next_weapon","both",clientAction) bindKey("previous_weapon","both",clientAction) bindKey("forwards","both",clientAction) bindKey("backwards","both",clientAction) bindKey("left","both",clientAction) bindKey("right","both",clientAction) bindKey("zoom_in","both",clientAction) bindKey("zoom_out","both",clientAction) bindKey("change_camera","both",clientAction) bindKey("jump","both",clientAction) bindKey("sprint","both",clientAction) bindKey("look_behind","both",clientAction) bindKey("crouch","both",clientAction) bindKey("action","both",clientAction) bindKey("walk","both",clientAction) bindKey("aim_weapon","both",clientAction) bindKey("conversation_yes","both",clientAction) bindKey("conversation_no","both",clientAction) bindKey("group_control_forwards","both",clientAction) bindKey("group_control_back","both",clientAction) bindKey("enter_exit","both",clientAction) bindKey("vehicle_fire","both",clientAction) bindKey("vehicle_secondary_fire","both",clientAction) bindKey("vehicle_left","both",clientAction) bindKey("vehicle_right","both",clientAction) bindKey("steer_forward","both",clientAction) bindKey("steer_back","both",clientAction) bindKey("accelerate","both",clientAction) bindKey("brake_reverse","both",clientAction) bindKey("radio_next","both",clientAction) bindKey("radio_previous","both",clientAction) bindKey("radio_user_track_skip","both",clientAction) bindKey("horn","both",clientAction) bindKey("sub_mission","both",clientAction) bindKey("handbrake","both",clientAction) bindKey("vehicle_look_left","both",clientAction) bindKey("vehicle_look_right","both",clientAction) bindKey("vehicle_look_behind","both",clientAction) bindKey("vehicle_mouse_look","both",clientAction) bindKey("special_control_left","both",clientAction) bindKey("special_control_right","both",clientAction) bindKey("special_control_down","both",clientAction) bindKey("special_control_up","both",clientAction) bindKey("enter_passenger","both",clientAction) bindKey("playerlist","both",clientAction) bindKey("screenshot","both",clientAction) bindKey("chatbox","both",clientAction) bindKey("radar","both",clientAction) bindKey("radar_zoom_in","both",clientAction) bindKey("radar_zoom_out","both",clientAction) bindKey("radar_move_north","both",clientAction) bindKey("radar_move_south","both",clientAction) bindKey("radar_move_east","both",clientAction) bindKey("radar_move_west","both",clientAction) bindKey("radar_attach","both",clientAction) end addEventHandler("onClientResourceStart",getRootElement(),bindTheKeys,Killer)
  15. thats mean ?
  16. Can any give me a easy afk killer
  17. function findPlayerByName (playerPart) for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end look you !!!!!!!!!!!!!
  18. is exist its not the bug
  19. it outputchatbox nothing
  20. i have all you !!!!!!! but it son part of script
  21. addCommandHandler ("use", function(player,command,Fun,FunPlayerName) if (findPlayerByName (FunPlayerName)) then local playerToFun = findPlayerByName (FunPlayerName) local Text = (Fun) outputChatBox (getPlayerName(player) .. " #FF0000is use ".. Text .." with " .. getPlayerName(playerToFun),getRootElement(),51,255,0,true) end end) whats Wrong
  22. now i fix a bit now came ...is Rank false elseif (string.find(message,"!stats")) and not (string.find(message," !stats")) then local playerCash = loadPlayerData (source,"cash") local playerPoints = loadPlayerData (source,"points") local playerRank = getElementData (source,"Rank") setTimer(outputChatBox,50,1,getPlayerName (source) .. " #ffd700has " .. tostring(playerCash) .. "$ and " .. tostring(playerPoints) .. " points! He is Rank " .. tostring(playerRank) function getPlayerRank (thePlayer) local Points = loadPlayerData (source,"points") if (Points <= 0 ) then setElementData(getLocalPlayer(), "Rank") "1.Newbie" elseif (Points <= 100 ) then setElementData(getLocalPlayer(), "Rank") "2.Guest" elseif (Points <=250 ) then setElementData(getLocalPlayer(), "Rank") "3.Player" elseif (Points <= 500 ) then setElementData(getLocalPlayer(), "Rank") "4.Known" elseif (Points <= 1000 ) then setElementData(getLocalPlayer(), "Rank") "5.Server friend" elseif (Points <= 2500 ) then setElementData(getLocalPlayer(), "Rank") "6.V.I.P" elseif (Points <= 5000 ) then setElementData(getLocalPlayer(), "Rank") "7.Faumos" elseif (Points <= 10000 ) then setElementData(getLocalPlayer(), "Rank") "8.Pro" elseif (Points <= 50000 ) then setElementData(getLocalPlayer(), "Rank") "9.Crazy" elseif (Points <= 1000000 ) then setElementData(getLocalPlayer(), "Rank") "10.Insane" end end
  23. I searsh for race DM Cockie TUG Maddness
  24. thx vearez and dragon
×
×
  • Create New...