Jump to content

bartje01

Members
  • Posts

    208
  • Joined

  • Last visited

Everything posted by bartje01

  1. Hey all. Could someone tell me how to make planes fly trough the air with scripts or just give me the neede wiki links?
  2. I put this below the draw line in the client sided file: outputConsole ( "Public console message" ) Even that doesnt show up in the console
  3. It still has no effect :l No errors and also no draw in my screen
  4. Hmm. I don't really know what to do with that. Could you show me how to?
  5. Okay, I've got this now: server side: addCommandHandler( "deletetime", function( player, cmd, place ) if deleteTimeOnline == false then return outputChatBox("#33ccffDeleting toptimes disabled by default",player,255,255,255,true) end if not _TESTING and not isPlayerInACLGroup(player, g_Settings.admingroup) then return end if g_SToptimesManager and g_SToptimesManager.mapTimes then local row = g_SToptimesManager.mapTimes:deletetime(place) if row then g_SToptimesManager:updateTopText() local mapName = tostring(g_SToptimesManager.mapTimes.mapName) local placeText = place and " #" .. tostring(place) or "" triggerClientEvent ( "onDeleting", getRootElement(), "Hello World!" ) outputServerLog( "INFO: Top time"..placeText.." from '" ..tostring(row.playerName).. "' (" ..tostring(row.timeText).. " in " ..mapName.. ") deleted by " .. getAdminNameForLog(player) ) end end end ) client side: function deleteTimeHandler (mapName,placeText) local screenHeight, screenWidth = guiGetScreenSize() local mapName = tostring(g_SToptimesManager.mapTimes.mapName) local placeText = place and " #" .. tostring(place) or "" dxDrawText ( mapName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "deleting" ) end addEvent( "onDeleting", true ) addEventHandler( "onDeleting", getRootElement(), deleteTimeHandler ) How much did I fuck up here ?
  6. Hey guys. I 'm trying to show my deleting toptimes script showing up in a dxdrawtext instead of a simple output. I have this: addCommandHandler( "deletetime", function( player, cmd, place ) if deleteTimeOnline == false then return outputChatBox("#33ccffDeleting toptimes disabled by default",player,255,255,255,true) end if not _TESTING and not isPlayerInACLGroup(player, g_Settings.admingroup) then return end if g_SToptimesManager and g_SToptimesManager.mapTimes then local row = g_SToptimesManager.mapTimes:deletetime(place) if row then g_SToptimesManager:updateTopText() local mapName = tostring(g_SToptimesManager.mapTimes.mapName) local placeText = place and " #" .. tostring(place) or "" dxDrawText ( mapName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "deleting" ) outputServerLog( "INFO: Top time"..placeText.." from '" ..tostring(row.playerName).. "' (" ..tostring(row.timeText).. " in " ..mapName.. ") deleted by " .. getAdminNameForLog(player) ) end end end ) And this errors: [2013-02-19 13:55:49] ERROR: unzipped\race_toptimes\toptimes_server.lua:398: attempt to perform arithmetic on global 'screenHeight' (a nil value) [2013-02-19 13:55:59] ERROR: unzipped\race_toptimes\toptimes_server.lua:398: attempt to perform arithmetic on global 'screenHeight' (a nil value) Could anyone please help me?
  7. Nvm. It was the problem. Found the recourse. Thankyou
  8. Hey all. I've been running a race server of MTA for a while now. Suddendly it says: "Deleting toptimes disabled by default" when I try to remove one. How can I enable this?
  9. Oh and the cmd I had to add to the race_voting.lua addCommandHandler('33ff33x1', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map end )
  10. Hey guys. A while ago I had a problem with buying nextmaps. The maps didn't show up in my mapbrowser. Now they do. I had to change the gamemodename. Now there's another problem. When it says that I've setted the map and it took t he cash from me. The nextmap is not setted. What could be the problem?
  11. Hey everyone, Is anyone familiar with the race panel of Nextreme? It looks great but it causes insane lag. Does anyone know a fix to it? Probably a hard question if you don't know the panel. I still give it a shot though.
  12. Hey guys. Quick question. How can I remove the vote for next map in the race recourse?
  13. Ah, that didn't change anything That's right, I'm from the Netherlands. All the other functions are working fine. They work fine for everyone I usually have 10-20 players online. The only problem is the mapshop. I have this problem for a while now.
  14. I don't think this does any harm to the mapshop list. Cadu said I have to give ACL or something. What does he mean by that?
  15. I honestly don't know what you mean by the import script, but the mapshop script was included in a panel. Lord of destructions panel. This is the server.lua http://pastebin.com/4ed9aJWp Here the client.lua http://pastebin.com/SiBVKayQ I don't hope it costs to much time to look trough this.
  16. Thankyou, finally a worthy comment. I'll take look in the race recourse myself first. After that I'll try to contact him.
  17. Please don't respond if you don't know how to fix it
×
×
  • Create New...