Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. See? your argument name is "source" not "thePlayer" So it has to be "source" @ outputChatBox too: outputChatBox("SYNTAX: /addfuelpoint name priceratio", source, 255, 194, 14)
  2. "thePlayer" argument must be wrong. Post the whole function.
  3. I don't understand what are you trying to do
  4. That worked perfectly for me, so it has to work for you as well. As TAPL said, post your "meta.xml" content.
  5. I'd a quick search on google and and I found this: P.S: You're welcome.
  6. I executed the query manually and it said: I changed it to "groupName" and now it works. function ontStart ( ) executeSQLCreateTable ( "Groups", "name TEXT, type TEXT, level NUMBER" ) executeSQLCreateTable ( "Groups_members", "name TEXT, groupName TEXT, rank TEXT" ) end addEventHandler ( "onResourceStart", resourceRoot, ontStart )
  7. Try this: -- client side: addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker ) if getElementData ( source, "invincible" ) then if ( attacker and isElement ( attacker ) and getElementType ( attacker ) == "player" ) then setElementHealth ( attacker, getElementHealth ( attacker ) - 10 ) end cancelEvent ( ) end end ) -- server side: function toggleStaffMode ( thePlayer ) local account = getPlayerAccount ( thePlayer ) if ( not account or isGuestAccount ( account ) ) then return end local accountName = getAccountName ( account ) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) then local status = ( not getElementData ( thePlayer, "invincible" ) ) setElementData ( thePlayer, "invincible", status ) outputChatBox ( "Staff Mode is now ".. ( status and "On" or "Off" ) ..".", thePlayer, 255, 255, 255 ) end end addCommandHandler ( "staffmode", toggleStaffMode )
  8. It should work, I only changed the "isFBI" function to return the boolean of: isObjectInACLGroup.
  9. That's the oldest story ever: "A friend gave it to me, it wasn't me!". We don't help people with stolen scripts. Topic locked.
  10. Como que una imagen? queres decir que aparezca en la pantalla del mapa nada mas? no en el radar como los blips? Para lo segundo podes usar estos recursos: https://community.multitheftauto.com/ind ... ils&id=381 https://community.multitheftauto.com/ind ... ils&id=382
  11. No es un chat esto, simplemente postea el problema y si puedo te ayudo.
  12. No debe estar soportada esa web.
  13. Entre a la URL esa y tampoco anda ahi.
  14. La URL debe estar mal, proba con otra.
  15. Sabes que tenes razon? no me habia dado cuenta, ya lo arregle y subi una nueva version para arreglar el bug: https://community.multitheftauto.com/ind ... ls&id=1253
  16. Estan registrados y logueados en el servidor, verdad? ami nunca me paso eso.
  17. In SAUR I had to use a 100 milliseconds timer to warp the player, because for some reason it teleports him really far in the sky, same happened when I gave myself a vehicle with the Admin Panel.
  18. Podes crear un timer con: setTimer getElementHealth setElementHealth Es muy facil.
  19. Indeed, that's exactly what it is.
  20. What do you mean by how does it work? you can google to check how SQLite works . P.S: You're welcome.
×
×
  • Create New...