Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can either cancel the ped damage ( onClientPedDamage event ) with the function: cancelEvent, or you can use my resource to do this: https://community.multitheftauto.com/ind ... ls&id=5195
  2. The onClientMarkerHit event will also be triggered with server side created markers.
  3. We don't make things for you here, you must try to make it, even if it doesn't work, then you post it here and we try to help you.
  4. I don't personally use much public resources ( just the basic: scoreboard, killmessages, and some others ), but I think you should remake it so others can actually use it, because installing MySQL is almost mission impossible for some people.
  5. You must use the XML functions to load all the files: xmlLoadFile xmlNodeGetChildren xmlNodeGetAttribute Then store on a simple lua table and send it to the client side with: triggerClientEvent Then you add the event client side and add the rows: addEvent addEventHandler guiGridListAddRow guiGridListSetItemText
  6. You want to load all the files listed in the meta.xml of a resource into a GUI grid list?
  7. I had this problem on my server, players couldn't hurt others because they didn't see the attacker's weapon at all, but the attacker did see it on his screen. How do you trigger: "givetheguns"?
  8. Do you mean it doesn't teleport you to the interior? How are we going to help if you don't post your script?
  9. I'm not exactly sure, it may return a table, but empty. You can check if it exists with this: local result, numrows, errmsg = dbPoll ( query, -1 ) if ( not result or numrows == 0 ) then -- Doesn't exist end
  10. Un consejo, TigreBlanco, si de verdad tenes intenciones de conseguir dinero vendiendo scripts, deberias aprender mucho mas, con simples scripts no te van a contratar ( no te ofendas ). Tema cerrado.
  11. Castillo

    Ban

    Ask the server admins to unban you, we can't do anything.
  12. I think so, I never used it though.
  13. No, if I'm right that does not exist, maybe this: INSERT OR IGNORE INTO
  14. Yes, if the name was not found on the server, it'll return false.
  15. Try this: http://pastebin.com/ubu5ns9q
  16. -- server side: addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "M", "down", turnEngine ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "M", "down", turnEngine ) end end ) engineStarting = { } function turnEngine ( thePlayer, key, keyState ) if ( key ~= "m" or keyState ~= "down" ) then return end if ( not isPedInVehicle ( thePlayer ) ) then return end local vehicle = getPedOccupiedVehicle ( thePlayer ) if ( thePlayer ~= getVehicleOccupant ( vehicle, 0 ) ) then return end if ( engineStarting [ thePlayer ] ) then return end if getVehicleEngineState ( vehicle ) then setVehicleEngineState ( vehicle, false ) else if ( getElementData ( vehicle, "tank" ) > 0.0 ) then triggerClientEvent ( thePlayer, "playSound", thePlayer, 'engine.wav' ) engineStarting [ thePlayer ] = true setTimer ( startEngine, 1500, 1, vehicle ) else triggerClientEvent ( thePlayer, "playSound", thePlayer, 'engineNoFuel.wav' ) end end end -- client side: addEvent ( "playSound", true ) addEventHandler ( "playSound", root, function ( path ) playSound ( path ) end )
  17. Castillo

    Help - Logo

    I tested it and works perfectly fine.
  18. Castillo

    Help - Logo

    So, the third time you use the command, it creates the image again, even when it's already there?
  19. Whenever you add the player to the group, update the column with setElementData.
  20. I'm not sure, but you can go and try to blow the tires with damage proof enabled.
  21. En ves de getAccount, usa getPlayerAccount, y en getAccountName cambia "i" por "account".
  22. Castillo

    Help - Logo

    local logo = guiCreateStaticImage ( 0, 0.8, 0.6, 0.2, 'no.png', true ) addCommandHandler ( 'hah', function ( ) if ( isElement ( logo ) ) then showPlayerHudComponent ( 'radar', true ) destroyElement ( logo ) else showPlayerHudComponent ( 'radar', false ) logo = guiCreateStaticImage ( 0, 0.8, 0.6, 0.2, 'no.png', true ) end end )
×
×
  • Create New...