-
Posts
455 -
Joined
-
Last visited
Everything posted by Sex*
-
Doesnt work..(that one i made...)
-
So something like this? function RaceMode:updateRanks() -- Make a table with the active players local sortinfo = {} for i,player in ipairs(getActivePlayers()) do sortinfo[i] = {} sortinfo[i].player = player sortinfo[i].checkpoint = getPlayerCurrentCheckpoint(player) sortinfo[i].cpdist = distanceFromPlayerToCheckpoint(player, sortinfo[i].checkpoint ) end -- Order by cp table.sort( sortinfo, function(a,b) return a.checkpoint > b.checkpoint or ( a.checkpoint == distanceFromPlayerToCheckpoint(player, sortinfo[i].checkpoint ) or 0 end )
-
So something like this? Server: function showHome () local countryCode = exports["admin"]:getPlayerCountry(source) setElementData(source,"country",countryNames[countryCode], countryCode) triggerClientEvent ( "onPlayerJoinTest", getRootElement(), source, tostring ( countryNames [ countryCode ] ) ) end addEventHandler("onPlayerJoin",getRootElement(),showHome) Client: addEventHandler("onPlayerJoinTest", true ) addEventHandler("onPlayerJoinTest", getRootElement(), function() AddingS("join", getPlayerName(thePlayer).."#FFFFFF joined #FF4000[#ffffff"..countryNames.."#FF4000]") end )
-
I dont understand:(
-
But how to fix it then? EDIT: So i add something like this? g_Checkpoints = nil
-
Then two people on the server or more i have these errors: 198 line function: function RaceMode:updateRanks() -- Make a table with the active players local sortinfo = {} for i,player in ipairs(getActivePlayers()) do sortinfo[i] = {} sortinfo[i].player = player sortinfo[i].checkpoint = getPlayerCurrentCheckpoint(player) sortinfo[i].cpdist = distanceFromPlayerToCheckpoint(player, sortinfo[i].checkpoint ) end -- Order by cp table.sort( sortinfo, function(a,b) return a.checkpoint > b.checkpoint or ( a.checkpoint == b.checkpoint and a.cpdist < b.cpdist ) end ) The 198 line: ( a.checkpoint == b.checkpoint and a.cpdist < b.cpdist
-
In every map has some scripts. So its not possible that way? EDIT: I dont understand that table thing.
-
Well, I would be happy if u give me the events, functions that i can do that. Because idk the functions or events.
-
Well FFS doesnt download maps into my computer. You are wrong. This server send a packet of all map data and then create an objects on client side. Well how it doesnt download the maps as clinet then? But how to do it then?
-
Well FFS doesnt download maps into my computer.
-
So will anyone tell me what latent functions i need and how to use them?
-
Ah i want chatbox not to cancel the map starting...
-
So the error is the event handlers?
-
But why did it crash my script then??
-
Like this? It crashed this way btw. ------------------------------- addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function ( ) if getResourceInfo(res, "type") == "map" then cancelEvent() end ) --------------------------
-
In what line did i forgot that?
-
Script it. Do you actaully have permissions to use/edit this resource? Lol, why dont you ask everyone about that"Do they have rights". Like TFF has the same edited panel that its much better and also the save system is remaked, ask them then "Do you have a right?"
-
Well, wtf is wrong with this then? Crashed my script. addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function ( ) if getResourceInfo(res, "type") == "map" then cancelEvent() end
-
Nah its not about the TIMERS!! The original save system sucks. Originally its msql(or what was it), and its with getPlayerData and SetPlayerData. Make that account based like getAccuntData and setAccountData and remove that msql saving and it should be unlaggy. But i think its easier to make a new one...
-
And would you give me the event names that i need to make these kinds of downloads?
-
So i want to make a script that wont download the maps into clients computer so it saves bandwidth and "Waiting for Laggers" is no longer needed. Just like FFS, because my internet lags as hell and it takes alot of bandwidth also... So what functions do i have to use to make this possible?
