Jump to content

zer0w

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by zer0w

  1. Sorry for bumping this, but I want to change the coordinates of the ammunition shops. As in the interior and the arrow outside of the door. It's because I want to move it to the OpenVice map and the coordinations are completely different, so do I need to change the ammu_peds.lua or more then that to make it work. When I enter one of the open ammunition shops I should get a GUI window that's the idea.
  2. I checked nothing in there about disallowing such skins only setskin "false/true"
  3. I tried using that script myself, and what it only does is that it gives you a red message saying you may not use this skin.. and the person can still keep using it. Is it missing an cancel event ? errMsg( "You are not allowed to use this skin." ) cancelEvent () -- stop the event from occuring end
  4. Alright thanks, I'll look into this Hmm the image size is 600x600
  5. Great work, using it in SA map now. But we also have a other server, which is Open Vice I was fiddling with the map myself to locate my position with the map itself, also I tried playing with the zoom function. But the map itself becomes too blurry. Here's a image to show you what I mean : http://dl.dropbox.com/u/10633539/GTA/positioning.jpg You can see that the standard hud in OV has it properly working : http://cache.gyazo.com/4073162734eb1341 ... 8eab6e.png Is there way to fix this myself?
  6. Check the house system resource or you can create your own, by just using teleport editor in map editor and making your own teleports to interiors when standing in front of a door..
  7. I'm actually already running this resource, and it works fine. Although I do get this in console of my server [2012-01-18 22:11:32] WARNING: @main_server.lua.bak:406: Access denied @ 'callRemote' [2012-01-18 22:11:32] INFO: BUSINESS: Couldn't Check For New Version , Add Resource To Admin Group And I did add it under admin group, and I do have permission to create and it also saves the business on server quit. This is what I added under group name = Admin
  8. If you wanted to know for what I was aiming for and what I will be using it for. Offtopic: IRRELEVANT
  9. Thanks will try this right away EDIT: thank you so much, now I got everything working. Thanks I tried it for both so /kill and I kept the weapon same for disconnect so it works
  10. Actually tried the respawn too while having guns, also removes it
  11. Was hoping for it to work, but unfortunately it didn't save, i tried to give myself a weapon and try and logout and then /kill and then another /login but weapons were gone, thanks for the effort though
  12. I used your code, for freeroam so broph.lua the weapon saving is clientside so I made a meta.xml and a weaponsave.lua containing that code that I posted above
  13. I still thank you guys for the perfectly working script, but now I'm trying to figure out a working weapon save system. I didn't code this, but a guy called Jason wrote the code : weaponSlots = 11 ammoSlot = {} gunSlot = {} for slot = 1, weaponSlots do if getPedWeapon ( player, slot ) then ammoSlot[slot] = getPedTotalAmmo ( player, slot ) gunSlot[slot] = getPedWeapon ( player, slot ) end end -- If you want save your WEAPON CODE later than you can use ElementData -> global for gun = 1, #gunSlot do if gunSlot[gun] ~= nil then setElementData(player, "weapon#"..gun, getWeaponNameFromID(gunSlot[gun]) setElementData(player, "ammo#"..gun, ammoSlot[gun]) end end Somehow I think it's missing a function, I tried lots of functions but none of them were working, I even used the search button. Help would be appreciated.
  14. local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function joinHandler ( ) --spawnPlayer (source, -1969.2669677734, 137.71185302734, 30, 0, skin, 0) spawnPlayer (source, -1969.2669677734, 137.71185302734, 30, 0, 0, 0) fadeCamera (source, true) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin" , getRootElement ( ) , joinHandler ) function spawnWasted(player, skin) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 180, skin, 0) fadeCamera(player, true) setCameraTarget(player, player) end addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source, getElementModel(source)) end ) function greetPlayer ( ) outputChatBox ( "Welcome to Zer0w's server" , source, 0, 159, 255 ) end addEventHandler ( "onPlayerLogin", getRootElement(), greetPlayer ) addEventHandler("onPlayerWasted",root, function () setElementData(source,"tempSkin",getElementModel(source)) end) addEventHandler("onPlayerSpawn",root, function () local skin = tonumber(getElementData(source,"tempSkin")) if (skin) then setElementModel(source, skin) end removeElementData(source,"tempSkin") end) function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerMoney = getPlayerMoney(source) local playerSkin = getElementModel(source) setAccountData(playerAccount, "money", playerMoney) setAccountData(playerAccount, "skin", playerSkin) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerMoney = tonumber(getAccountData(playerAccount, "money")) local playerSkin = tonumber(getAccountData(playerAccount, "skin")) if (playerMoney and playerSkin) then setPlayerMoney(source, playerMoney) setElementModel(source, playerSkin) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  15. Hmm thanks for the help, but still random character..
  16. Well I did this, still random character on death function player_Wasted ( ammo, attacker, weapon, bodypart ) end -- add the player_Wasted function as a handler for onPlayerWasted addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )
  17. Nice and simple script, but too bad that it's not working when you die. You change to a random character after death.
  18. Very useful Editor, I have made some cool teleports in OpenVice. Yeah Vice City map but in Multiplayer version Wanted to report a small bug though, when inside the building and a teleportmarker is placed below one floor, you also seem to enter that marker. It's as if the the teleport marker has no Z limit (^) so when above the marker it also teleports you
  19. https://www.youtube.com/watch?v=qjOdxxpPNCE Check four-mp if you cant wait. Nice sync better then iv-mp
  20. zer0w

    How did you get to MTA?

    Ghost's must've been whispering it in my ear Ghooo thooo Muuuhlthiiitheefttautooo creepy stuff 0_0
  21. Maybe a month or 2 i dont know have patience and thou shall receive
  22. https://multitheftauto.com/orange/ Fake or Fake or Real Really real And i cant seem to find more info on this, Still awesome if its real
×
×
  • Create New...