Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Problems

    Yes, it does, but it creates into the client PC, client scripts folder. Go to the folder: c:\Program Files\MTA San Andreas\mods\deathmatch\resources\resource_name
  2. Castillo

    Problems

    local playerSource = getLocalPlayer () local RootNode = xmlCreateFile("positions.xml"," newroot") local NewNode = xmlCreateChild(RootNode, "newchild") addCommandHandler ( "save", function() if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) xmlNodeSetAttribute(NewNode,"x",tostring(x)) xmlNodeSetAttribute(NewNode,"y",tostring(y)) xmlNodeSetAttribute(NewNode,"z",tostring(z)) xmlSaveFile(RootNode) end end)
  3. I have no idea what /load is, I just know if you type it it will disconnect you from the server.
  4. Jaysd1, your post it's off topic, not his, he just said 'thanks' to eAi, so, if you could stop posting useless stuff it would be just great.
  5. Peacemaker, what do you have againts me? you asked me to create something for you and I refused? P.S: This is my last reply to your stupid posts.
  6. Peacemaker, I don't know who you are or what you have againts me, but you are pissing me off badly, I help them to learn.
  7. Maybe this is what you are looking for: viewtopic.php?f=30&t=23652&p=285001&hilit=Objects+Package#p285001 P.S: If so, then it was really easy to search for it, I just used search for: 'Objects Package' and there it was.
  8. Well, you won't get a player who will be there full time, so why not a ped?? do you know what a PED is?
  9. Castillo

    Login GUI

    Yes, that's right, he at least could have done what the other guy wanted to do.
  10. A ghost player? maybe you could use a ped?
  11. Castillo

    Login GUI

    This background was in some topic... I think it's made by Shizz or something like that.
  12. Why do you need that version? in the newer versions you can still use the Map editor and it's a lot better than older.
  13. Oh, my bad, I put hitPlayer but it was hitElement
  14. I answered to that post, what happend to it? who deleted it and why?
  15. Castillo

    UTF-8

    You can't use them until MTA 1.1.
  16. It's just not my style of game mode, also I think I do whatever I want with my life, don't you think?
  17. client side example is wrong, onClientPlayerJoin is triggered for all but the client, so it should use onClientResourceStart instead.
  18. This code makes no sense, you didn't read the links I gave you, right?
  19. Not really, I tell that to people who doesn't really want to learn i.e doesn't have time for their server(s).
  20. Well, in this forum we don't give out the code, we help you to fix your errors/search them, so you should try to do it by yourself first then come here and ask (with your code of coruse). Functions & Events that you'll need for this: createObject createMarker getElementModel onMarkerHit moveObject There's also the colshape functions instead of markers: https://wiki.multitheftauto.com/wiki/Ser ... _functions Good luck.
  21. I play MTA since Dp2, not sure when exactly, I remember that my brother installed it then he played for a day and no longer, then I started to play it and I liked it, so I just continued playing. Then after some months (a year maybe) I got bored of just play and started to learn LUA to get my own server running.
  22. Well, maybe something else is wrong, and btw, why do you need a trigger for a function that it's also server side..? 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) playSoundFrontEnd (hitElement, 5) end end end )
  23. Well, if you didn't notice, there are functions/events that only work in the client or the server side, and some times you may need something that's only in the client or server side, then you'll know what to should use.
  24. Castillo

    Problems

    That's wrong, isObjectInACLGroup requires the account name but the player name, so would be: function iamAdmin(player) local account = getPlayerAccount(player) if not account then return end local accountName = getAccountName(account) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then outputChatBox("Yes.") else outputChatBox("No.") end end addCommandHandler("admin",iamAdmin)
×
×
  • Create New...