Jump to content

~DarkRacer~

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by ~DarkRacer~

  1. Thanks but how i can get the next map's name?? because i want to make a dxText that tells you what's the next map is. function getNextMap() if (g_ForcedNextMap) then return getMapName( g_ForcedNextMap ) else return "Random" end end g_ForcedNextMap is Undefined Before!
  2. Thanks but how i can get the next map's name?? because i want to make a dxText that tells you what's the next map is.
  3. How can i disable the vote system in the race and make it like whenever the map finish it start a new random map???
  4. can i use hex color codes for coloring the label?
  5. local posLabel, posLabelShadow = createShadowedLabelFromSpare(posLeftDistance, y, 20, labelHeight, tostring(self.position) .. ')', 'right') -- and local playerLabel, playerLabelShadow = createShadowedLabelFromSpare(nameLeftDistance, y, 250, labelHeight, name .. time) this part add the dead player?
  6. i saw the file but i can't see the part that display the dead players
  7. i meant is there any file i can edit on or i just make new script? Maybe this: Your MTA folder/server/mods/deathmatch/resources/[gameplay]/deathmessages but this is only for Play mode not Race.. take a look: local root = getRootElement() addEventHandler("onPlayerWasted", root, function (ammo, killer, weapon, bodypart) local r, g, b = getColorFromString(string.upper(get("color"))) local message if killer then if killer ~= source then local killerType = getElementType(killer) if killerType == "player" then message = getPlayerName(killer).." killed "..getPlayerName(source).."." elseif killerType == "vehicle" then message = getPlayerName(getVehicleController(killer)).." killed "..getPlayerName(source).."." if get("show_vehiclename") then message = message .. " ("..getVehicleName(killer)..")" end end else message = getPlayerName(source).." committed suicide." end end if not message then message = getPlayerName(source).." died." end if weapon and get("show_weapon") then local weaponName = getWeaponNameFromID(weapon) if weaponName then message = message.." ("..weaponName..")" end end if bodypart and get("show_bodypart") then local bodypartName = getBodyPartName(bodypart) if bodypartName then message = message.." ("..getBodyPartName(bodypart)..")" end end outputChatBox(message, root, r, g, b) end )
  8. i meant is there any file i can edit on or i just make new script?
  9. I want to add some colors and i want to change the font of the death messages that appears on the left side of the screen, how would i do that?
  10. Thanks it's working, but can i make that if the player not found do not display "!cash" on chat.
  11. This is totally wrong and missed up! i said : "i don't want to use the command handler." and i want to view other player's money like this: !cash [the player name that i want to show his money in chat]
  12. Hey Guys, this script shows in chat the money of the player who write in chat !cash or !money. i want to make the players can check other players money like: !cash [playerName]. i don't want to use the command handler. How can i do that? Server: addEventHandler("onPlayerChat", getRootElement(), function(msg) if (msg == "!money" or msg == "!cash") then cash = getPlayerMoney(source) outputChatBox("#0188ff"..getPlayerName(source).." Has #ff8801$"..cash, getRootElement(), 255,255,255,true) end end )
  13. Thank you so much i've been searching for this map and i couldn't find it.. now i'm downloading
  14. ~DarkRacer~

    Help Please

    so i must protect my firewall to protect my server?
  15. Thank you, the second way is better. i don't know why didn't i think about that earlier !
  16. i want to make if a player was the last survival in race then he will get an amount of money.
  17. ~DarkRacer~

    Help Please

    is there anyway i can protect my server from hackers? yesterday my server got hacked from some stupid guys, they deleted my RACE folder in [GAMERMODS] and i've lost some maps and some mods i can't ban them cause i don't know their ip. this is the 3rd time i got hacked
  18. ~DarkRacer~

    HELP

    How can i get the player who hit a marker?? Code: (see line 8 ) -- Server Side! local marker1 = createMarker(-2421, -608, 131, "cylinder", 2, 255, 0, 0, 255) local accountname = nil addEventHandler("onMarkerHit", marker1, function() accountname = getAccountName (getPlayerAccount( thePlayerWhoHitMarker1 )) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then outputChatBox("Admin!") end end )
  19. The only way to learn LUA is by following the Wiki.
  20. why should i use onClientRender. where the hell should i put the render event anyway?
  21. i can't make the image to dxDrawImage if the the hideGUIComponents doesn't work. is there any function make the dx image appear or disappear?? please help
  22. There's a function in "Race_Client.lua" called "hideGUIComponents" or "showGUIComponents" does it work with dxDrawImage?
×
×
  • Create New...