Jump to content

Ludo

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by Ludo

  1. Yeah i know i can do that, but since my gamemode is custom and so it's not a default gamemode, I' d like to load the map directly by a .lua file, for example, when round ends, a new maps loads. So do you think i can open it just using the "start *map*" command?
  2. Hey guys, i' m building a gamemode and I' d like to do all the resources needed, stopping MTA's default ones. Since I'd like to do this, I was wondering if there is a function to load a WHATEVER.map file, or if it must be managed my mapmanager. I'd like to replace it, just to do everything by myself and maybe to learn something new in lua! Hope you can help me
  3. I guess you can' t, because the list of bindable keys is at this page: https://wiki.multitheftauto.com/wiki/Key_names, and as you can see, the key 'é' isn' t there.
  4. Ludo

    Scores script

    Ok the problem isn't to add scores, but to know who killed someone, because I don' t know if it is possible to do. Anyway now I' m going to search some function for that, but I can' t say i will find anything. I' ll let you know.
  5. Ludo

    Scores script

    What do you mean? Do you want to know who knocked off another one to the sea?
  6. Ludo

    Reset Stats

    function setPlayerStats(thePlayer) local account = getPlayerAccount(thePlayer) if account then setAccountData(account,"kills", 0) setAccountData(account,"headshots", 0) setAccountData(account,"deaths", 0) -- local ratio = string.format("%.2f", kills / deaths) Uhm? You don' t need to set the ratio if it is kills / deaths outputChatBox("[sTATS]".. getPlayerName(thePlayer) .." has just resetted his stats", getRootElement(), 50, 255, 0) end end addCommandHandler("cs", setPlayerStats) I guess you meant the player can set his stats to 0, else write here cause i didn' t get you.
  7. Bhe il ghostdriver ce l' ha l' 80% dei server race attuali, quindi non è esattamente copiare. Per il nos che cambia ho visto, infatti come ho scritto, IO personalmente non l' aiuto.
  8. When you open the admin panel, at the "server" tab there are buttons like "set game type", "set map name" etc. How can I do this with another script? For example I start my script and the gamemode auto-switches to "my gamemode". EDIT: I solved.
  9. Hi people, is there any way to set the current gamemode/map as in the admin panel? I tried to understand how by seeing admin panel functions but at the end I didn' t understand anything. Could anyone help me please?
  10. Non sono cose nuove se vengono copiate
  11. Ma infatti bastava dire che era il ghostrider ._. io convinto che fosse un nonsoche di complicato.. Comunque io per gli script non ti aiuto, dato che vuoi fare tutto come altri server, mi dispiace. EDIT: Stereo, per il countdown intende farlo come il server EPD, quindi vedi tu se vuoi aiutarlo a copiare..
  12. Ok ora ci do un' occhiata, comunque dimmi per la seconda.
  13. 1 - Per la prima cosa già ti ha risposto Hunterix 2 - Per la seconda on capisco che intendi, se intendi utilizzare lo shader di Nextreme allora è semplice, e penso che potresti arrivarci anche da solo, comunque nel caso ti aiutiamo noi.. 3 - Per la terza idem, non ho capito che intendi, l' hai visto in qualche server particolare? Se sì dimmelo così mi faccio un' idea di ciò che vorresti.
  14. marker1 = createMarker(-6558.2998046875, 2801.099609375, 706.09997558594 , "cylinder" , 29, 0, 0, 204, 0) marker2 = createMarker(-6177.599609375, 2761.2998046875, 691.09997558594 , "cylinder" , 1, 255, 0, 0, 255) marker3 = createMarker(-6176.8994140625, 2735.7998046875, 655.40002441406 , "corona" , 1, 0, 255, 0, 255) function MarkerHit(player, matchingDimension) car = getPedOccupiedVehicle(player) if car then speedx, speedy, speedz = getElementVelocity(car) x, y, z = getElementRotation(car) if matchingDimension then if source == marker1 then outputChatBox("It Was cylinder!") fixVehicle(car) addVehicleUpgrade(car, 1010) playSoundFrontEnd(player, 46) elseif source == marker2 then outputChatBox("It Was cylinder!") fixVehicle(car) addVehicleUpgrade(car, 1010) playSoundFrontEnd(player, 46) elseif source == marker3 then outputChatBox("It was corona!") newz = z + 360 setElementRotation(car, x, y, newz) setElementVelocity(car, speedx, speedy, speedz) end end end end addEventHandler ( "onMarkerHit", getRootElement(), MarkerHit ) This sets the speed that you have when you hit the marker I also removed some useless lines, for example: Why do you set speed when you hit a normal marker? You only need it if you change the vehicles' direction
  15. Ludo

    question

    Maybe if you tell us where, you may be more useful
  16. Ludo

    Snake GUIs

    You may use executeCommandHandler(commandName, thePlayer, [other arguments])
  17. Ludo

    question

    If i have understood... This may work, but you have to adapt the names with your gui names, anyway this way is done by using gridlist. theWindow = guiCreateWindow(240, 200, 550, 330, "", false) searchPlayer = guiCreateEdit(15, 25, 180, 20, "",false, theWindow) playersList = guiCreateGridList(10, 50, 500, 210, false, theWindow) players = getElementsByType("player") for n, player in ipairs(players) do playerRow = guiGridListAddRow(playersList) guiGridListSetItemText(playersList, playerRow, 1, getPlayerName(player):gsub("#%x%x%x%x%x%x", ""), false, false) guiGridListSetItemData(playersList, playerRow, 1, player) end function searchPlayers() playerString = guiGetText(searchPlayer) playerFound = false guiGridListClear(playersList) if playerString == "" then for k, player in ipairs(players) do playerRow = guiGridListAddRow(playersList) guiGridListSetItemText(playersList, playerRow, 1, getPlayerName(player):gsub("#%x%x%x%x%x%x", ""), false, false) guiGridListSetItemData(playersList, playerRow, 1, player) end else for k, player in ipairs(players) do if string.find(string.lower(getPlayerName(player):gsub("#%x%x%x%x%x%x", "")), string.lower(playerString), 1, true) then playerRow = guiGridListAddRow(playersList) guiGridListSetItemText(playersList, playerRow, 1, getPlayerName(player):gsub("#%x%x%x%x%x%x", ""), false, false) guiGridListSetItemData(playersList, playerRow, 1, player) playerFound = true end end if playerFound == false then playerRow = guiGridListAddRow(playersListt) guiGridListSetItemText(playersList, playerRow, 1, "No player has been found", false, false) guiGridListSetItemColor(playersList, playerRow, 1, 255, 0, 0) end end end addEventHandler("onClientGUIChanged", searchPlayer, searchPlayers)
  18. Devi dirmi cosa chiama questa funzione. Comunque; il buy map funziona?
  19. Postaci la funzione intera, oppure ovvio che non capiamo..
  20. Dicci la linea 3184 a cosa corrisponde, perchè mi sa che non ce l' hai postata
  21. Comunque è sbagliata la sintassi executeCommandHandler("asdbsaggf123122316dfhfd", thePlayer, thePlayer, mapName) -- Sbagliato executeCommandHandler("asdbsaggf123122316dfhfd", thePlayer, mapName) -- Esatto Facci sapere ora
×
×
  • Create New...