Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. addEventHandler('onColShapeHit', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then if getTeamName(getPlayerTeam(hitElement))=="Police" then moveObject(Barrier, 1000, 1544.69, -1630.8, 13.3, 0, -90, 0) triggerClientEvent ( hitElement, "beep", hitElement ) end end end )
  2. No, he meant 'stupid'. I'm not stupid because I like to help, also, it's my problem about what I do with my time.
  3. That's right, your server has a lot of players more than the copy, I seen yours with 80 and their with 10.
  4. Check this topic: viewtopic.php?f=91&t=32132&p=340545&hilit=resolution+problem#p340545 I had the same problem, that fixed it.
  5. I think it uses this: playSoundFrontEnd ( 41 )
  6. race/modes/base.lua
  7. This is a really old topic, why are you posting here? as you can see lastest post was in 2009. P.S: Someone could re-make that code and alot easier I think.
  8. Castillo

    Problems

    To get a player's name you need to use getPlayerName
  9. Wrong, you need a account element but a player element.
  10. That's not 100% true, i'm currently scripting for a server without getting anything, and that's because I won't get anything from it.
  11. Is the table created? does the map exists in the table?
  12. function addlike() local result = executeSQLQuery("SELECT ratingLike FROM MapName2 WHERE map_name='".. tostring(mapName) .."'") local update = tonumber(result[1]["ratingLike"]) + 1 executeSQLUpdate ( "MapName2", "ratingLike = '".. update .."'","map_name = '" .. tostring(mapName) .. "'") end addCommandHandler ( "like", addlike ) --------------- function addunlike() local result = executeSQLQuery("SELECT ratingUnLike FROM MapName2 WHERE map_name='".. tostring(mapName) .."'") local update = tonumber(result[1]["ratingUnLike"]) + 1 executeSQLUpdate ( "MapName2", "ratingUnLike = '".. update .."'","map_name = '" .. tostring(mapName) .. "'") end addCommandHandler ( "unlike", addunlike )
  13. Try with this: function addlike() local result = executeSQLQuery("SELECT ratingLike FROM MapName2 WHERE mapName='".. tostring(mapName) .."'") local update = result[1]["ratingLike"] +1 executeSQLUpdate ( "MapName2", "ratingLike = '".. update .."'","mapName = '" .. tostring(mapName) .. "'") end addCommandHandler ( "like", addlike ) --------------- function addunlike() local result = executeSQLQuery("SELECT ratingUnLike FROM MapName2 WHERE mapName='".. tostring(mapName) .."'") local update = result[1]["ratingUnLike"] +1 executeSQLUpdate ( "MapName2", "ratingUnLike = '".. update .."'","mapName = '" .. tostring(mapName) .. "'") end addCommandHandler ( "unlike", addunlike )
  14. laserlaser, please respect the forum rules and don't use bad language, edit your post.
  15. function ejectTarget (source, command, who) local targetPlayer = getPlayerFromName(who) if not targetPlayer then outputChatBox("This player doesn't exist",source,255,0,0) return end if isPedInVehicle(targetPlayer) then removePedFromVehicle(targetPlayer) else outputChatBox("Target is not in a vehicle.", source, 255, 255, 255, true) end end addCommandHandler ( "eject", getRootElement() ejectPlayer )
  16. Maybe this could help you: https://community.multitheftauto.com/index.php?p= ... ls&id=1960 https://community.multitheftauto.com/index.php?p= ... ls&id=1961
  17. Castillo

    Tazer

    We can't help you to fix something if you don't post your code.
  18. Bien, ya que el asuto se soluciono blockeare el topic, mandame un mensaje privado si quieres desbloquearlo.
  19. This is the wrong section to post this, it should go in: viewforum.php?f=104 Also, you should give more details, what doesn't work? do you get an error? does GTA:SA alone work?
  20. Oh, I didn't know about that one, I'll install it , thanks.
  21. MTA doesn't use anymore 'accounts.xml', but it uses 'internal.db', you can open it with SQLITEbrowser program. Link to the program: http://sourceforge.net/projects/sqlitebrowser/
  22. Lol, claro! el tipo de archivo tiene que estar tambien, ex: lmao.mp3, lol.wav, etc, etc.
  23. Castillo

    Problem...

    He meant to add just one team, so comment out all the 'elseif' with "--" infront of line, and leave just ONE.
×
×
  • Create New...