Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Es que no tiene sentido que pongas 'localPlayer' ahi, ya que ese argumento es el tamaño del blip, que es un numero, no un elemento.
  2. This doesn't really make much sense... Why do you attach a colshape to the player? I thought you wanted to do when he touched a object, he died? just place the colshape where the object is.
  3. Looks cool, good job. There was already something like this in the community: https://community.multitheftauto.com/in ... ls&id=6380
  4. function loggedOut (player) destroyMarker (player) end Remove 'player' from the function name, and change 'player' to 'source' in destroyMarker.
  5. Post the entire function code.
  6. Use guiSetProperty with the property name: "VertScrollbar" guiSetProperty ( myLabel, "VertScrollbar", "True" )
  7. function kickPlayerOnHighPing ( ) local accountName = getAccountName ( getPlayerAccount ( source ) ) if ( not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) and not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Console" ) ) and not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) and not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "SuperModerator" ) ) ) then outputChatBox ( getPlayerName ( source ) .. " was kicked due to high ping!", getRootElement(), 27, 89, 224, true ) kickPlayer ( source, "Your Ping was straight too high." ) end end addEvent ( "kickPlayerOnHighPing", true ) addEventHandler ( "kickPlayerOnHighPing", getRootElement(), kickPlayerOnHighPing )
  8. That line is not the one giving the error, as it has no loop at all.
  9. Castillo

    about ipairs

    https://wiki.multitheftauto.com/wiki/Table.merge
  10. La verdad esto no tiene mucho sentido, que intentas hacer?
  11. What do you mean? Do you mean how many rows the gridlist has? if so, then use this function: guiGridListGetRowCount
  12. For what I can see, DayZ uses account data, which is why is stored into internal.db. But most likely, it was a bug someone exploited in the server.
  13. Well, you should trigger a server side event which would then trigger a client side event sending the items. Functions you need to use: triggerServerEvent addEvent addEventHandler triggerClientEvent If by from a file you mean a XML file, then you must also use: xmlLoadFile xmlNodeGetChildren xmlNodeGetAttribute xmlUnloadFile
  14. getElementSyncer is a server-side only function, and that is a client-side script.
  15. I think someone directly accessed your database file. Or exploited a bug in the server.
  16. Te falta cerrar la fucion, un 'end' despues de la linea 15.
  17. The only way would be to give the ammo back once the player uses it.
  18. warpPedIntoVehicle(source, criado) Change 'criado' to vip [ source ]
  19. Yeah, it's exactly the same thing. Topic locked.
×
×
  • Create New...