-
Posts
130 -
Joined
-
Last visited
Everything posted by ~DarkRacer~
-
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!
-
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.
-
How can i disable the vote system in the race and make it like whenever the map finish it start a new random map???
-
can i use hex color codes for coloring the label?
-
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?
-
i saw the file but i can't see the part that display the dead players
-
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 )
-
i meant is there any file i can edit on or i just make new script?
-
and what file to edit ?
-
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?
-
Thanks it's working, but can i make that if the player not found do not display "!cash" on chat.
-
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]
-
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 )
-
Thank you so much i've been searching for this map and i couldn't find it.. now i'm downloading
-
so i must protect my firewall to protect my server?
-
Thank you, the second way is better. i don't know why didn't i think about that earlier !
-
i want to make if a player was the last survival in race then he will get an amount of money.
-
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
-
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 )
-
The only way to learn LUA is by following the Wiki.
-
why should i use onClientRender. where the hell should i put the render event anyway?
-
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
-
There's a function in "Race_Client.lua" called "hideGUIComponents" or "showGUIComponents" does it work with dxDrawImage?
