Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. theres already an topic, why new one?
  2. could be fixed with setElementSyncer soon on 1.0.4
  3. no replace, but you could make something with dxDrawImage() getScreenFromWorldPosition() isElementOnScreen() also take look at: https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions
  4. addCommandHandler("roll", function(player,comd) randomroll = math.random(1, 3000) lossorwin = math.random(1, 3) if lossorwin == 1 then givePlayerMoney(player, 3500) outputChatBox ( getPlayerName ( thePlayer ) .. ' roll and wins ' .. randomroll .. ' !', getRootElement(), 255, 255, 0) elseif lossorwin == 2 then takePlayerMoney(player, 3252) outputChatBox ( getPlayerName ( thePlayer ) .. ' roll and losses ' .. randomroll .. ' !', getRootElement(), 255, 255, 0) elseif lossorwin == 3 then setPlayerMuted(player, true) setTimer(setPlayerMuted, 30000, 1, player, false) end end )
  5. karlis

    commands

    i think this is completley fucntional, correct me if im wrong outputChatBox(getPlayerName(source)..": #FFFFFF".."%q":format(text:gsub("#%x%x%x%x%x%x","")),getRootElement(),240,30,150,true)
  6. karlis

    commands

    you said if you want to still show the command just uncoment --- it isnt functional because it dont have nametag colored, and output at chat is not prevented from hex and eg. \n
  7. karlis

    commands

    thats stupid, just don't cancel event then, besides your output is not fully functional
  8. someone should make edf, would be easy
  9. function from dxspeedometer resource: function toboolean(bool) if bool=="true" or bool==1 or bool==true then return true end return false end
  10. yep, and producing blips w/o radar is easy one thing i would like is possibility to change "blips only"
  11. rob, square radar will be possible in 1.0.4 i think(unless rotation will spoil dxDrawImageSection, too)
  12. But how in SAMP people add like objects ?? Using MTASA means you are Mapper (i mean know from it) ? pff thats stupid! Go play some servers before saying so
  13. nice, btw i think in credits should be R3mp, not Remp
  14. make sure dxDrawImageSection() is ready for 1.0.4 , but ncie work!
  15. yes, according other topic he don't know where to put the files...
  16. karlis

    Slow Motion

    no need for player checking, its always there
  17. im not sure, but i kinda remember dynamic objs synced.or im wrong?
  18. not sure is tha a question rly, but they suport only wave height changing, thats it
  19. https://wiki.multitheftauto.com/wiki/Server_Manual
  20. you will need adjust it with https://wiki.multitheftauto.com/wiki/SetElementSyncer from 1.0.4 upwards for sync issues fixing
  21. how can you run server if you even dont know where to put it!!!! https://wiki.multitheftauto.com/wiki/Server_Manual
  22. karlis

    chatbox

    outputChatBox( getPlayerName( someGuy ).." has in his pocket "..getPlayerMoney( someGuy ).."$ right now", getRootElement(), 0, 255, 0 ) root -> getRootElement() You can also use 'root'. Its same as getRootElement(), try to 'run root' in runcode, you will see.. dumbass its just saved as variable in front of some scripts
  23. well, i can try to explain... function getspeed(player,mph) unit = mph and 100 or 160.9 --if mph argument set to true then use mph convertion, else use kph vx,vy,vz = getElementVelocity( getPedOccupiedVehicle( player ) or player ) --not sure, will getting speed of player work? return math.floor( ( vx ^ 2 + vy ^ 2 + vz ^ 2 ) ^ 0.5 * unit + 0.5 ) --it could be shorter without rounding end
  24. ...you need lua for it
  25. no way, but i think its small enough to dont spoil anything, and thats mta advert, and it should be there
×
×
  • Create New...