Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. try this, addEventHandler( "onPlayerWasted", getRootElement( ), function() triggerClientEvent (source,"playerw", source) end )
  2. Castillo

    GridList

    i've made a map shop system long ago, here is the map list function. function mapsList() local resourceTable = getResources() for resourceKey, resourceValue in ipairs(resourceTable) do local name = getResourceName(resourceValue) local type = getResourceInfo ( resourceValue, "type" ) if type == "map" then triggerClientEvent ( "sendMaps", getRootElement(), name) else cancelEvent() end end end
  3. lol, you're creating a column every time a player joins, also that function i think needes the xml files from admin panel.
  4. are you fucking kidding me?! you don't even know where to install a resource, don't you? go read the server manual, i won't reply in this topic anymore. https://wiki.multitheftauto.com/wiki/Server_Manual
  5. Castillo

    goto line

    oh, i suposed because i did goto line 100000 and worked , so how i can make what you say?
  6. i don't think someone will waste weeks maybe months scripting for free just for fun, i done it but that is for my own game mode btw: congratz about being a moderator varez
  7. tell me, where did you put that code?
  8. you're asking for an scripter huh? then you will have to wait much if you don't pay
  9. isPedDead is only server side, if you got to make it client side then there is other function called isPlayerDead, https://wiki.multitheftauto.com/wiki/IsPlayerDead
  10. Castillo

    goto line

    i've tried this, guiMemoSetCaretIndex(script_memo,tonumber(line)) but when i set to example: line 50 it doesn't sends me there but at same time when i do line 1 it moves to start of script o_O
  11. no, i mean i voted this time not the past one.
  12. i copied a small code from race_starter_pack and added to set experience on DD/DM win function DestructionMoney() local alivePlayers = getAlivePlayers() if info == "Destruction derby" then if #alivePlayers == 1 then local playername = getPlayerName(alivePlayers[1]) outputChatBox("*Wins: "..playername.." took $2500 for surviving!",getRootElement(),255,255,0) setElementData(alivePlayers[1] ,"exp",tonumber(getElementData(alivePlayers[1],"exp"))+5) end end end addEventHandler("onPlayerWasted",gtRootElement(),DestructionMoney) try it (not tested)
  13. I think i voted long ago (i voted since it says i did )
  14. you can't even understand what i post.. how can i help you if you don't understand me?
  15. omfg!!!!!!! you just don't understand how it works, you have a script to win money when win a DD/DM or race?! If yes then post it here.
  16. yes, but you must have scripting knowlage to create it.
  17. use the example of killing, function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~=source) then local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) else setElementData(killer,"exp",0) end end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) now go kill players and you will raise levels.. I think you don't get how it works, levels[0] = {"Test 0", "10"} levels[0] = level number Test 0 = level name or whatever you want example: Level 1 10 = experience required to reach that level
  18. line 24 = addEventHandler( "onElementDataChange", rootElement,
  19. lol? you gotta be kidding me, you just pasted my post.. can you show us your CODE where you implement my system?
  20. dukenukem, this uses sqlite not mysql, the database is created when resource starts and when a player logs-in he will be added with level 1 or 0 (i don't remember) and when the element data changes he will raise up, i made an example of how to use it with onPlayerWasted event and works fine, he may edited it or not using it right. btw, could mremin show us the code he use to make it work?
  21. Castillo

    Maps

    don't be lazy, find at community someone else uploaded lot of maps once.
  22. Castillo

    guiShow

    lol, he doesn't understand what do you mean, maybe waiting to get it done already by us
  23. Castillo

    goto line

    i open the file with fileOpen then i use fileRead and trigger it to client then guiSetText to the memo.
  24. Castillo

    X - Y - Z

    what i get of what he asking for is, when a vehicle jumps and the vehicle flips he wants to detect that i guess.
  25. duke nukem game mode o_O, you will need many things like models good luck with it, i love duke nukem too.
×
×
  • Create New...