Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. that handler I don't know: I am not sure if an event can also activate the trigger. Because the event does not have target the script... Can't you put handler out of the function? If you trigger from other side client/server, can't you better use? addEvent ( "onPlayerWasted", true )
  2. IIYAMA

    Aim and walk

    nice!!!
  3. IIYAMA

    Aim and walk

    ehm, strange bug. What is your local fps on the server? Because I know this bug: when you put your fps higher than 70, you wont be able to shoot and walk at the same time. Circa 45 is good.
  4. IIYAMA

    Water function

    ok, well I created them with the editor. But about the water. If your water is invisible, you can place with the editor fake water above your invisible water. and to finish it, you use dark blue conor markers at the bottom of the water. ~~~~~~~~~~~~~~~~~~ ~~W~~A~~T~~E~~R~~ ~~~~~~~~~~~~~~~~~~
  5. IIYAMA

    Hud Replacement

    So when you write that in the .txd it will automatic change your hud?
  6. IIYAMA

    Hud Replacement

    You can try to download a gta4 mod. Remove the other files. Only hold the .txd files. Remove the weapon/other useless image and make sure only the hud replacer is in the .txd files. Than you put your image in there..... It is not so easy as it looks like... It is your choose.
  7. ok, that sounds interresting "paid scripter". Only mta scripts or also php, flash actionscript < this looks like it a little (for websites)?
  8. Solidsnake are you doing this all day? (I mean helping people with scripting) No school or work
  9. IIYAMA

    Water function

    Well the strang thing is why they don't allow it.. but karlis +1
  10. IIYAMA

    Water function

    yes, interior is not the right place to create water..... Also vehicles will be invisible... just gta bug.... Maybe you can try to reset water color... maybe it does work. Let me know https://wiki.multitheftauto.com/wiki/SetWaterColor (ask a admin to make a server script for you, I am to lazy ) Also: Create water does not work to far from the homelands... (and pickups will be invisible to ) I hate that f.u.c.k.i.n.g bugs... but nothing you can do about it... I have always trouble with that, I make maps away from the homelands, so you don't have to load normal gta objects, but ofcourse the bugs.
  11. Make lots of triggers instead of onclientrender? Like: onPlayerSpawn(all), onPlayerWasted(all), reloadgun(ammo/weapon_img), onPedDamage/onPlayerDamage(armor/health), onPlayerWeaponSwitch (ammo/weapon_img), onClientPlayerWeaponFire(ammo/weapon_img) (I don't know if they are all true... it is just a sample of it) Would that be better against lagg or does it make more lagg? and what about the names between >() sample: onPlayerWeaponSwitch > (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
  12. or maybe I can try this... https://wiki.multitheftauto.com/wiki/OnClientHUDRender
  13. IIYAMA

    Help

    lol I did not saw that when I posted my reply I will try thx
  14. Well onclient render does lagg a little. I can feel it, when my hud is running. I have still the max frames, but the smooth movements are gone -_-'
  15. IIYAMA

    Help

    so how do I fix it? use a timer or something like that(timer arround the triggers)? or splits the script?
  16. IIYAMA

    Help

    I don't know what the problem is with stealth: ERROR Server triggered client side event swaptoggle, but not added clientside. MAN are there to many triggers inside stealth server side. wtf is this for shit. I get always the same errors....
  17. IIYAMA

    adding XML Files

    I also wanna know this. But I think it is: Table > Makes it possible to use function on things inside this table. (take all the vehicle and use at one of these the script.) row and col> first check if they exist. "row and col and" Check count of them. "~= -1 and col ~= -1" Maybe we can find it here: http://www.lua.org/manual/5.1/manual.html PLS I seriously need to know if what I am saying is right!! Need some profesional information!!
  18. IIYAMA

    spawn timer

    Because I am still learning
  19. ops lol forgotten
  20. You can better try that one of Hunterix.. Because I am not sure about my script
  21. setTimer ( black, 2000, 1) --check timer > function black. function black (player) local account = getAccountName(getPlayerAccount(player)) --get account if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then --check if it is admin local theVehicle = getPlayerOccupiedVehicle ( player ) -- get the vehicle if theVehicle then -- check if it does exist setVehicleColor ( theVehicle, 0, 0, 0, [0, 0, 0,] [0, 0, 0,] [0, 0, 0] ) --setcolor end end end I used the timer because in a race map, you wont enter your vehicle.. but you spawn with it. -- Maybe this... I can't test it right now (school)..... I hope it works.
  22. timer don't lagg, but I think what I did is also good. But maybe you know the game age of empire 3? Well I made a map with arround 1200 scripts and it is crashing in mutiplayer I love the game but I hate the out of sync
  23. IIYAMA

    spawn timer

    --if you use this script above mind> fucntion whatever = function whatever (I post this at the sametime as his one I am a noob scipter... pls say If I do something wrong. I write it down like this: (it can be smaller) function Wasted () -- function Wasted <<< setTimer ( Wastedtimer, 2000, 0 ) -- this is the timer and will activate the second function. end addEventHandler("onPlayerWasted", root, Wasted) -- this checks when you die. "The Wasted" activate the function Wasted. function Wastedtimer () spawnPlayer ( source, 0.0, 0.0, 0.0, 0.0, 0 ) end --[[ just fill it in. (mind all players will be spawned at one location.) Required Arguments thePlayer: The player you want to spawn. x: The x co-ordinate to spawn the player at. y: The y co-ordinate to spawn the player at. z: The z co-ordinate to spawn the player at. Optional Arguments rotation: rotation of the player on spawn. skinID: player's skin on spawn. interior: interior the player will spawn into. dimension: The ID of the dimension that the player should be in. theTeam: the team the player will join. More info about spawning: https://wiki.multitheftauto.com/wiki/SpawnPlayer ]]
  24. yes that is right, but this is about deactivate the gta san hud. It is not about showing up the GCC hud GCC = clan
  25. yes I saw the resource.. But I want the lagg so low as possible. So my choose is: OnClientPlayerSpawn, "gamemode" and "map"
×
×
  • Create New...