Jump to content

igthomas

Members
  • Content Count

    62
  • Joined

  • Last visited

Community Reputation

0 Neutral

About igthomas

  • Rank
    Snitch

Details

  • Gang
    Outbreak
  1. Doesn't work for me Is this my video card problem? http://i.imgur.com/abDSqU6.png
  2. http://community.multitheftauto.com/ind ... ls&id=7072 http://community.multitheftauto.com/ind ... ls&id=7074 stolen scripts DONE!
  3. Well the funny thing is that I was very close once just instead of setElementData(thePlayer,"away",{oldX, oldY, oldZ}) I did this without { } Anyways now I know my mistake and won't repeat them ;D setElementData(thePlayer,"away",oldX, oldY, oldZ)
  4. Thanks for your help guys csiguusz your script worked just one thing how could I stop the checking if the player is still afk? Because I have a feeling that if the player stays afk and it check everytime and save the position, it will save the new one where he's in the interior right?
  5. Thanks for help but it didn't work, I mean when I write back it doesn't do anything
  6. Hi I made an afk script , player gets moved to a specified interior and when he writes back it gets him back where he left being afk, but for some reason it gets the position of the interior not the one where he left. Oh and do you suggest doing setTimer every 1 seconds or is it bad for the server? function onIdle (thePlayer) for index, thePlayer in ipairs(getElementsByType("player"))do if (getPlayerIdleTime(thePlayer) > 5000) then --120000 local oldPos = getElementPosition (thePlayer) setElementData(thePlayer,"away",oldPos) setElementI
  7. Thanks man no more errors
  8. Hi, recently I was converting every of my gates script from getElementModel to getTeamName and I'm getting an error it's not really affecting the scripts but its annoying because more players are on the server more bigger the ouput in log file is gate1= createObject ( 2927, 215.878, 1875.722, 13.93899, 0, 0, 0 ) gate1_2 = createObject ( 2927, 211.7866, 1875.726, 13.93899, 0, 0, 0 ) marker_gate1 = createMarker(213.93994,1875.98022,10.3468,"cylinder",5, 225, 225, 0, 0 ) function open_gate1(hitElement) local armyTeam = getPlayerTeam ( hitElement ) if getTeamName(armyTeam) == "Army
  9. The problem could be because on your first post the client script file is called "Spawnc.lua" instead of "spawn.lua". I've tested it again and everything worked very well
  10. Weird I've just tested it and everything worked well you sure you haven't forgot anything in meta?
  11. The problem with previous was that you had dots between "GUIEditor" and "window" instead of "_" so it gave some error. Here's for removing the spawnpanel: GUIEditor_button = {} GUIEditor_window = {} addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_window[1] = guiCreateWindow(0, 0, 1365, 767, "Spawn", false) guiWindowSetSizable(GUIEditor_window[1], false) guiSetAlpha(GUIEditor_window[1], 1.00) Sniper = guiCreateButton(73, 121, 301, 93, "Sniper", false, GUIEditor_window[1]) guiSetFont(Sniper, "sa-header") GUIEditor_button[3] = guiCreateButto
  12. Try this Server: addEvent( "Sniper", true) addEventHandler( "Sniper", root, function() setElementPosition ( source, 0, 0, 5 ) end ) addEventHandler ( "onPlayerJoin", root, function ( ) triggerClientEvent ( source, "setSpawnVisible", source, true ) end ) Client: GUIEditor_button = {} GUIEditor_window = {} addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_window[1] = guiCreateWindow(0, 0, 1365, 767, "Spawn", false) guiWindowSetSizable(GUIEditor_window[1], false) guiSetAlpha(GUIEditor_wi
  13. Hey Guys, I've a strange problem, don't know if it's my PC or the createObject bug, my map file with createObject is 120Kb and seems that when I go 20 meter far from the object, it dissapears and sometimes I don't even see it and can go through the object Oo Are there any solutions for that?
  14. Try this addEventHandler("onClientPlayerJoin", getRootElement(), function() fadeCamera(true, 5) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end )
×
×
  • Create New...