Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. What do you mean by nothing? it has to output the occupation of the player.
  2. You can import the file with "import" button.
  3. Use this and see what it outputs: function onVehicleEnter ( thePlayer ) if ( not delses [ getElementModel ( source ) ] ) then return end if ( not getPlayerTeam ( thePlayer ) ) then return end outputChatBox ( "Occupantion: ".. tostring ( getElementData( thePlayer , "Occupation" ) ) ) if ( getTeamName ( getPlayerTeam ( thePlayer ) ) == "Civilian Workers" ) and ( getElementData( thePlayer , "Occupation" ) == "Delivery" ) then --if ( getTeamName ( getPlayerTeam ( thePlayer ) ) == "Delivery" ) then getNewdelLocation ( thePlayer ) end end addEventHandler ( "onVehicleEnter", root, onVehicleEnter )
  4. local marker = createMarker ( 206.8258972168, -1656.9514160156, 13.52540397644, "checkpoint" ) setTimer ( function ( ) for _, player in ipairs ( getElementsWithinColShape ( getElementColShape ( marker ), "player" ) ) do givePlayerMoney ( player, 5000 ) end end ,1000, 0 )
  5. So, you made a client side event and don't have a server side script to trigger it, that's weird.
  6. Castillo

    help

    Maybe you want to use "rx, ry, rz" instead? because that's what you defined: rx, ry, rz = getElementRotation ( theVehicle )
  7. -- client side: local mapName, placeText local screenHeight, screenWidth = guiGetScreenSize ( ) function deleteTimeHandler ( map, place ) removeEventHandler ( "onClientRender", root, renderText ) mapName, placeText = map, place addEventHandler ( "onClientRender", root, renderText ) end addEvent ( "onDeleting", true ) addEventHandler ( "onDeleting", getRootElement(), deleteTimeHandler ) function renderText ( ) dxDrawText ( mapName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default" ) end -- 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(), mapName, placeText ) outputServerLog( "INFO: Top time"..placeText.." from '" ..tostring(row.playerName).. "' (" ..tostring(row.timeText).. " in " ..mapName.. ") deleted by " .. getAdminNameForLog(player) ) end end end ) Try it.
  8. You mean add a image to a scoreboard column? if so, you can search on the forums, there has been a lot of topics related to this.
  9. If I understood correctly, if you use this: if ( getTeamName ( getPlayerTeam ( thePlayer ) ) == "Civilian Workers" ) and ( getElementData( thePlayer , "Occupation" ) == "Delivery" ) then it doesn't work?
  10. Castillo

    gang_system

    "getPlayersByGang" returns a table with players online from that gang, you must use "getPlayerGang" instead, also remove "gangName" from function name.
  11. You want to give money to every player inside the marker?
  12. Castillo

    Color

    Con eso ya es otra cosa, tenes que editar el script en: "killmessages/utils/textlib.lua".
  13. Con estas dos funciones: fadeCamera setCameraMatrix
  14. Castillo

    Color

    Con el scoreboard es facil, lo activas de las settings del recurso.
  15. All dx drawing functions require onClientRender event in order to work.
  16. Castillo

    VIP Problem

    Post the whole client side, the one you posted has missing trigger events.
  17. Castillo

    Primera vez

    Si, con eso lo podes hacer.
  18. Castillo

    VIP Problem

    And the server side?
  19. Castillo

    VIP Problem

    Post the whole script.
  20. Castillo

    Primera vez

    Podes guardar un dato al loguearte, si no tiene ese dato, le mostras lo que quieras y cambias el dato.
  21. Castillo

    Font changing

    It's because is not just dxDrawText.
×
×
  • Create New...