Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. golanu21

    Help

    someone have an idea ?
  2. golanu21

    Help

    i can't decomplier?
  3. golanu21

    Help

    How i decomplier a complier script ? (.luac)>.. i don't want to steal an script... i complier my script and i have delete the original script.. and i want to modify
  4. ok., so... i want to create a new chat..., where i want to type just players who have not played 5 h
  5. i want to create a chat for newbie....
  6. golanu21

    i need help

    how i creeate a newbie chat ? give me the codes for lua .. Thx
  7. golanu21

    Help

    what is the difference between server and client?
  8. golanu21

    Help

    function tren () veh = createVehicle(449, -2006.5, 125.69999694824, 28) ped = createPed(252, 0, 0, 0) warpPedIntoVehicle ( ped, veh ) setPedControlState ( ped, "accelerate", true) end addCommandHandler("caine", tren) ...Help pls... [17:06:11] ERROR: asrs\camera.lua:6: attempt to call global 'setPedControlState' (a nil value)
  9. golanu21

    Help

    I want to make a sumo server and i don't know how to make which arrives first at 300 to win and i need help
  10. golanu21

    Help

    How i make a ped to control an hunter ?
  11. golanu21

    HElp

    -- clientside function createKeypad() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 142,276 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) keypadWindow = guiCreateWindow(X,Y,Width,Height,"Keypad",false) addEventHandler("onClientGUIClick",keypadWindow,processKeypadClicks,true) guiWindowSetSizable(keypadWindow,false) keypadButton1 = guiCreateButton(13,68,37,36,"1",false,keypadWindow) keypadButton2 = guiCreateButton(53,68,37,36,"2",false,keypadWindow) keypadButton3 = guiCreateButton(93,68,37,36,"3",false,keypadWindow) keypadButton4 = guiCreateButton(13,108,37,36,"4",false,keypadWindow) keypadButton5 = guiCreateButton(53,108,37,36,"5",false,keypadWindow) keypadButton6 = guiCreateButton(93,108,37,36,"6",false,keypadWindow) keypadButton7 = guiCreateButton(13,148,37,36,"7",false,keypadWindow) keypadButton8 = guiCreateButton(53,148,37,36,"8",false,keypadWindow) keypadButton9 = guiCreateButton(93,148,37,36,"9",false,keypadWindow) keypadButtonAsterix = guiCreateButton(13,188,37,36,"*",false,keypadWindow) keypadButton0 = guiCreateButton(53,188,37,36,"0",false,keypadWindow) keypadButtonHash = guiCreateButton(93,188,37,36,"#",false,keypadWindow) keypadButtonExit = guiCreateButton(13,228,37,36,"Iesi",false,keypadWindow) keypadButtonEnter = guiCreateButton(53,228,37,36,"Foloseste",false,keypadWindow) keypadButtonClear = guiCreateButton(93,228,37,36,"Sterge",false,keypadWindow) keypadGridlistDisplay = guiCreateGridList(13,25,117,33,false,keypadWindow) guiGridListSetSelectionMode(keypadGridlistDisplay,2) guiSetAlpha(keypadGridlistDisplay,0.6) keypadLabelDisplay = guiCreateLabel(14,26,115,30,"Scrie codul.",false,keypadWindow) guiLabelSetColor(keypadLabelDisplay,255,000,000) guiLabelSetVerticalAlign(keypadLabelDisplay,"center") guiLabelSetHorizontalAlign(keypadLabelDisplay,"center",false) guiSetVisible(keypadWindow,false) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),createKeypad) function updateDisplay(text) if text then if tonumber(text) or text == "*" or text == "#" then guiSetText(keypadLabelDisplay,guiGetText(keypadLabelDisplay) .. text) else guiSetText(keypadLabelDisplay,text) end else guiSetText(keypadLabelDisplay,"") end end function processKeypadClicks(button,state) if button == "left" and state == "up" then if getElementType(source) == "gui-button" then triggerEvent("onKeypadButtonClicked",source,getElementData(keypadWindow,"keypadID")) end end end addEvent("onKeypadButtonClicked",false) addEventHandler("onKeypadButtonClicked",root, function(keypadID) if guiGetText(keypadLabelDisplay) == "Scrie Codul." or guiGetText(keypadLabelDisplay) == "Cod Invalid." then updateDisplay() end if guiGetText(source) == "Sterge" then updateDisplay() elseif guiGetText(source) == "Foloseste" then local code = guiGetText(keypadLabelDisplay) if code then triggerServerEvent("verifyKeypadCode",getLocalPlayer(),code,keypadID) end elseif guiGetText(source) == "Exit" then guiSetVisible(keypadWindow,false) updateDisplay("Scrie Codul.") showCursor(false,false) else updateDisplay(guiGetText(source)) end end ) addEvent("onKeypadVerificationSuccessful",true) addEventHandler("onKeypadVerificationSuccessful",root, function() guiSetVisible(keypadWindow,false) updateDisplay("Scrie Codul.") showCursor(false,false) end ) addEvent("onKeypadVerificationFailed",true) addEventHandler("onKeypadVerificationFailed",root, function() updateDisplay("Invalid Keycode.") end ) addCommandHandler("gate",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","GateKeypadCode") end) addEventHandler("onKeypadVerificationSuccessful",root, function(keypadID) local gate = getElementByID(keypadID) if gate then local x = tonumber(getElementData(gate,"newPosX")) local y = tonumber(getElementData(gate,"newPosY")) local z = tonumber(getElementData(gate,"newPosZ")) moveObject(gate,1500,x,y,z) x = tonumber(getElementData(gate,"posX")) y = tonumber(getElementData(gate,"posY")) z = tonumber(getElementData(gate,"posZ")) setTimer(moveObject,5000,1,gate,1500,x,y,z) end end ) how i make this script woork just in a coolshape?
  12. golanu21

    Help

    function sar () hi = createPed(81, 1565.4000244141, -1359.0999755859, 329.70001220703, 262.003204) fadeCamera(source, true, 5) setCameraMatrix(source, 1560.5, -1358.6999511719, 332.39999389648, 1565.4000244141, -1359.0999755859, 329.70001220703) setPedAnimation(hi, "ped", "Jump_Roll") addEventHandler("onPlayerJoin", getRootElemnt(), sar) what is not OK ?
  13. golanu21

    HELP

    Nothing happening DEBUGSCRIPT 3 NOTHING
  14. golanu21

    HELP

    function lg () setTimer(setCameraMatrix, 118706, 1, 870.88189697266 , -1684.6002197266 , 124.037109375 , 792.12969970703 , -1746.2052001953 , 122.32963562012 ) setTimer(setCameraMatrix, 118742, 1, 870.60113525391 , -1684.5659179688 , 124.03369140625 , 791.84893798828 , -1746.1708984375 , 122.32621765137 ) setTimer(setCameraMatrix, 118778, 1, 870.32037353516 , -1684.5316162109 , 124.0302734375 , 791.56817626953 , -1746.1365966797 , 122.32279968262 ) end addEventHandler("onPlayerJoin", lg) What i need to work ? [14:30:32] WARNING: cmss\server.lua:2458: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function]
  15. I need a example mission : Kill 3 zombies and rewards 1000$ please idk with zombies
  16. Please give me an example. A mission : What to do : kill 1 ped and rewards: 1000$ please i need help
  17. golanu21

    HELP

    marker = createMarker( 2161.03442, -1620.84192, 14.08922, "checkpoint", 4.0, 0, 0, 255, 255 ) blip = createBlip( 2161.03442, -1620.84192, 14.08922, 12, 2, 255 ) function hi() destroyElement( marker ) outputChatBox( "BOT:DUTE UNDE ITI ARAT CA IEI BATAIE" ) b1 = createBlip( 2071.20850, -1556.17798, 13.41725, 0, 2, 255, 0, 0, 255 ) mk1 = createMarker( 2071.20850, -1556.17798, 13.41725, "cylinder", 4.0, 0, 0, 255, 255 ) end addEventHandler ( "onMarkerHit", marker, hi ) function si(player) outputChatBox( "BOT:BRAVO NICULE" ) givePlayerMoney( player, 1000 ) destroyElement( b1 ) destroyElement( mk1 ) end addEventHandler( "onMarkerHit", mk1, si) [15:53:55] WARNING: cmss\server.lua:18: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
  18. golanu21

    HELP

    marker = createMarker ( 2161.03442, -1620.84192, 14.08922, "checkpoint", 4.0, 0, 0, 255, 255 ) mk1 = createMarker ( 2071.20850, -1556.17798, 13.41725, "checkpoint", 4.0, 0, 0, 255, 0 ) blip = createBlip ( 2161.03442, -1620.84192, 14.08922, 12, 2, 255 ) function hi() destroyElement (marker) outputChatBox( "BOT:DUTE UNDE ITI ARAT CA IEI BATAIE" ) mk1 = createMarker ( 2071.20850, -1556.17798, 13.41725, "checkpoint", 4.0, 0, 0, 255, 255 ) b1 = createBlip ( 2071.20850, -1556.17798, 13.41725, 0, 2, 255, 0, 0, 255) setMarkerColor ( mk1, 0, 0, 255, 255) end addEventHandler ( "onMarkerHit", marker, hi ) function si() outputChatBox ( "BOT:BRAVO NICULE") givePlayerMoney ( player, 1000) distroyElement (b1) distroyElement (mk1) end addEventHandler ( "onMarkerHit", mk1, si) HELP [15:06:30] WARNING: cmss\server.lua:15: Bad argument @ 'givePlayerMoney' [15:06:30] ERROR: cmss\server.lua:16: attempt to call global 'distroyElement' (a nil value)
  19. local si = createColRectangle ( 2428.852518192369, -1725.9034104254022, 15, 15 ) function hi () outputChatBox ( "You enter in mission" ) end addEventHandler("onColShapeHit", si, hi) i make this simple script and don't work IDK why i try to see the problem with /debugscript 3 but .... nothing
  20. golanu21

    I need help

    I want to make a mission. EX: Kill 3 zombies and the rewards 3000 $ Please help i am new in community
×
×
  • Create New...