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. 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
  3. 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
  4. aName = string.gsub(name or something in string here,"_"," ")
  5. function crtwpn() weapon = createWeapon ( "M4", 25.5, 1523.0930908203, 12.705202865601 ) end addCommandHandler ( "weapon", crtwpn) and be sure that is client side.
  6. 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.
  7. thanks. But the same problem ...
  8. 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 )
  9. 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 ?
  10. do you have element data for group or what ?
  11. 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.
  12. I think that is originally in resources resource called traffic
  13. use playSound or you can use playSoundFrontEnd for the sound from GTA
  14. try updating it to latest versions http://code.google.com/p/mtasa-resources/downloads/list?q=label:Latest
  15. maybe because you don't have maps ?
  16. 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 )
  17. There isn't anything wrong with the code. Are you sure that is client side ? Show me your meta.xml
×
×
  • Create New...