Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. Why are you using destroyElement? Use: guiSetVisible(currentWindow, false) And, its not createWindow. element guiCreateWindow ( float x, float y, float width, float height, string titleBarText, bool relative ) https://wiki.multitheftauto.com/wiki/GuiCreateWindow
  2. I'm not sure what to believe. I bought a host with these guys about a month ago, and I get the occasional problem with the webFTP, but Its soon fixed. I went to buy a new server, for a public one I MAY be making, and I found this... Look at 128 slots, does this mean I get the server free with 1 euro? Lmfao, I'm so confused, can someone help me?
  3. Xeno

    Server Problem

    I've never started a hamachi MTA Server, so I wouldn't really know, BUT my suggestion is, is to check your mtaserver.conf and check your hamachi IP is correctly entered in there.
  4. Thats fantastic and it works great. Would this also work? function setposOnLogin() local teamName = getTeamName(playerTeam) if (teamName == "Subway Clan(2)") then spawnPlayer(...ect) end addEventHandler("onPlayerLogin", getRootElement(), setposOnLogin)
  5. I had them already, but didn't put them in the script, local marker1 = createMarker(810, -1341, 13, 'cylinder', 3.0, 0, 0, 0, 0) local marker2 = createMarker(806, -1341, 13, 'cylinder', 3.0, 0, 0, 0, 0)
  6. Im making a gate, that will only open for a certain team, the gate opens but it seems to open for all teams, here is the code, function gateOpen() if getTeamFromName("Subway Clan(2)") and getTeamFromName("Beginners(1)") then moveObject ( gate, 1000, 808, -1342, 7 ) setTimer( moveObject,3000,1,gate, 1000,808,-1342,15.-- s8) --> else end end addEventHandler("onMarkerHit", marker1, gateOpen) addEventHandler("onMarkerHit", marker2, gateOpen) I would appreciate it if someone help me, thanks.
  7. Enough of trolling. Shut up? .Kids these days.You should not use paypal if you are under 16. Anyone who is under 15 = immature kid You are just a immature kid on MTA.Not everyone who is giving away free host is a scammer. You can't go making such extreme claims without backing them up with references. im 15 and mature, and I own a paypal
  8. Thats BRILLIANT. Thank you so much for the help!
  9. Im SERIOUSLY puzzled, because that SHOULD work and I dont know why? It sets the team "Subway Clan" But after that, it doesnt set it to the new clan EDIT: Wait no, its because its just "25", i need it to be 25-39 is that possible to do? So for example, if i logged in, and my kills were 26 , it wouldn't set the team becuase my kills are 26 and not 25. So basically, everything works expect for the team check on login.
  10. Yeah all the teams are created in the script. I just made a new account and it sent me straight to the Subway Team.
  11. Thanks, the login thing is all fine. But when I get past 35 kills, it doesnt switch me to the next team, I stay in Subway Clan
  12. It works now, thanks both of you. ONE last thing, how would I make it so it checks the kills on Player login and sets the team? I tried changing the event Handlers around, but that didn't work. And also, if I were to add another team, would it go like this? function setTeamZombie(killer) if (killer and getElementType(killer) == "player") then local kills = tonumber(getElementData(killer,"Zombie kills")) if (not kills) then setElementData(killer, "Zombie kills", 0) end if kills <= 24 then local beg = getTeamFromName("Beginners") setPlayerTeam(killer,beg) elseif kills >= 25 then local sw1 = getTeamFromName("Subway Clan") setPlayerTeam(killer, sw1) elseif kills >= 35 then local sw2 = getTeamFromName("Clan 3") setPlayerTeam(killer, sw2) end end end addEvent("onZombieWasted",true) addEventHandler("onZombieWasted", root, setTeamZombie)
  13. So you tested it ingame? Urgh... I dont even know, ima try again. Thanks for the help by the way Castillo and 50p Someone told me it was something to do with making the collumn, but he didn't fix it, what do you guys think?
  14. I still get the same error Which line is the error at? if (not kills) then setElementData(killer, "Zombie kills", 0); kills = 0; end
  15. I still get the same error
  16. Yes, yes it is. And ill give that ago 50p
  17. Still getting the same error D:
  18. Thanks for the reply, I tried that, and I get the same error as last time: attempt to compare boolean with number
  19. I have a problem with setElementData, im makign it so if you have a certain ammount of kills, it will put you in a team, this is the code... function setTeamZombie() if getElementData(source,"Zombie kills") <= 100 then sw = getTeamFromName("Subway Clan") setPlayerTeam(source, sw) elseif getElementData(source,"Zombie kills") >= 101 then sw1 = getTeamFromName("Clan 7") setPlayerTeam(source, sw1) end end addEventHandler("onZombieWasted", root, setTeamZombie) I get the error: Attempt to compare boolen with number. Oh and heres my Collumn. exports.scoreboard:addScoreboardColumn('Zombie kills') I have no idea how to fix this so please help Xeno
  20. That looks ace, keep up the good work
  21. Like this? if getElementData(lp,"Zombie kills") ~= <=100 then ' ~= <= ' You can't do that. Thats like saying: "If X is not the same as Y and X is less or the same as Y, then" But you are on the right track. I see. So how would I do it? Do you have any ideas? I made this so far... function setTeamZombie() if getElementData(source,"Zombie kills") ~= 100 then sw = getTeamFromName("Subway Clan") setPlayerTeam(source, sw) end end addEventHandler("onPlayerLogin", root, setTeamZombie) EDIT: NVM, fixed Thanks for the help guys!
  22. Like this? if getElementData(lp,"Zombie kills") ~= <=100 then I made this but I added <= and it said unexpected Symbol.... function setTeamZombie() if getElementData(source,"Zombie kills") ~= 100 then sw = getTeamFromName("Subway Clan") setPlayerTeam(source, sw) end end addEventHandler("onPlayerLogin", root, setTeamZombie)
  23. I dont understand what im looking for in client_anim.lua?
  24. I have a script, that counts the number of zombies you have killed, it puts the kills on the scoreboard. exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) givePlayerMoney(killer,100) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountData(account,"Zombie kills",0) end setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) end addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if zombieKills then setElementData(source,"Zombie kills",tostring(zombieKills)) else setElementData(source,"Zombie kills",0) end end) Would it be possible too have a certain GUI open if you have a certain amount of kills? So say I had under 24 kills, and if i typed /gui it would come up with a gui saying "YOUR SHIT AT KILLING ZOMBIES", but if I had 25 kills+ and typed /gui it would come up with a gui saying "YOUR AWESOME", is that possible? Its abit confusing, but I hope you guys understand, and if it is possible, could you show me how?
×
×
  • Create New...