Jump to content

Yazir

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by Yazir

  1. Yazir

    Relative angles?

    I meant world, not "word" . Anyway, I don't think you can get me. I'll try to start from scratch. When this: setVehicleTurnVelocity( getPedOccupiedVehicle( localPlayer ), vx + 1, vy,vz ) --*vx, vy, vz is current velocity of the car. is called, then if i'm heading north (up of the map), it will spin me forward, as expected, BUT if i'm heading for example east (right of the map, 90 degrees more than north), it will spin me counter-clockwise (to left). If i will be heading west, it will spin me clockwise (to right). I want, to make my vehicle spin forward, not sideways.
  2. Nobody will work for free.
  3. Create marker and use onMarker Enter/Leave. Or use a zone.
  4. Yazir

    Relative angles?

    When you set -x, then it always spin you north. It can push you sideways, front or back. It isn't relative to word.
  5. Yazir

    Relative angles?

    I know that function, but i'm not sure how to use it by desired needs. I don't want to set anglr, but force impulse of rotation.
  6. I wanted to ask if i could set 3d angles relatively to vehicle's position. I want to use this function. https://wiki.multitheftauto.com/wiki/Se ... rnVelocity How do i make it? What could i use?
  7. We don't see which line it is.
  8. Nope, it doesn't work. I put whole resource here: xxx Nvm. I found the error... I wrote sumbitLogin instead of submitLogin . Damn, I'm too goofy.
  9. I did that, and that didn't do a thing.
  10. But even though, I don't know why i have error "ERROR: Client (Yazir) triggered serverside event submitLogin, but event is not added serverside" addEvent( "sumbitLogin", true ) addEventHandler( "sumbitLogin", getRootElement( ), function(username,password,mode) if mode == "login" then if logIn( source, username, password ) then outputChatBox( "You've logged in successfully!", source, 231, 217, 176) else outputChatBox( "There was an error in loggining in. There might be no account on that name or you have put wrong password!", source, 231, 217, 176) end elseif mode == "register" then if addAccount( username, password ) then outputChatBox( "You've registered successfully!", source,231,217, 176) else outputChatBox( "There was an error in registering. There might be account on the same name!", source,255,217, 176) end end end) I've registered event at the beggining. What is wrong there?
  11. I have a problem, i don't have idea why it won't start function clientSubmitLogin(button,state) outputChatBox( "test") if button == "left" and state == "up" then local username = guiGetText(loginLogin) local password = guiGetText(loginPwd) if username and password then if source == loginButtonLogin then triggerServerEvent("submitLogin", client, username, password,"login") elseif source == loginButtonRegister then triggerServerEvent("submitLogin", client, username, password,"register") end guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter a username and password.") end end end addEventHandler("onClientGUIClick", getRootElement( ), clientSubmitLogin, false) It doesn't even exec the outputChatBox("test") Script is client-side. Got no errors on debugscript. @edit Neverming, i see i made my fault at handler, where fourth parameter is false, and that disables activating it by clicking children elements.
  12. Yes, but how do i make player get registered like this by gui? And also, how do i check, what error I've made in client-side scripts?
  13. Hey, i was wondering, if i could register and login a player by using the default mta login system. Can i write any console command on player as a server?
  14. Please, help me these didn't worked well: setTimer( function () setPlayerArmor ( localPlayer, ( getPedArmor ( localPlayer ) + 10 ) ) end,100,0) setTimer( function () setPedArmor ( localPlayer, ( getPedArmor ( localPlayer ) + 10 ) ) end,100,0)
  15. Ill give an example: setTimer( function () setElementHealth ( localPlayer, ( getElementHealth ( localPlayer ) + 0.05 ) ) end,100,0) This is healthregeneration, i need armor now. Please...
  16. But, please. That is easy script but i know 5% of Lua language .
  17. Like in the subject, i need this script. Must be easy to change for my own use.
  18. how to use this? local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
  19. https://dl.dropboxusercontent.com/u/443 ... -40-41.png
  20. 6. I don't know, I never used that resource 7. Check the community or else make it yourself 8. local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) 9. https://community.multitheftauto.com/ind ... ils&id=135 10. Free For All? That's Play. 11. Don't know; ask in the Scripting section. 12. With guest and Without guest. There are many other login panels in the Community. 13. I don't know. You can report the bug here 8,9) Thanks! 10) I mean, gamemode there is no f1 panel and stuff and "cheats" like this, i want to have only mine map .\ 12) It's good, but i have bug https://dl.dropboxusercontent.com/u/443 ... -27-17.png. I can play with this, but you see...
  21. This doesn't work for me , ss: https://dl.dropboxusercontent.com/u/443 ... -08-37.png https://dl.dropboxusercontent.com/u/443 ... -08-42.png https://dl.dropboxusercontent.com/u/443 ... -08-49.png nvm, works now, nice job
  22. Really thanks! if i will have another question i will add 6)q
  23. I have different, i must "start #resource#" every time.
  24. 1) Make sure the map resource has a meta.xml and a .map file. Then you can add the resource into the resources folder. 2) https://community.multitheftauto.com/ind ... ils&id=141 3) There are some on the Community. 4) https://community.multitheftauto.com/ind ... ails&id=51 5) What do you mean by addons? Ty, i updated 5th question (God bless google translate) Btw. 1q, i doing all right (i think).
×
×
  • Create New...