Jump to content

HunT

Retired Staff
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by HunT

  1. Installazione : Prima di tutto scarica il pacchetto e aprilo, troverai 3 risorse. 1: Stoppa il server - elimina la risorsa admin.zip e sostituiscila con quella che ti ho dato 2: Aggiungi la risorsa getIP in resource e dagli l ACL admin (object name="resource.getIP") 3: Elimina la risorsa scoreboard e sostituiscila con quella che ti ho dato,ricordati che devi eliminare anche i cache. 4: riavvia il server - entraci - fammi sapere
  2. Non ho skype e conosci il mio msn shift ti faccio un pacchetto e te lo mando in PM. Sono le risorse per il country dal mio vecchio server. Admin Panel (da sostituire con quello che hai) Script per il country Scoreboard (da sostituire con quello che hai + editare colore etc..) P.S. il country non funziona il local server (map editor e host game diciamo)
  3. Domani te la fixo io rilax
  4. Fps : https://community.multitheftauto.com/ind ... ils&id=450 Country : https://community.multitheftauto.com/ind ... ls&id=4019 Ti Bastava Cercare In Community Se hai problemi posta qui.
  5. I'm not sure but u can use : get set --XML
  6. Dicesi engineSetModelLODDistance = dare una visibilità maggiore ad un oggetto che in natura non ha. Il tuo problema e differente.Se superi un determinato numero di oggetti in una zona è logico che "lagga" o non si vedono gli oggetti. Puoi avere anche il pc della nasa ma se usi troppi oggetti in una zona e normale.
  7. Questo script funziona solo con gli oggetti nel .map e non con createObject Il tuo problema e solo una questione di fps credo.Se ci sono molti oggetti nelle vicinanze il tuo compiuter non fa in tempo a caricarli tutti e quindi cadi nel "profondo assoluto"
  8. Can use other event but the script work.
  9. ServerSide : exports.scoreboard:addScoreboardColumn('Level') addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","fps") end ) function setScoreLevel (thePlayer) local Level = exports.exp_system:getPlayerLevel ( thePlayer ) if Level == false then setElementData ( source, "Level", "0" ) else setElementData ( source, "Level", Level) end end addEventHandler ( "onPlayerSpawn", getRootElement(),setScoreLevel)
  10. u code is totally wrong u want give the cash ( $500 ) to players from "gen" team every one minute?
  11. HunT

    Set timeleft

    I Dont Know But Maybe This One Can Help U in race_client.lua function updateTime() local tick = getTickCount() local msPassed = tick - g_StartTick if not isPlayerFinished(g_Me) then g_dxGUI.timepassed:text(msToTimeStr(msPassed)) end local timeLeft = g_Duration - msPassed guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then startHurry() end end Edit : Anyway u can make the server side for check the hunter and trigger client with this : guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) -- need edit
  12. Maybe why the resource race_toptimes is not play?
  13. Server: function checkPermission(thePlayer) if ( hasObjectPermissionTo ( thePlayer, "command.kick", true ) ) then -- can u change the command triggerClientEvent (thePlayer, "openVipGui", getRootElement()) else outputChatBox ("Access denied", thePlayer, 255, 0, 0) -- can u change the reason end end function onResStart () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F1", "down", checkPermission ) -- can u change the bindKey end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), onResStart) Client : Vip = 0 function guiVip () if Vip==0 then Vip = 1 showCursor ( true ) TheWindow = guiCreateWindow --[[ -- All GUI Elements Here ]] elseif Vip==1 then Vip = 0 guiSetVisible(TheWindow, false) showCursor(false) end end Vip = 0 addEvent("openVipGui", true) addEventHandler("openVipGui", getResourceRootElement(getThisResource()), guiVip)
  14. Nice Upgrade and Job Now u can set +1000 every buy map. Example now "glue or run" the price is 5k,if I buy this map next time the price of this map is 6k. I buy again this map with the new price 6k. . . Next time the price is 7k. U understand? All maps 5k don't like It's only my opinion.
  15. HunT

    executeSQLQuery

    Sounds Good myonlake Omg after 45 min. i now know how work (maybe) Now i have make this : local thisResourceRoot = getResourceRootElement(getThisResource()) addEventHandler ( "onResourceStart", thisResourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS OwnersMaps (nameMap TEXT, ownerMap TEXT, priceMap INTEGER)") end) addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function (mapInfo) local name = mapInfo.name or "Unknown" if name then local tableMap = executeSQLQuery ( "SELECT * FROM OwnersMaps WHERE nameMap = '" ..name.. "'" ) if not tableMap or # tableMap == 0 then executeSQLQuery( "INSERT INTO OwnersMaps VALUES ('"..name.."','Waiting', 'Waiting')" ) end end end )
  16. HunT

    executeSQLQuery

    Re Open Discussion
  17. HunT

    executeSQLQuery

    Hi All. i never use this one I working for a new user panel and i want make the Map Shop (no nextmap) First . . the wiki say : Please use executeSQLQuery instead. Why?? i can't use executeSQLCreateTable executeSQLSelect etc.. ? Anyway The Table : function theTable () executeSQLCreateTable ( "mapOwner", "nameMap TEXT, ownerMap TEXT, priceMap INTEGER" ) end addEventHandler ( "onResourceStart", getRootElement(), theTable ) -- other event The Table is Ok (maybe) My question is : who i can get/set the parameter for edit? Tnx
  18. HunT

    Need Host

    Fine . . . Later buy one mount for test.
  19. HunT

    Need Host

    Tnx For Reply But who i can make the subAccount FTP only for one folder? i check the demo and option is only filemanager
  20. Hi hostel's. I need the host for server with this : FTP owner SubAccount FTP for map managers (access only in [maps]) Host from USA and no lag Backup create/import/download Access on .db files ( I remember one host without this) Now I have ogserver but I never use this one why is not good for me. Lag (why the host is Germany) and can't make the subAccount FTP Waiting reply tnx.
  21. Con questa script setti a tutti gli oggetti la distanza non a uno solo.
  22. HunT

    Refresh colours

    Yep but the problem is this : @ Memory : Because, when vehicle change or change map, colour of car and light doesn't save. Soluction : change the value random to file in admin panel.
  23. Client Side : function quandoParte () setTimer( visibilitaOggetti,200,1) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), quandoParte) function visibilitaOggetti () for i, oggetto in pairs ( getElementsByType("object") ) do local oggettiInQuestione = getElementModel ( oggetto ) engineSetModelLODDistance ( oggetto, 1000 ) -- puoi cambiare il valore 1000 (non esagerare senò lagga) end end Gli ho dato il setTimer per sicurezza ,potevo mettere il return ma e sprecato. Non l ho testato fammi sapare.
  24. HunT

    Refresh colours

    Maybe the problem is only the setting in race U no need "refresh color" with onMapStarting onPlayerPickUpRacePickup Refresh What? Open The admin Panel with P Tab Resource Search the race and press Setting Search vehicle colors Double Click and change the value random to file Easy.
×
×
  • Create New...