Jump to content

bartje01

Members
  • Posts

    208
  • Joined

  • Last visited

Details

  • Gang
    none

bartje01's Achievements

Chump

Chump (17/54)

0

Reputation

  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. Very sure
  4. It still has no effect :l No errors and also no draw in my screen
  5. Hmm?
  6. Hmm. I don't really know what to do with that. Could you show me how to?
  7. 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 ?
  8. 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?
  9. Nvm. It was the problem. Found the recourse. Thankyou
  10. Nope,I didn't .
  11. Jheez. nobody knows this?
  12. Well?
  13. 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?
  14. 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 )
  15. 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?
×
×
  • Create New...