Jump to content

delete.

Members
  • Posts

    37
  • Joined

  • Last visited

Recent Profile Visitors

1,148 profile views

delete.'s Achievements

Rat

Rat (9/54)

0

Reputation

  1. ERROR: respawn\server.lua:63: attempt to index global 'weapons' (a nil value)
  2. So how'd I fix that? Didn't even run any resource for it tho, just by default MTA:SA gamemode
  3. I thought of doing that (I don't even know how to do it but I know what you are talking about) but as I said, yesterday it just worked fine, it saved my guns and skins? No debug output at all.
  4. Uh, yea kinda fixed. The reason I added this script was because when I died I wasn't even spawning, as I said there was an infinite loop going right and left. Just yesterday, it worked fine and it respawned me at LV Hospital, with running no script or no gamemode (I'm running default MTA:SA gamemode, not play). And also when somebody registers it sets him at position 0, 0, 0 again, no script is running for that to occur. Upon death, it also changes my skin and removes all of my guns. Any way to fix this? @Dimos7
  5. Hey, just scoped around the forum and I've seen that solidsnake14 has submitted a script that upon death it respawns you to the nearest hospital: hospitalsTable = { { 1177.7994384766, -1323.0667724609, 14.088536262512 }, { -2656.2421875, 635.99420166016, 14.453125 }, { 1607.1225585938, 1817.8732910156, 10.8203125 }, } function findNearestHostpital(thePlayer) local nearest = nil local min = 999999 for key,val in pairs(hospitalsTable) do local xx,yy,zz=getElementPosition(thePlayer) local x1=val[1] local y1=val[2] local z1=val[3] local dist = getDistanceBetweenPoints2D(xx,yy,x1,y1) if distthen nearest = val min = dist end end return nearest[1],nearest[2],nearest[3] end function spawn(player) local xx,yy,zz = findNearestHostpital(player) spawnPlayer( player, xx,yy,zz) fadeCamera(player,true,3.0) end addEventHandler("onPlayerWasted", root, function() fadeCamera(source,false,6.0,0,0,0) setTimer(spawn, 8000, 1, source) end ) I have tried to use it on my server and it doesn't work, all it does is just infinite loop of camera going left and right. No debug output messages at all.
  6. Still not working. Edit: it does work now, thank you.
  7. Not sure why, still not working.
  8. Nope, it still sets me as no team when i reconnect/join:
  9. ERROR: Loading script failed: jobcommand\server.lua:31: ')' expected (to close '(' at line 26) near 'end' @Dimos7
  10. Hi, just made a really simple script for teams, but everytime a player joins it puts him on above of all teams. I need help from you guys how to make default team "Unemployed" local Unemployed = createTeam("Unemployed", 255, 0, 255) setPlayerTeam(player, Unemployed) setElementModel(player, 0) end Thanks!
  11. It works now. Thanks to all of you guys!
  12. WARNING: fly\s_fly.lua:2: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] WARNING: fly\s_fly.lua:2: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] ERROR: fly\s_fly.lua:2: attempt to concatenate a boolean value @Dimos7 Got this in debug: ERROR: Server triggered clientside event onFlyGranted, but event is not added clientside @MrTasty
  13. still doesnt work @mint3d edit: tried in debugscript 3 and got this: ERROR: fly\c_fly.lua:4: attempt to call global 'triggerServerEvent' (a nil value)
  14. isn't it the same as dimos provided?
×
×
  • Create New...