Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. why would you do: cancelEvent() I see no reason to do that for these lines. When the event got executed it is already to late for this function.
  2. http://imageshack.us/photo/my-images/692/2sn.png/ http://imageshack.us/photo/my-images/543/7o2f.png/
  3. The new function HUD Match Aspect Ratio is ruining my directX hud. I positional the hud relative so it would fit for everybody in combination with the normal hud. But now this new function moves my (default)hud down and it will overflow. Is there any way to solve this? Else it would mean that I have to make my whole hud dx. My deadline for my beta spy vs spy gamemode is Sunday. thank you for reading and I hope you have a solution for me.
  4. local accountCheckQuery = mysql:query(accountCheckQueryStr) -- get database account Script problem: mysql:num_rows(accountCheckQuery) -- returns boolean = false/true at the moment if mysql:num_rows(accountCheckQuery)>0 then -- here you are comparing the boolean with the number 0. and how the solve it? I have no idea, because this is the result from something that went wrong at another part of the script.
  5. Then you are at the wrong section mate, Resources Put your resources here: MTA San Andreas 1.3\server\mods\deathmatch\resources
  6. IIYAMA

    small help

    Why don't you first run a test? Check if the name is correct. addEventHandler('onPlayerConnect', root, function() local country = exports.admin:getPlayerCountry(source) outputChatBox(tostring(country) or "problems with admin, failed to receive correct information") end ) Tell me what it returns in the chatbox.
  7. I may not need any support at all, but about what kind of support are you talking about?
  8. The problem: setWeaponProperty doesn't make changes, in weapon range and accuration and everthing else. The result ends up "true", that means that it have to work. But it doesn't change a damn. local weapon1 = createWeapon ( "m4",0,0,5 ) outputChatBox("result: " .. tostring(setWeaponProperty ( weapon1, "accuracy", 0.00001)).. " accuracy have been succesfull set") outputChatBox ("result: " .. tostring(setWeaponProperty ( weapon1, "weapon_range", 0.00001)) .. " weapon_range have been succesfull set") setWeaponState (weapon1, "firing")
  9. You have no idea what I have created in the past, I AM NOT A NAB SCRIPTER. TAKE ME SERIOUSLY!@! -_-"
  10. Does that mean it only supports "damage", If that is true, then wiki mta is very unclear. -_-" I script client side. pls take me seriously, I am not a nab.
  11. It is already working. Strange temporary driver problem. Well you need to add the lua file to the meta.xml. I can script normal, I don't make much of that stupid mistakes.
  12. both are correct. Normally that is in my vehicle weapon script. Does it work for you, changing them? (I get the boolean true returned, but it doesn't change anything)
  13. everything defined? vehID, vx, vy, vz, 0, 0, vrot
  14. Why don't setweaponproperty from custom weapons work? somebody does have the same problem? meta: local weapon1 = createWeapon ( "m4",0,0,0+5 ) setWeaponClipAmmo ( weapon1,99999) setWeaponProperty ( weapon1, "accuracy", 0.00001) setWeaponProperty ( weapon1,"weapon_range", 0.00001) setWeaponState (weapon1, "firing")
  15. Hmm nvm, I have no Idea what did just happened, but it seems like my drives didn't work. Probably because I changed my headset to box set. Never had this problem before. -_-" Really strange that it can conflict lua scripts.
  16. My sound script some how stopped working, I have no Idea why, it just did. meta.xml <file src="material/music/Spy_vs_Spy_main2.mp3"/> introMusic,soundState = playSound("material/music/Spy_vs_Spy_main2.mp3", true),true if not introMusic then outputChatBox("introMusic doesn't exist " .. tostring(introMusic)) -- this one will output in the chat box end --as extra test: if not fileExists ( "material/music/Spy_vs_Spy_main2.mp3", true) then outputChatBox("introMusic doesn't exist ") else outputChatBox("sound does exist!!") -- this one will also output in the chatbox. end so I am really confused, I changed some things, but I can't see my mistake.
  17. Learn the basic first, instead of requesting scripting modifications (of work from other people).
  18. Why the f* is it too hard to do this? local players = getElementsByType("player") for playerKey, playerValue in pairs(players) do if getElementHealth(playerValue)>0 then setElementModel (getPedOccupiedVehicle(playerValue), vehicles[math.random(#vehicles)]) end end The rest is yours.
  19. for the people that don't understand what this bug is: Watch the ammunition in the right corner. You see that the ammo from the desert eagle get reset to 10. Normally this slot would be filled up to 60.
  20. Well I created a system for that. I recommend you to search for client 'events' that got triggered before the vehicles got damaged. Like: onClientPlayerWeaponFire
  21. IIYAMA

    Firefighter

    no, "stopping the fire" https://wiki.multitheftauto.com/wiki/OnClientWeaponFire
  22. He is requesting, he is only interested in the whole code. (he don't know anything about lua) Waste of your time....
  23. IIYAMA

    Vehicle Help

    speed = getVehicleHandling ( theVehicle )["maxVelocity"] RPM??????
  24. I did start writing it before you post anything.
×
×
  • Create New...