Jump to content

gokalpfirat

Members
  • Posts

    314
  • Joined

  • Last visited

Everything posted by gokalpfirat

  1. Solidsnake yours is not working JR10 yours is too.
  2. It works but /all command dont works.
  3. JR10 yours i think works but marker doesnt visible i cant see x,y,z is true.
  4. I test it again but it doesnt works i see marker when i hit dont matter why i can give you a ss if you want.
  5. Now when i hit marker outputChatbox dont works.
  6. Now i use lua tags. When i hit marker it doesnt matters?
  7. function ResourceStart() marker = createMarker ( 1449.3040771484, -2937.9020996094, 2.9447371959686, "cylinder", 1, 255, 255, 0) setElementData(getLocalPlayer(),"all","0") setElementData(getLocalPlayer(),"tea","0") setElementData(getLocalPlayer(),"water","0") end addEventHandler ( "onResourceStart", getRootElement(), ResourceStart ) function MarkerHit( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" then outputChatBox( "You are now in my cafe.", source, 255, 255, 0 ) outputChatBox( "If you want drink water use /water .", source, 255, 255, 0 ) outputChatBox( "If you want drink tea use /tea .", source, 255, 255, 0 ) addCommandHandler ( "water", water ) addCommandHandler ( "tea", tea ) end end addEventHandler( "onMarkerHit", marker, MarkerHit ) function markerLeave( leaveElement, matchingDimension ) if getElementType( leaveElement ) == "player" then outputChatBox ( getPlayerName( thePlayer).."has left the cafe.", getRootElement(), 255, 255, 0 ) removeCommandHandler ("water", water) removeCommandHandler ("tea", tea) end end addEventHandler( "onMarkerLeave", marker, markerLeave ) function water ( thePlayer, command ) outputChatBox( getPlayerName( thePlayer).."drunk water.", 255, 255, 0 ) setElementData ( thePlayer ,"water",tostring(tonumber(getElementData(thePlayer,"water"))+1)) end function tea ( thePlayer, command ) outputChatBox( getPlayerName( thePlayer).."drunk tea.", 255, 255, 0 ) setElementData ( thePlayer ,"tea",tostring(tonumber(getElementData(thePlayer,"tea"))+1)) end function all ( thePlayer, command ) local bira = tostring(tonumber(getElementData(thePlayer,"tea"))) local raki = tostring(tonumber(getElementData(thePlayer,"water"))) local toplam = tostring(tonumber(getElementData(thePlayer,"tea"))) + tostring(tonumber(getElementData(thePlayer,"water"))) outputChatBox( getPlayerName( thePlayer).."drunks"..toplam..".["..water.."water"..tea.."tea]", 255, 255, 0 ) end addCommandHandler ( "all", all ) Its server-side. It doesn't works can you help?
  8. gokalpfirat

    3D sound

    How to stop 3D sound?
  9. I wrote some codes buy they didnt work. I want that when you wın the map that a girl is dancing top of your vehicle like ffs.
×
×
  • Create New...