-ffs-Sniper

Members
  • Content Count

    265
  • Joined

  • Last visited

Everything posted by -ffs-Sniper

  1. True, but there must be something wrong with the function then. Update: It works after executing the script 2 times in a row. The streamed in objects will still be there but if you fly away from them and back they are not there anymore.
  2. Then open the command prompt (cmd.exe). Start -> Run -> cmd.exe and type in "netstat -a" and look for the port number 22003 or 22005. Can you find anything using it?
  3. Try this one: for i = 0, 20000 do removeWorldModel(i, 8192, 0, 0, 0) end
  4. You probably need to add the following line to the ACL rights of the "Admin" group. <right name="function.executeCommandHandler" access="true"></right> If it still won't work, please, copy the content of your ACL.xml to http://pastebin.com (XML Syntax) and post the link here.
  5. Turn off the Windows Firewall. Else there must be a router firewall blocking those ports.
  6. Edit of a default resource and stolen + compiled script file added; advertising for a server. (Requesting a ban for [TRF]Alone) http://community.mtasa.com/index.php?p= ... ls&id=4225
  7. First of all, do not rape your caps. Using capital letters in your title only makes you look like an idiot (sorry for the hard word). Request? Maybe you should consult http://wiki.mtasa.com and read one of those LUA tutorials. A small hind: "onPlayerLogin" setAccountData "onPlayerQuit"/"onPlayerLogout" getAccountData giveWeapon Did you know it that it just saves the weapon stat, not the weapon?
  8. Vehicles: http://community.mtasa.com/index.php?p= ... ls&id=4210 http://community.mtasa.com/index.php?p= ... ls&id=4211 http://community.mtasa.com/index.php?p= ... ls&id=4212
  9. I've patched the function in r3912 so now it's working properly. The wiki has been updated: http://wiki.multitheftauto.com/wiki/CopyResource
  10. The error 404 means that the file "/InfoGui/news.xml" has not be found on the HTTP server. Are you using an external HTTP server or the default one? If using the default one, please, try using /refreshall then check the "/mods/deathmatch/resources-cache/http-client-files" folder for the missing file. If it's still not there, stop your server, login via SSH and do "chmod -R 777 /mods/deathmatch/resources-cahce/http-client-files/" then start it and check for the file again.
  11. That's sad but true, there are tons of servers having a lot of garbage scripts and files. In addition to that they are often using the default MTA HTTP server which makes the downloads unbelievably slow. On the other hand the real big servers like CIT, SAUR or FFS are using external HTTP server to serve the client files which are a lot faster. Once you find the right server you will stay there for quite a long time. There is already a solution for music files to stream them without having to download them. From version 1.3.1 onwards there will be a function called downloadFile to download files on demand. LUA is an awesome, clear and simple language which does not lack any functions, it is totally worth to learn it. EDIT: The MTA functions are just stunning, you can't compare that to the ones at SA-MP. SA-MP has 389 functions and 63 callbacks while MTA has 778 client functions, 83 client events, 820 server functions and 69 server events.
  12. http://wiki.multitheftauto.com/wiki/Sha ... Skid_marks
  13. I would be really interested in someone to reverse-engineer the SA-MP, I still remember when MTA:Blue became OpenSource and SA-MP finally fixed tons of bugs. I find this topic pretty amusing and how Kalcor started another fight. There should be a topic: "SA-MP is using MTA's OpenSource code"
  14. Open your GTA directory and delete the libcurl.dll file.
  15. Vehicle mods: http://community.mtasa.com/index.php?p= ... ls&id=4139 http://community.mtasa.com/index.php?p= ... ls&id=1348 http://community.mtasa.com/index.php?p= ... ls&id=1066 Ped skins: http://community.mtasa.com/index.php?p= ... ls&id=2241 http://community.mtasa.com/index.php?p= ... ils&id=438 Weapon skins: http://community.mtasa.com/index.php?p= ... ils&id=437 Edited versions of stolen DDC speedo: http://community.mtasa.com/index.php?p= ... ls&id=1702 http://community.mtasa.com/index.php?p= ... ls&id=1612
  16. Try playing on the "play" gamemode and press F1 to open the freeroam panel. You can also use the admin panel to give yourself weapons, vehicles and stuff.
  17. No it is not possible. Each client can only load a single .txd and .dff file for one model at the same time.
  18. addEvent("gived",true) addEventHandler("gived",root, function(player) local PlayerMoney = getPlayerMoney(source) local x,y,z = getElementPosition( player ) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) createVehicle(456,x+1,y,z ) local name = getPlayerName(source) outputChatBox ( "#ffffff" .. name .. " #ffffff buy Vehicle ...", getRootElement(), 255, 0, 0, true ) else outputChatBox("dont have money", source, 255, 0, 0, true) end end )
  19. Please post your acl.xml files in here so we can check for any corruption of the file. You should try to use a fresh acl.xml file: http://linux.mtasa.com/dl/130/baseconfig.tar.gz
  20. Skins... http://community.mtasa.com/index.php?p= ... ls&id=4135 http://community.mtasa.com/index.php?p= ... ls&id=4136 http://community.mtasa.com/index.php?p= ... ls&id=4137 http://community.mtasa.com/index.php?p= ... ls&id=4138 Ban AVATAR_19, please
  21. Stolen and bugged toolbox by Bauss (see the comments): http://community.mtasa.com/index.php?p= ... ls&id=3270
  22. +1. This post is worth posting it as news.
  23. -ffs-Sniper

    I'm confused..

    function getRaceAlivePlayers() local result = {} local _getAlivePlayers = getElementsByType("player") for i, v in ipairs(_getAlivePlayers) do if getElementData(v, "state") == "alive" then table.insert(result, v) end end return result end function get() local ap = 0 local _getAlivePlayers = getElementsByType("player") for index, player in ipairs(_getAlivePlayers) do if getElementData(player, "state") == "alive" then ap = ap + 1 end end return ap end -- -- addEventHandler("onPlayerWasted", root, function() if get() == 1 then outputChatBox(getPlayerName(getRaceAlivePlayers()[1]) .. " has won") end end )