Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. yes, ty varez And i use serverFFS host, i think don't need to unblock ports <_<
  2. How i can made just one res downloadable from web? Yes i know... there is the wiki page, i've tried but give me Error download http ecc... Pls help!
  3. #Paper

    XML Scripting

    I have tried to create a specia of system in order to store of the points: It must create a species of rows thus xml: I, with l' aid of the wiki I have created this script… but it does not work! -- LOCALS -- local xmlFile = xmlLoadFile ( "data.xml" ) local node = xmlCreateSubNode ( xmlFile, ..getPlayerName().. ) local success = xmlNodeSetValue ( node, ..DriftPointsNow.. ) -- END LOCALS -- function ( makeuserdata ) if success then xmlSaveFile ( xmlFile ) end end end addEventHandler( "onPlayerJoin", getRootElement(), makeuserdata ) What's wrong? P.S: And how I can make that every the 5 second scripts rewrites l' xml with the new number of points? P.P.S: Sry for my bad english <_<
  4. How i can add a collumn to DxScoreboard?
  5. #Paper

    LUA Function

    there is a serverside function for get players num?
  6. #Paper

    LUA Function

    Because the wiki don't work, what is the function to get the num of players there are in server?
  7. #Paper

    Freeroam gui

    in what script i should add thi part? If i add this code the freeroam gui be usable only for admins?
  8. #Paper

    Freeroam gui

    How to make the freeroam gui usable only for admins?
  9. #Paper

    1 Question

    I know, the GM race to set the script to false ghostmode in all maps, I put that script to do the same with the respawn?
  10. #Paper

    1 Question

    Is there a scipt that sets all the respawn maps to "none" that disables it, if there is please you link? There would be very grateful ^ _ ^
  11. This time this script is make by me <_< It's a script for the water level, bat don't work! >_< Server Side: function Water() setWaterLevel ( theWater, 30.229042053223) end Client Side: function Water() setWaterLevel ( theWater, 30.229042053223) end What is the error(s)?????
  12. I am looking for a scripter, to take place to future online server 24/24 7/7. Contact me on skype: skiper964 I am willing to pay max 5 euros/dollars for month.
  13. I have maked this scripts but don't works, but no errors are showed in consolle: function displayMainPlate() guiCreateStaticImage(0.68, 0, 0.32, 0.08333, 'logo.png', true, nil) NavmanPlate = guiCreateStaticImage(0, 0.751666666666, 0.22125, 0.248333333333, 'radar.png', true, nil) guiMoveToBack( NavmanPlate ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),displayMainPlate) Another script: local checkTime = 45 -- in seconds gRootElement = getRootElement() gLocalPlayer = getLocalPlayer() local afkTimer = nil local keyAlreadyHit = false local function checkAFK() afkTimer = nil if (not keyAlreadyHit) then triggerServerEvent("onPlayerAfk", gLocalPlayer) else afkTimer = setTimer(checkAFK, checkTime * 1000, 1) end keyAlreadyHit = false end addEventHandler("onClientRender", gRootElement, function() for k, v in pairs{ "forwards", "backwards", "left", "right" } do if (getControlState(v)) then keyAlreadyHit = true end end end) addEvent("onClientAfkStartTimer", true) addEventHandler("onClientAfkStartTimer", gRootElement, function() if (afkTimer) then killTimer(afkTimer) afkTimer = nil end afkTimer = setTimer(checkAFK, checkTime * 1000, 1) keyAlreadyHit = false end) addEvent("onClientAfkStopTimer", true) addEventHandler("onClientAfkStopTimer", gRootElement, function() if (afkTimer) then killTimer(afkTimer) afkTimer = nil end keyAlreadyHit = false end) local function keyHit() keyAlreadyHit = true end for k, v in pairs{ "backspace", "tab", "lshift", "rshift", "lctrl", "rctrl", "lalt", "ralt", "pause", "capslock", "enter", "space", "pgup", "pgdn", "end", "home", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "insert", "delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_dec", "num_div", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F9", "F10", "F11", "F12", "scroll", ";", "=", ",", "-", ".", "/", "'", "[", "\\", "]" } do bindKey(v, "down", keyHit) bindKey(v, "up", keyHit) end Other script: function hunterAlert(mapInfo, pickupID, pickupType, vehicleModel) info = mapInfo.modename if info == "Destruction derby" then if pickupType == "vehiclechange" then if vehicleModel == 425 then outputChatBox(" "..getPlayerName(source).." #ff0000has #99ff00a #00ff99hunter! #8899ffYOU #99ff00WILL #8822ffDIE!",getRootElement(),25,125,225) end end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterAlert)
  14. How "totally" I have used the new programm to create the gui out by MTA
  15. What is the error? function remotePlayerJoin() function build_main() function showClientImage() guiCreateStaticImage( 10, 10, 501, 181, "logo.png", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) local gui = {} gui._placeHolders = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 527, 587 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Form", false) guiWindowSetSizable(gui["_root"], false) gui["agree"] = guiCreateButton(10, 525, 511, 51, "Accetto, voglio giocare in questo server!", false, gui["_root"]) if on_agree_clicked then function changeVisibility ( ) guiSetVisible ( myWindow, false ) end end addEventHandler("onClientGUIClick", gui["agree"], on_agree_clicked, false) end gui["plainTextEdit"] = guiCreateMemo(10, 215, 501, 301, "Benvenuto in [MSP]Clan server, ecco un paio di regole che devi ASSOLUTAMENTE seguire:\n\n- E' assolutamente vietato usare cheats.\n\n- E' vietato insultare gli altri giocatori, in quanto loro sono in questo server per divertirsi, e non per ricevere insulti.\n\n- E' vietato insultare gli admin, in quanto loro sono qui per divertirsi e per vegliare sul server, affinchè la prima regola, in primis, e tutte le altre non vengano infrante.\n\n- E' vietato spammare o flooddare nella ChatBox del server, così facendo provochi solamente del lag inutile, e il possibile crash del server, e se questo accade, non si sà quando un admin che può accedere all'host del server potrà di nuovo avviarlo.\n\n- E' vietato spammare in chat link a sitiweb pornografici, personali e a scopo di lucro, se siete autorizzati dallo staff potete farlo, ma sempre con parsimonia.\n\nIl fatto che un admin non sia presente nel server non vuol dire che le regole possono essere infrante, in quanto nel server è presente il comando /report per segnalare players o bug del server.\n\nUn saluto da SuN! ^_^", false, gui["_root"]) guiMemoSetReadOnly(gui["plainTextEdit"], true) return gui, windowWidth, windowHeight end end addEventHandler("onClientPlayerJoin", getRootElement(), remotePlayerJoin)
×
×
  • Create New...