Jump to content

IIYAMA

Moderators
  • Posts

    5,973
  • Joined

  • Last visited

  • Days Won

    191

Everything posted by IIYAMA

  1. Export from Stealth: (player does exist) exports.syncro_fixing:gasmaskon(player) Other script: <export function="gasmaskon" type="server"/> function gasmaskon (player) aPlayerCheck[player]["gasmask"]=true; end Error: ERROR: call: failed to call 'syncro_fixing:gasmaskon' [string "?"] (both are running/no other errors)
  2. btw what would be better if I do or don't use weapons like 41 or 42? this way: if weapon == 41 or weapon == 42 then tick = getTickCount() if tick - lastShot> 20/getGameSpeed() then lastShot = tick return; end onClientPlayerWeaponFireFunc_CallBack(source, weapon, hitX, hitY, hitZ, hitElement ); else -- now he does not have to calcullate tickcount, but he do have another 2 lines. onClientPlayerWeaponFireFunc_CallBack(source, weapon, hitX, hitY, hitZ, hitElement ); end or if weapon == 41 or weapon == 42 then tick = getTickCount() if tick - lastShot> 20/getGameSpeed() then lastShot = tick return; end end onClientPlayerWeaponFireFunc_CallBack(source, weapon, hitX, hitY, hitZ, hitElement );
  3. like this one? function weaponfire(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) tick = getTickCount() if tick - lastshot > 50/getGameSpeed() then outputChatBox("lol") lastshot = tick return end outputChatBox("works") end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), weaponfire ) or can it be smaller? Thx for the help
  4. I like to know how to make a script execute with a limit at speed rate. (Best way) See script> Script sample: function weaponfire(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) outputChatBox("etc.") end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), weaponfire ) If I use a shotgun the outputchatbox does have low speed rate. A spraycan does have a speed rate at client render. See weapon flag 0x000400 - fires every frame within loop (ie paint spray) . How can I make a limit at execute a script? (like a timer etc (lagg)) Thx
  5. IIYAMA

    player syncs

    Hello, I got a question. Distance: This is within 140 units for vehicles and 100 units for peds. I am running a stealth server, but when are player syncs true? A player dies(non spectate): true/false A player dies (spectate others): true/false https://wiki.multitheftauto.com/wiki/SetElementSyncer
  6. Like to know the default? use: https://wiki.multitheftauto.com/wiki/GetWeaponProperty (will change afther set the settings)
  7. 1:Folder check(LOCATION) 2:Meta check 3:map check 4:gamemode check else Map or meta filebroken, when incorrect saving or using bugged gamemode objects. Also older servers can't support new .map. You have to fix it by, fix it in the script it self.
  8. ye, but I did not find the right corner sellection for the... thx
  9. I am not able to report bugs on bugtracker, I am only able to view. So if you are interested or able to test it. When you use the script: setVehicleDamageProof At the moment when you fall with a boat out of the sky on land, your vehicle still got damage. The vehicle wont explode, but the damage is still strange. https://wiki.multitheftauto.com/wiki/Set ... amageProof As far I know this bug isn't reported on bugtracker, I can't find it at all. Also onClientVehicleCollision does not seems to work for boats. I am the only person with this problem? Is this the right place to post this topic, if it isn't I am very sorry. It is a suggestion for a fix.
  10. is this on the bug tracker? or is it impossible to fix? As far I can see it isn't, that probally means it can't be fixed.
  11. nothing is impossible, the frame rate is optimal. Very high and stable fps, but the laggs has nothing to do with my settings. The lagg is a kind of stopmotion effect once in the 10 sec. But the fps does not drop a thing and I am long not the only men on earth who has this. Also fucked up shadows sometimes. see this sample: http://www.tomshardware.co.uk/forum/114 ... -quad-core and much more... Just bad ported that's it and I hope it will be fixed in 5.
  12. you can try this: function texto(texto) outputChatBox ( "Aviso: " .. texto ) end setTimer(texto,3600000,0,"Tienes hambre, come un poco") function startResource() for k,player in ipairs(getAlivePlayers()) local nivel = getElementData (player, "nivel") if nivel == 1 then setElementHealth ( player, getElementHealth ( player ) - 70 ) end setTimer(startResource, 3600000, 1, true) end end addEventHandler("onResourceStart", getResourceRootElement(), startResource) I don't think this is going to work because.... I am to tired to rebuild it
  13. You did not said it was serverside, But as I said, the element data must first be exist.
  14. That means you don't have set the element data yet, you have to set the element data first or to zero, bevore this script can be executed.
  15. How do you call this way of recreive data? and is this a good or bad way? pls don't start about function etc.... it is just a sample.. test = {} test[1]=2 test[2]=3 test[3]=4 test[4]=1 A = 4 B = test[A] outputChatBox (B) -- output in chatbox 1
  16. Check your bugs:(admin) /debugscript 3 I am not sure, but should this not be a:1 setTimer(startResource, 10000,1, true) --14 Because, he is already triggering him zelf again. Don't you need to use: localPlayer ? localPlayer = getLocalPlayer ( ) Player = getLocalPlayer ( ) function texto(texto) outputChatBox ( "Aviso: " .. texto ) end setTimer(texto,3600000,0,"Tienes hambre, come un poco") function startResource() local nivel = getElementData (player, "nivel") if nivel == 1 then setElementHealth ( player, getElementHealth ( player ) - 70 ) end setTimer(startResource, 3600000, 1, true) end addEventHandler("onResourceStart", getResourceRootElement(), startResource)
  17. IIYAMA

    [Help]

    [s.K] You don't need, you are just lazy. Learn it your self or pay for it. Free does not exist, maybe in your dreams. The forum is for: help with the works and help with the language. Forum isn't for: free scripting, also stealing is out of the question.
  18. Lets hope they ported next time better from Xbox to pc. Now I got i7 quate 3,5 ghz, 7970 cuii top and still lagg in gta 4 (I like to play everything on max>veryhigh/ultra settings, Xbox does not give that to me)
  19. These bugs are "most of the time" caused by mods. sample:(in the past) Stealth gamemode does have a shield, this shield was bevore a ramp. (joined bevore [GCC]stealth server) When I joined a race/dd server this ramp wasn't sollid any more. The funny thing was that I drove with arround 5 players the same direction and the next moment I fall trought the floor. The next moment all player exploded, because under this ramp were barrels. :3 But somehow this bug has been fixed for me, never had this problem again. As I said most of the time, it also depends on the server. In my own server the object of an "olie drum" is sollid, but when I join the stealth server with the same map, it isn't sollid.
  20. IIYAMA

    Camera loss hp

    When you set you camera to another location, the objects under the ped will be gone(unloaded) and he will fall in the ground. At the moment your camp will be back, your ped will be in the ground. Thats probally why you have the damage. https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage < cancel the damage when u use the camp. If you don't believe me, go inside a hydra(or what ever you like, hydra is creates the most problems) ON the GROUND and spectate your friend with admin pannel, return afther 20 sec and see what happens.
  21. Thats why: so blind as a chicken
  22. If you can't find this leg shot, you are so blind as a chicken. Love you to Casper ! Greets adminstrator [GCC]
  23. The peds of the spawns are just peds, If your position is right, the players will be spawned inside. So if you are able to place the spawnpoints under the map. You are able to change in the .map the Z -as, of the spawnpoints + circa 3/5 Else you can create makers on the spawnpoints(the place) and copie the maker position to the spawnpoints. or if you aren't able to fix that on the .map, you can copie the maker objects of differend teams and 2 pedspawnpoint(does not matter where this ped might be)of each team. and I make it for you. (these objects are in the .map)
  24. Why don't you set the alpha to zero when the door should be in the wall? https://wiki.multitheftauto.com/wiki/SetElementAlpha
  25. Sometimes I got this bug to, no Idea why. Very annoying in a deathmatch mode
×
×
  • Create New...