Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. Xeno

    Weapon Stats

    Ahh, It was because I set a timer on spawn player. Thanks for all your help again.
  2. Xeno

    Weapon Stats

    Nevermind. It was not working when I set it on the admin panel for some reason... Thanks for the help
  3. Xeno

    Weapon Stats

    I tested both of yours and they don't work... Does it matter if I set the stat VAI admin panel?
  4. Xeno

    Weapon Stats

    Thanks for the replys. But neither work... I have logout disabled, could that have anything to do with it?
  5. By the way, this looks awesome.
  6. Xeno

    Weapon Stats

    Yours works Evil. Do I have to add every weapon manually?
  7. function flipVeh( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) setElementRotation(theVehicle,0,0,0) takePlayerMoney(500) end addCommandHandler("flip",flipVeh)
  8. function flipVeh( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) setElementRotation(theVehicle,0,0,0) end addCommandHandler("flip",flipVeh)
  9. Xeno

    accounts.xml

    I'm not having a login panel in my server though. Ill just leave it and let them login manually with /login ect.. Thanks for the help guys
  10. Xeno

    accounts.xml

    So how am I meant to enable auto login? Do I have to make a script for it?
  11. Xeno

    accounts.xml

    Does Accounts.xml still exist? Because I can't seem to find it in my MTA folder.
  12. Xeno

    Weapon Stats

    Thanks for the replies guys. It doesn't work and I dont get any errors.
  13. Xeno

    Weapon Stats

    How would I go about saving weapon stats? I know I have to use setAccountData and getAccountData, but i Don't know what to put. I would appreciate it if you could give me some help. Xeno
  14. I know that, but which lookAtX do I change to rotate the camera? None seem to work.
  15. I STILL can't seem to rotate the camera? I'm trying to move it so it faces the base, but whatever Arguement I change, it does not seem to rotate! Help me please: setCameraMatrix (source, 73.6,1763,48, 1468.388671875, -918.42474365234,0,0,0, 25000,25000) PS What i'm trying to do is rotate the camera.
  16. Xeno

    Ranks

    Fixed. Thanks Castillo.
  17. Xeno

    chatbox

    https://forum.multitheftauto.com/viewtopic.php?f=148&t=38233
  18. Xeno

    Ranks

    Oh sorry, addEventHandler("onZombieWasted", getRootElement(), lvlKills)
  19. Xeno

    Ranks

    function lvlingUp() dxDrawText ( "You have leveled up!", 200,screenHeight - 400, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 2, "pricedown" ) dxDrawText ( "You have leveled up!", 200, screenHeight - 402, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 2, "pricedown" ) end function triggerLvl() addEventHandler("onClientRender",rootElement, lvlingUp) setSoundVolume(sound, 0.5) local sound = playSound("lvl.mp3", false) setTimer(dxDrawReLvl,3000,1) end addEvent("triggerLvl", true) --addEventHandler("onClientResourceStart", getRootElement(), triggerLvl) function dxDrawReLvl() removeEventHandler("onClientRender", rootElement, lvlingUp) end addEventHandler("triggerLvl", getLocalPlayer(), triggerLvl)
  20. Xeno

    Ranks

    Ok, so I'm setting up ranks for this script, and it checks to see if a player has a certain ammount of kills every kill, if the player has 50 kills, it triggers a server event, but it doesn't seem to work... ( not triggering the server event..) heres the script: function lvlKills(player, killer) local rank = getElementData(player, "Rank") if (player and getElementType(player) == "player") then local kills = tonumber(getElementData(player,"Zombie kills")) if (not kills) then setElementData(player, "Zombie kills", 0) kills = 0 end if (kills == 50) then triggerClientEvent(killer,"triggerLvl",killer) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 150) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 300) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 600) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kill == 800) then triggerClientEvent("triggerLvl", getRootElement()) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) elseif (kills == 1200) then triggerClientEvent(killer,"triggerLvl",killer) outputChatBox("#FF0000*GAME: #FFFF00You have leveled up to rank "..rank.."!", player, 255, 0, 0, true) end end end Please help me, Xeno
  21. People will not just make this for you, you have to learn LUA scripting mate.
  22. Not wise to show people a picture of your CMD... Did you try typing in 127.0.0.1?
  23. It says I don't exist when I type in the command.
×
×
  • Create New...