Jump to content

scratcher911

Members
  • Posts

    105
  • Joined

  • Last visited

Everything posted by scratcher911

  1. like it I have 59000 milliseconds it will show like 00:59:00. EDIT: Thanks solid!
  2. use dxDrawText onClientRender
  3. Can somebody post that function witch transfer milliseconds to format like this 00:00:00 I saw it somewhere on forum but I can't find it. Thanks, Scratcher
  4. In script
  5. Thanks
  6. Hi. I am using getRealTime function. So if the time is 4 o'clock it shows 4. I wanna that it outputs 04 instead of 4. How? Greets: ScratcheR
  7. Can you update link please ?
  8. aName = string.gsub(name or something in string here,"_"," ")
  9. function crtwpn() weapon = createWeapon ( "M4", 25.5, 1523.0930908203, 12.705202865601 ) end addCommandHandler ( "weapon", crtwpn) and be sure that is client side.
  10. scratcher911

    RPG vs Roleplay

    I prefer PRG because most of Roleplay servers are the same. I mean that the most scripts are stolen Valhalla scripts or just modified like Shodown or TwinGold. I realy didn't see any Roleplay server that is not Valhalla.
  11. Thanks AMARANT!!
  12. thanks. But the same problem ...
  13. what do you mean ?
  14. I have problem with tables. When I make marker only one marker works. all should work but IDK why it doesn't. Here's my code; local jobs = { {"Police Officer",1547.06470, -1681.80249, 13.55873, 0, 100, 255}; {"Paramedic",1178.41431, -1328.58850, 14.11890, 0, 255, 255}; } for _, job in ipairs (jobs) do jobMarker = createMarker(job[2], job[3], job[4], "cylinder", 1.5, job[5], job[6], job[7]) end addEventHandler("onClientMarkerHit", jobMarker, function() --CODE HERE end )
  15. oh. Thanks didn't notice that.
  16. addEventHandler("onClientMarkerHit", jobMarker, function() local red, green, blue = getMarkerColor( source ) local name = getElementData(source, "JobName") local info = jobsInfo[getElementData(source, "JobName")][1] local skins = jobsInfo[getElementData(source, "JobName")][3] createJobWindow(name, info, RGBToHEX( red, green, blue ), skins) end function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end why it shows RGBToHEX a nil value ?
  17. do you have element data for group or what ?
  18. I don't understand what you mean. SELECT means you can only get data not insert or something like this. It won't change anything in phpmyadmin.
  19. I think that is originally in resources resource called traffic
  20. use playSound or you can use playSoundFrontEnd for the sound from GTA
  21. Post your log here.
  22. try updating it to latest versions http://code.google.com/p/mtasa-resources/downloads/list?q=label:Latest
  23. maybe because you don't have maps ?
  24. addCommandHandler("Lift", function( thePlayer, Command ) -- You forgot function here local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then liftWarpPlayer(thePlayer) else outputChatBox ( "#FF0000Permission: You Don't have Permission to use This Command", getRootElement(), 255, 255, 255, true ) end end )
  25. There isn't anything wrong with the code. Are you sure that is client side ? Show me your meta.xml
×
×
  • Create New...