Jump to content

bencskrisz

Members
  • Posts

    52
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

bencskrisz's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. It should spawn me in the Las Venturas planning department but it spawns me to nowhere.. probably there is a problem with the dimension or idk.. local Exitdoor = createMarker( 385.23818969727,173.71939086914,1007.3828125, "arrow", 1.5, 150, 255, 255, 0 ) setElementInterior( Exitdoor, 3 ) function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 1367, -1279, 13 ) setTimer ( setElementInterior, 1000, 1, player, 0, 1367, -1279, 13 ) toggleControl ( player, "fire", true ) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) local Doorentry = createMarker(593.58807373047,-1250.8880615234,19.250591278076, "arrow", 1.5, 255, 255, 255, 0 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer(setElementPosition, 1000, 1, player, 593.58807373047,-1250.8880615234,19.250591278076) setTimer ( setElementInterior, 1000, 1, player, 3, 593.58807373047,-1250.8880615234,19.250591278076 ) toggleControl ( player, "fire", false ) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore )
  2. Okay okay got it, wont post anything like this one more time.. Thank you for ur script but for some reason nothing happens when im in the marker and I write the command Why?? Script looks perfect tho OK it works now. The marker was too deep in the ground
  3. local marker = createMarker(2167.1208496094,-1672.4111328125,13.075506210327,"cylinder", 1.5, 139, 0, 285,77) local Blip = createBlipAttachedTo(marker,31) function myCommandHandler(thePlayer) if isElementWithinMarker(thePlayer, marker) then takePlayerMoney( thePlayer, 35000 ) outputChatBox('Gratulálok az új lakásához! A Lakás kulcsai mostantól az Öné! (IK: /086372)',player,60,238,7) end end addCommandHandler('lakasvetel1',myCommandHandler) So with this if I'm in the marker and type the command it gonna take the money from me and gonna get the output message. It obviously works. But I want a part in this script that does not allow you (with an outputchatbox text) to take the money from you when entering the command when you dont have sufficient money. Cause currently it just goes to minus, I mean my money even if I dont have sufficient money..
  4. I do remember I found a script that was similiar to this idea but I really dont know where did I find that. It'd be so cool if I could have this script again......I know this forum is not about asking scripts from people and I usually make those for myself but in this one I have no clue where to start.. Could someone help me in this one?
  5. Im working on a roleplay server and I always test the resources in local host server, however I have just noticed today that the freshly added resources are not even running on the server, only the older ones. Ive tried to start them with command but the server just cant find 'em while they are clearly there.. Currently there are maybe 20 resources running on the server.. The only thing what came to my mind was maybe there is a limitation of usable resorces for local servers..
  6. So I'd need a script what with typing a command would make a blip appear in a random position on the map (and radar) and if you reach it ,it disappears. Is it possible to make at all
  7. So basically I wanna have a marker in which you enter, a menu will appear and by pressing the arrows you can click between the different (vehicle) pictures (of what are in the library of the resource) and the name of the vehicle should appear below each picture. Is it possible to make a script like this? I really need your help guys, I already tried a lot but failed so far on this one..
  8. So basically I want it to work in this way -> The car enters the cylinder then some text gonna appear in chat like "repairing is under process" and you should wait for example 10 seconds before the starting of the function. The function and everything is below in my script. Can someone help in adding this into it? The script: spray1 = createMarker ( -2437.853515625, 1036.1303710938, 49.5, "cylinder", 5, 0, 255, 0, 50 ) function Reparar ( thePlayer ) local dinero = getPlayerMoney ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if ( not vehicle ) then outputChatBox( "#c8c8c8Steven: #ffffffGuruljon be a járműjével ide Uram, ha szervízre van szüksége. ", thePlayer, 255, 0, 0, true ) return end if ( dinero >= 300 ) then takePlayerMoney( thePlayer, 300 ) fixVehicle( vehicle ) outputChatBox ( "#c8c8c8Steven: #00ff00Sikeresen megjavítottam a járművét Uram!", thePlayer, 0, 255, 0, true ) else outputChatBox ( "#c8c8c8Steven: #ff1100Ne vesztegesse itt az időmet! 300$ alatt nem vállalok javítást!", thePlayer, 255, 0, 0, true ) end end addEventHandler( "onMarkerHit", spray1, Reparar ) spray2 = createMarker ( 1219.9140625,188.96229553223,18.952247619629, "cylinder", 5, 0, 255, 0, 50 )
  9. A bit off-topic (if you're still here) Can you check this for me out? -> It is the script what you solved for me, I just tried to add rotation but it does not rotate.. Can you check this too? I have no idea what is the wrong..
  10. local NPC = createPed(285,376.39947509766,-65.617164611816,1001.5078125) setElementInterior( NPC, 10 ) function NPCRotate ( ) local rotX, rotY, rotZ = getElementRotation(NPC) -- get the local players's rotation setElementRotation(NPC,0,0,rotZ+10,"default",true) -- turn the player 10 degrees clockwise end addCommandHandler ( "turn", NPCRotate ) local screenWidth, screenHeight = guiGetScreenSize() local range = 10 function NPCnametag() local x,y,z = getPedBonePosition(NPC,6) local px,py,pz = getElementPosition(localPlayer) if getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= range then local sx,sy = getScreenFromWorldPosition(x,y,z) if sx then dxDrawText("Bob",sx,sy,sx,sy,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end end function HandleTheRendering() addEventHandler("onClientRender",getRootElement(), NPCnametag) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
  11. One more question: why does the created ped spawns a bit far from the scripted coordinates? There wasn't any problem with the positioning with the first script what u sent me and now the nametag works perfectly but it does not spawn accurately according to the written coordinates. It spawns a few meters away. What value affected it?? Its strange Nothing nothing, I solved it!
  12. Thank you so much!! It still needs a lot of work to make it perfect but I can do that now. God bless you brother!
  13. Thank you so much! Now it appears but.. once I get close to it and then leave from the ped, the nametag wont disappear, its gonna be visible no matter how far im going away from the ped.. can you resolve this? I guess we should need a kinda maxrange or idk....
×
×
  • Create New...