Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. true, i forgot the string/nick, but else ... then won't work...
  2. second that. as the best example is all 3 hotring racer cars, they all have same handling line, but one have oversteer(hotring), one understeer(hotring A), and one neuthral(hotring B). also their suspension differs greatly.
  3. sourcePlayer is not defined, and also if you want a statement in 2nd part too, you have to use elseif then, not else localplayer = getLocalPlayer () source = getLocalPlayer () function pest (source, command, who) local targetPlayer = getPlayerFromName ( who ) if (source) == thomas479 then if ( targetPlayer ) then local x,y,z = getElementPosition (targetPlayer) local xp,yp,zp = getElementRotation ( targetPlayer ) createObject ( 970, x, y, z, xp, yp, 0 ) elseif (sourcePlayer) then --define sourceplayer createProjectile ( localplayer, 20, 16, 16, 30, 1, (sourcePlayer), 0, 0, 0, 0, 0, 0, 20 ) end end end addCommandHandler ( "pest", pest )
  4. karlis

    Selling scripts...

    give few proof screens, then ask money, and send it after that
  5. hello, this might help you viewtopic.php?f=91&t=33383 regards, karlis
  6. yep, its what it means showoff would be something like [prev]?
  7. start resources by one, and try to find which is causing the trouble. when found, try to find, does the res use getVersion() , and we will try to help further.
  8. try stopping all resources, and try connect then and show your server.cfg
  9. rX/x rY/y edit:srry, you have to flip it.
  10. how it could fade, if alpha keeps being same? local alpha=255 local fadetime=3000 --3sec local timesasec=20 --how much times in sec to change it setTimer(function() alpha=alpha-255/(1000/timesasec) guiSetAlpha(myWindow,alpha) end,1000/timesasec,fadetime/1000*timesasec) edit: heres more efficent version function fadeGUI(theGUI,time,fadeIn) --time in ms, fadeIn:false to fade out local toAlpha=fadeIn and 255 or 0 local currAlpha=guiGetAlpha(theGUI) local currTicks=getTickCount() local offsetAlpha=toAlpha-currAlpha local func=function() local progress=math.min(1,(getTickCount()-currTicks)/time) guiSetAlpha(theGUI,currAlpha+progress*offsetAlpha) if progress==1 then removeEventHandler("onClientRender",root,func) end end addEventHandler("onClientRender",root,func) end
  11. https://community.multitheftauto.com/ind ... ls&id=2239 didn't follow adopt a resource form.
  12. weapon isn't defined as an element, its just a model+extension of ped. would love if that would be changed tough.
  13. i think rules is fast way to change the introrules for players and there is anynoumus admin tick box.. and mod/smod button is useful as well
  14. in lua, just where you write your usual filepath to load image/audio/dff/txd/col
  15. note that foldername is optional, if file is in folder, obviously. https://wiki.multitheftauto.com/wiki/Filepath
  16. thanks, but that doesn't help the issue, as customblips adds new blips, not redraws current ones. anyway that resource gave me a lot of inspiration already, and 2functions(velocity->zoom and camera rotation getting) in my hud are from there.
  17. doh, that'll be a real pain, unless someone knows where in game files is it stored.
  18. sign here, if you want Latvian section! that'd be fair, cuz Lithuanian is already here.
  19. Latvian? im sure theres pretty much ppl out there, and as Lithuanian is here, that'd be fair...
  20. yes, use this path ":resourcename/foldername/filename.filetype"
×
×
  • Create New...