Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. não vo ajuda você nisso, qual é a finalidade disso ?
  2. no work, sorry for the delay, more more was traveling
  3. @StanleySathler quase perdendo sua vaga na staff do MTA e ressuscita do nada foda em man
  4. I not got it Client local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) function LekRoots() local visits = increaseVisitCountOnJoin(getLocalPlayer()) dxDrawText("Visits"..visits,x*100, y*450, x*1420, y*90,tocolor(255,255,255,255),0.6,"bankgothic","left","top",false,false,false) end Server local visitCount = 0 function increaseVisitCountOnJoin() visitCount = visitCount+1 end addEventHandler("onPlayerJoin", root, increaseVisitCountOnJoin)
  5. can make an example to me, try to understand? thank ever since already.
  6. just want to count all players My example: local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) function LekRoots() local visits = NAME_FUNCTION ??????? dxDrawText("Visits"..visits,x*100, y*450, x*1420, y*90,tocolor(255,255,255,255),0.6,"bankgothic","left","top",false,false,false) end
  7. Hello, wanted to show on the screen a total number of hits on my server. what function should I use? example in my screen Players online: 20 Visits: 500
  8. delete https://community.multitheftauto.com/ind ... s&id=10221 DONE
  9. OMG, this type of script does not need ClientSide he is Serverside.. I just do not know, because it not save..
  10. me add in skype ( srzik4 )
  11. use ( http://imgur.com ) to upload the image
  12. Hello, I have a problem with this my script, he is not saving my playing time in the database. when I go out of the game or even the logout, someone help me? call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Tempo jogado", getRootElement(), 8, 0.16) local t = { } function checkValues( source,arg1,arg2) if (arg2 >= 59) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 59) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "Tempo jogado", "h: "..string.format("%02d",tostring( hour ))..' m: '..string.format("%02d",tostring( min ))..' s: '..string.format("%02d",tostring( sec )) ) end end, 1000, 0 ) function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local sValue = getElementData( source,'Tempo jogado' ) setAccountData ( playeraccount, "Tempo jogado", tostring(sValue) ) end t[ source ] = nil end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local time = getAccountData ( playeraccount, "Tempo jogado" ) if ( time ) then setElementData ( source, "Tempo jogado", time ) else setElementData ( source, "Tempo jogado",0 ) setAccountData ( playeraccount, "Tempo jogado",0 ) end end end function onPlayerLogOut ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local sValue = getElementData( source,'Tempo jogado' ) setAccountData ( playeraccount, "Tempo jogado", tostring(sValue) ) end t[ source ] = nil end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerLogin", root, onPlayerLogin ) addEventHandler( 'onPlayerLogout',root, onPlayerLogOut )
  13. It uses GTA's tuning shop blip. If you want a custom one you'll have to do it yourself man sorry more, in small details that, agent notices a service nice. already you made based on GTA V, whim in the details my vote -10
  14. I also do not understand, I only like its of map very nice
  15. OOhhh Myyyy Godddddd I want names, not id
  16. I understand, most only have these names? ( heat_02, heat_01, bobo_2 ) I want more object names besides these....
  17. friend, I just want the names of the outdoors I do not speak English, so help me please
  18. what is the name? to find the names of objects
  19. Hello, does anyone know where I can find the names objects of the outdoors, so I can create a shader here are the names I could find ( heat_02, heat_01, bobo_2 ) engineApplyShaderToWorldTexture ( shader, "heat_02" ) engineApplyShaderToWorldTexture ( shader, "heat_01" ) engineApplyShaderToWorldTexture ( shader, "bobo_2" )
  20. @PauloCascus sorry-me by propagate the video @Bilal135 I posted the video for you https://www.facebook.com/video.php?v=870898746277469 "@PauloCascus Very nice job, I want, the panel "
×
×
  • Create New...