-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
Write full error, saying "error on line 318" is not useful. Edited: Ok you edited it, here is: function RaceMode:onPlayerWasted(player) if not self.checkpointBackups[player] then return end TimerManager.destroyTimersFor("checkpointBackup",player) if RaceMode.getMapOption('respawn') == 'timelimit' and not RaceMode.isPlayerFinished(source) then -- See if its worth doing a respawn local respawnTime = RaceMode.getMapOption('respawntime') or 10000 if (type(respawnTime) ~= "number") then respawnTime = 10000 end if self:getTimeRemaining() - respawnTime > 3000 then -------line 317 error Countdown.create(respawnTime/1000, restorePlayer, 'You will respawn in:', 255, 255, 255, 0.25, 2.5, true, self.id, player):start(player) end if RaceMode.getMapOption('respawntime') >= 5000 then TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end if g_MapOptions.respawn == 'none' then removeActivePlayer( player ) if getActivePlayerCount() < 1 and g_CurrentRaceMode.running then RaceMode.endMap() end end end
-
iMr.3a[Z]eF, don't post when you don't have any idea to fix. Ontopic: Sorry, i don't know whats time default. if self:getTimeRemaining() - (respawnTime or 10000) > 3000 then
-
function meChat(message, messageType) if (messageType == 1) then cancelEvent() getCSD() local px, py, pz = getElementPosition(source) for _, v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,shoutRadius) then outputChatBox(csd[getElementData(source,"player_ID")].name .. "#cf4ca1 *" .. message .. "*", v, 255, 150, 150, true) end end end end addEventHandler("onPlayerChat", getRootElement(), meChat)
-
No, show your code if you want use that function.
-
function removeColorCoding ( name ) return not type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end _getPlayerName = getPlayerName function getPlayerName(player) return removeColorCoding(_getPlayerName (player)) end On your code, I don't see there is problem. Show your code how are using that function.
-
carhouses = 5 for i=1, carhouses, 1 do _G["carhousetable"..i.."k"] = "blabla" end outputChatBox(carhousetable1k) Not tested yet.
-
Report to owner script, we don't know about your script. You shouldn't create topic again.
-
You can make own custom pickup, its not hard to do.
-
Why should we fix your script with 2800+ lines? That topic is NOT helpful. And i'm sure you didn't made of them.
-
localPlayer is same as getLocalPlayer(), only in client-side.
-
They're all real. Playerlist is bugged, and should be fixed.
-
Change "onPlayerJoin" to "onPlayerLogin".
-
Try change line 53-57 to: for i,v in ipairs(burjObjects) do local newObject = createObject(unpack(v)) setElementParent(newObject, burjKhalifa) end
-
If chatbox has limit, then you can make new own chatbox.
-
Van valaki aki jól scriptel és tud magyarul?
Cadu12 replied to Minotaur's topic in Hungarian / Magyar
In this section, speak in English only. -
Well, can you read what 50p said? Also, I found answer for your problem: https://forum.multitheftauto.com/viewtop ... 87#p515469 Your script should be server-side.
-
Missing "end" at 14(or 16) line.
-
function isServer() return triggerClientEvent ~= nil end function isClient() return triggerServerEvent ~= nil end function getScriptLocation() return isServer() and "Server" or "Client" end if getScriptLocation() == "Client" then -- here client else -- here server end I got it from Race resource.
-
You can make your own map-manager to disable TXD, DFF and outputChatBox.
-
Oh, yes, I forget write "Vehicle" that global. You're welcome.
-
function generateZufallCarID() vehicleID = math.random(399, 609) while disallowed[vehicleID] do vehicleID = math.random(399, 609) end return vehicleID end
