Jump to content

Absence2

Members
  • Posts

    267
  • Joined

  • Last visited

Everything posted by Absence2

  1. Absence2

    carfade issue

    setPlayerNametagShowing -- click it
  2. Take a guess.. Although, many roleplay gamemodes (mainly valhalla and vedic, shodown(valhalla) ) were shared on a website, not anymore though. So no, you'll have to script it if you don't have it aldready.
  3. Absence2

    MTA jobs.

    uhm.. no, you know.. just click this link and it will magically be given to you: viewtopic.php?f=148&t=38399
  4. viewtopic.php?f=148&t=38344
  5. viewtopic.php?f=148&t=42067
  6. function saveWeapons(player, account) if player and account then for i=0,12 do local weapon = getPedWeapon(player, i) local ammo = getPedTotalAmmo(player, i) setAccountData(account,"w"..tonumber(i), weapon) setAccountData(account,"a"..tonumber(i), ammo) end takeAllWeapons(player) end end addEventHandler("onPlayerQuit",root,function () saveWeapons(source, getPlayerAccount(source)) end) addEventHandler("onPlayerLogout",root,function(prev) saveWeapons(source, prev) end) addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) if not account or isGuestAccount(account) then return end for i=0,12 do local weapon = getAccountData(account,"w"..tonumber(i)) local ammo = getAccountData(account,"a"..tonumber(i)) if weapon and ammo then setTimer(giveWeapon, 1000, 1, source, tonumber(weapon), tonumber(ammo), true) end end end) I found this on the forums, I don't remember where though, I think it's Kenix's or Solidsnake's script. That should work, plus it's a LOT shorter, It's only to save guns
  7. read thru your code elmota, your gridlist isn't attached to the window --yours GUIEditor_Grid[1] = guiCreateGridList(63,119,184,377,false) --correct GUIEditor_Grid[1] = guiCreateGridList(63,119,184,377,false,GUIEditor_Window[1])
  8. He's making fun of your english. viewtopic.php?f=148&t=38399 https://wiki.multitheftauto.com/wiki/Resources
  9. I prefer commands >.< As my server uses an ID script, it's nice.
  10. That doesn't work. It just spawns the ped next to the bus.. Plus I'll have to use setElementData to keep skin, guns, wanted level etc etc etc.. >.
  11. Absence2

    Gui help

    read this https://wiki.multitheftauto.com/wiki/OnClientGUIClick
  12. GUIs are nice, though, commonly overused.
  13. No, I just connect, go to the marker and use /acceptjob. The vehicle spawns but I don't warp. I then tried killing myself, then I went back and then vehicle spawns & I warp into the vehicle . But that doesn't solve much >.< I tested with a timer on warpPedIntoVehicle but didn't work either, same results, I suppose it's MTA bug then setTimer( warpPedIntoVehicle, 1500, 1,hitElement, vehicle) also I tried being inside a vehicle before killing myself and not being in one. Same result. I have to die in order to make warpPedIntoVehicle work for me. I don't know if players has to do it too or if only one has to do it
  14. Thanks, I'll post what I discovered just now there. Sharing it here is just as good I guess, so what I found was, when I first connect to the server. and use the script above^ It does NOT work. HOWEVER, if I kill myself, go back and try again, it works. I guess I found the problem, kinda, but not a solution Anyhow, I'll report it there.
  15. Ok, so I have a problem with warpPedIntoVehicle, from time to time, it works perfectly fine. But sometimes it doesn't for a period of time. What I'm saying is, it doesn't warp. For an example, lil toady's admin panel. The vehicle just spawns on the ped. And when I use: local jobMarker = createMarker(1808.1796875, -1916.625, 12.56644821167, "cylinder", 2, 0, 255, 255, 100 ) function jobMarkerHit( hitElement, matchingDimension ) if isElementWithinMarker(hitElement, jobMarker) then if getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) then local vehicle = createVehicle(431, 1798.38171, -1929.55750, 13.38790) setPlayerTeam ( hitElement, Bus) warpPedIntoVehicle(hitElement, vehicle) elseif getElementType( hitElement ) == "vehicle" then end end end addCommandHandler("acceptjob", jobMarkerHit) The vehicle spawns on the given position: 1798.38171, -1929.55750, 13.38790 (line 6) and I don't warp inside it. Is there any way to solve this? It ruins a lot and is quite annoying, also I noticed lil toady's slap mechanism, same thing there.
  16. Absence2

    vehcolor

    replace the ')' on line 13 in draken's script with an 'end'
  17. What exactly is a Turf?
  18. lol, sounds cool but it looks more like RPG to me
  19. I don't really get it, so I have to create a table, for an example: function createSQLOnStart () executeSQLCreateTable ( "posX", "x" ) executeSQLCreateTable ( "posY", "y" ) executeSQLCreateTable ( "posZ", "z" ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()),createSQLOnStart ) So, this would do the trick? I tested few other ways, but didn't work. I suppose it's this what you mean by with no data. Currently, it keeps spawning me at location '0'.
  20. It does seem to work, sort of. For some reason, it keeps spawning me out in Red County no matter where I am.
  21. Oh yes, I did try that but didn't work. Syntax however is gone, but there's no "effect". function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerMoney = getPlayerMoney(source) local playerSkin = getElementModel(source) local x,y,z = getElementPosition ( source ) setAccountData(playerAccount, "money", playerMoney) setAccountData(playerAccount, "skin", playerSkin) setAccountData(playerAccount, "position", x,y,z) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) then local playerMoney = tonumber(getAccountData(playerAccount, "money")) local playerSkin = tonumber(getAccountData(playerAccount, "skin")) local x,y,z = tonumber(getAccountData(playerAccount, "position")) if (playerMoney and playerSkin and x and y and z) then setPlayerMoney(source, playerMoney) setElementModel(source, playerSkin) setElementPosition ( source, x,y,z ) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin) function createSQLOnStart () executeSQLCreateTable ( "position", "x, y, z" ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()),createSQLOnStart ) and that's how I trigger the table.. or whatever^
  22. oh yes, but I cannot add commas to line 20: if (playerMoney and playerSkin and x,y,z) then So I'm not really sure what to do with that one.
  23. Alright so I just entered this part, it's very new to me, including sqlite. So I'm trying to save every stat a player has, money, skin, location, weapon, and so on.. So far, I've managed the money & skin. Though, the location is causing me problems. I'm convinced I'm doing something wrong after 30 minutes of trying to figure it out Alright, so this is what I got, function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerMoney = getPlayerMoney(source) local playerSkin = getElementModel(source) local playerPos = getElementPosition ( source ) setAccountData(playerAccount, "money", playerMoney) setAccountData(playerAccount, "skin", playerSkin) setAccountData(playerAccount, "position", playerPos) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) then local playerMoney = tonumber(getAccountData(playerAccount, "money")) local playerSkin = tonumber(getAccountData(playerAccount, "skin")) local playerPos = tonumber(getAccountData(playerAccount, "position")) if (playerMoney and playerSkin and playerPos) then setPlayerMoney(source, playerMoney) setElementModel(source, playerSkin) setElementPosition ( source, playerPos ) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin) as I said, I'm new to sqlite, so I took it as I had to create a table, so I went to wiki and ended up with this executeSQLCreateTable ( "position", "x, y, z" ) I'm not really sure where the problem lays at >.< so, what to do? I suppose it's at the table, though I don't understand how to do it completely. Note: this is my third topic about this within a minute, lol. Forums seems to be really slow or it's my internet, causing me to first create two topics by misstake, then delete those two by misstake
  24. Surprisingly enough, you're more a flamer than "I am", I actually don't intend to flame, merely to discuss. You came here, calling everyone childrens, using caps, huge fonts, simply implying that we're acting like bitches etc etc.. Plus, I didn't start this topic, I can assure you that. And may I remind you, there is more than one topic regarding MTA servers around on this forum, One is here: viewtopic.php?f=114&t=35188 where you even participated in, without acting up. And then, viewforum.php?f=115 Hundreds here, so I don't see a problem discussing a popular Gamemode (Roleplay) in MTA on the MTA Forums.
  25. Firstly, Of course, they can do what the hell they want to do, and so can we, therefore, a topic was made, to discuss this subject. Actually, discussing a server's quality and how it's moderated is the same as questioning a shoe brand, nothing wrong with that. And if one of those owners from the servers mentioned earlier actually noticed this topic, they may improve, who knows? Secondly, I don't have a vagina. Thirdly, It is just a bloody game. But as I mentioned just now, shoe brand, is it something worth getting sand in your vagina over? Yes. We're human, and questioning a thing and another, including debate lays in our nature. Last but not least, This topic is not worth getting sand in your vagina over, John, relax.
×
×
  • Create New...