Jump to content

xbenny2506x

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by xbenny2506x

  1. Hi! My problem is when i start a race mode the server say me in all race modes [23:05:31] start: Resource 'race-drift' started [23:05:31] ERROR: xmlLoadFile failed; ModifyOtherObjects in ACL denied resource race to access race-drift [23:05:31] WARNING: Error while loading race-drift: no meta.xml can me someone say how i can fix that. so that i can play the race mode. I have start the Resource: race too
  2. nice big thx now work my script with triggerClientEvent and small other things (wiki search: addEvent)
  3. Hi! I have a respawn after death script and wanted add a text so that the player see after the death how long is the respawn time. But i get a error if (zufalldeath == 1) then local x = -2225.376953125 local y = 2333.6584472656 local z = 7.546875 setTimer ( spawnPlayer, 10000, 1, source, x, y, z) setTimer(setPlayerSkin, 10000, 1, source, zufallskin) if ( spawntext ) then destroyElement ( spawntext ) end local spawntext = guiCreateLabel(0.20,0.03,0.94,0.2,"Respawn in 10 Seconds",true,wnd) guiSetFont ( dummyGUIElement, "sa-header" ) setTimer ( destroyElement, 10000, 1, spawntext, source ) end addEventHandler("onPlayerWasted", getRootElement(), deathHandler) ERROR: ...r/mods/deathmatch/resourcecache/maps/playerdeath.lua:12: attempt to call global 'guiCreateLabel' (a nil value) Can someone help me? THX
  4. HI Can someone help me with a Scoreboard in wiki i found not so much infos I need a Scoreboard with kills, death and money. I found many things about the kills but not death and money Hope someone can help me
  5. THX now the garage is open but when i click on "exit" in the menu, i can see the menu all the time when i am out of the tuning garage.
  6. xbenny2506x

    Race Maps.

    In many race maps is the meta.xml wrong! This is in 90% of all race files: 㼼浸敶獲潩㵮ㄢ〮•湥潣楤杮∽瑵ⵦ㘱㼢ാ㰊敭慴ാ 㰠湩潦琠灹㵥洢灡•慧敭潭敤㵳爢捡≥渠浡㵥䴢摩楁⁲慍桹浥•畡桴牯∽䱂十䅔數潲≸搠獥牣灩楴湯∽祍映物瑳䴠摩楡⁲慲散牴捡⹫†楗敤爠慯⁤楷桴猠浯⁥畦畴湲⁳湡⁤牧摡慩瑮⹳†敒灳捥⁴潴琠敨䈠䅌呓⁁牣睥∮瘠牥楳湯∽∰⼠ാ 㰠慭⁰牳㵣䴢摩楁⁲慍桹浥洮灡•㸯਍†猼瑥楴杮㹳਍††猼瑥楴杮渠浡㵥⌢敲灳睡≮瘠污敵∽楴敭楬業≴⼠ാ †㰠敳瑴湩⁧慮敭∽搣牵瑡潩≮瘠污敵∽㠱∰⼠ാ 㰠猯瑥楴杮㹳਍⼼敭慴 (no joke) Is this only my problem or my xml filr reader!? When i start the race mode, i see only error load error load.
  7. Is there a other script where work in MTA 1.0 for Pay'n'Sprays, Food Shops, AmmuNations? Mabako-services work not in MTA 1.0
  8. I have the problem only with the Remington. In MTA 1.0 the Wheel Arch Angels Garage Doors goes not up or down. Can you fix that plz THX
  9. Very nice Script! I like it!!! But when i want tune my remington i can see ony ~10% of the misc button.
  10. I know and i have look there and i have now a Scroll Bar but the info in wiki has no example ... wnd = guiCreateWindow( 311,101,1044,804,"Teleport Menu",false ); local scroll = guiCreateScrollPane( 10, 10, 1044, 804, false, wnd); local scrolldata = guiScrollPaneSetScrollBars(wnd, true, false); And nothing... i have make some buttons and text more than the 1044 but the Scroll Bar make nothing. And for what is that?? In wiki i found no info about this guiScrollPaneGetHorizontalScrollPosition guiScrollPaneGetVerticalScrollPosition guiScrollPaneSetHorizontalScrollPosition guiScrollPaneSetVerticalScrollPosition BTW you sure that the wiki search funktion dont bite
  11. I have a window and need now a Scroll Bar for turn left and right wnd = guiCreateWindow( 311,101,1044,804,"Teleport Menu",false ); Can somone say me how i can add a Scroll Bar? THX
  12. I have a question about this script, when i am not a admin but join in the server with the admin name without login can i use the command spawnveh too? Or must i do a login check after i ckeck the playername?
  13. about 7. https://community.multitheftauto.com/index.php?p= ... ils&id=331 and https://community.multitheftauto.com/index.php?p= ... ails&id=19 or http://development.mtasa.com/index.php? ... rideLights
  14. I have understand your script to 80%... For the vehicle teleport problem i found a way. And for the teleport in interior i have found getElementInterior and setElementInterior. It was not easy really not easy but now i check from where comes the player interior 1 2 3 ... and set him then back to 0 so that he can play normal with ">=" or back to 1 2 3... and many other checks Perfect is my script not lol I am sure it gives a easier way, i have seen many same things like in PHP, but is a long time ago that i have work with PHP...
  15. This script from 50p is very very nice only i have this 2 problems... I need so a nice Teleport menu for my server... I have many nice teleport places and nice maps, DM areas... and more. And this teleport menu is perfect for my server. So i hope 50p and help me there too. And all others can see this here too, this menu is perfect for a stunt server!
  16. removePlayerFromVehicle is not bad... But the vehicle is the then in the DM zone, that is not so good And now i have 2 problems first the vehicle not teleport in the DM zone and i have a DM zone in a house, but the teleport point in the house not working. The player fall down in the middle of nowhere Now i need really help PLZ!!!!
  17. Now i have a other problem... I have some DM areas and i want that the player cant teleport with a vehicle in the DM Teleport points. Can me someone say how i can do this? Client: addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), function( ) wnd = guiCreateWindow( 311,101,1044,804,"Teleport Menu",false ); .... location9 = guiCreateButton( 370, 170, 140, 30, "Halfpipe", false, wnd ); addEventHandler( "onClientGUIClick", location9, teleportTo, false ); location6 = guiCreateButton( 370, 210, 140, 30, "Looping", false, wnd ); addEventHandler( "onClientGUIClick", location6, teleportTo, false ); location11 = guiCreateButton( 370, 250, 140, 30, "DM Test 1", false, wnd ); addEventHandler( "onClientGUIClick", location11, teleportTo, false ); location13 = guiCreateButton( 370, 350, 140, 30, "DM Test 2", false, wnd ); addEventHandler( "onClientGUIClick", location13, teleportTo, false ); guiSetVisible( wnd, false ) -- hide the window when resource started and created the window bindKey( "F1", "down", function( ) -- bind the key F1, show/hide window when it's pressed: if wnd then guiSetVisible( wnd, not guiGetVisible( wnd ) ) end end ) end ) function teleportTo( ) -- here you will send text from button to the server, -- so you know which location you want to spawn triggerServerEvent( "YOUR_CUSTOM_EVENT", getLocalPlayer( ), guiGetText( source ) ); end bindKey( "F1", "down", function () showCursor( not isCursorShowing() ) end ) Server: LOCATIONS = { }; -- Add your locations here, -- text between [ and ] MUST be the same as on the buttons -- because client will send text from the buttons: LOCATIONS[ "Looping" ] = { 1696.9108886719, -1257.9813232422, 362.45672607422 }; LOCATIONS[ "Halfpipe" ] = { 2857.1716308594, -1961.9986572266, 11.400349617004 }; LOCATIONS[ "Trampoline" ] = { -3915.4597167969, -990.92761230469, 177.80200195313 }; LOCATIONS[ "DM Test 1" ] = { -2634.2856445313, 1349.6235351563, 7.1194381713867 }; LOCATIONS[ "DM Test 2" ] = { 1442.970, -1718.917, 16 }; addEvent( "YOUR_CUSTOM_EVENT", true ); addEventHandler( "YOUR_CUSTOM_EVENT", getRootElement( ), function( locationName ) if LOCATIONS[ locationName ] then local veh = getPlayerOccupiedVehicle( client ); if ( ( veh ) and ( client == getVehicleOccupant( veh ) ) ) then setVehicleFrozen(veh, true) setElementPosition( veh, unpack( LOCATIONS[ locationName ] ) ); setTimer(setVehicleFrozen, 200, 1, veh, false) else setElementPosition( client, unpack( LOCATIONS[ locationName ] ) ); end end end )
  18. You have right when i play with a friend, the "entered" idea not working local DMArea = createColCuboid ( 1442.970, -1718.917, -14, 73.66 , 113.233 , 500 ) local DMRadar = createRadarArea ( 1475.358, -1668.3005 , 78 , 118, 255, 0, 0, 175 ) local entered = nil function DM_enter (thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") and (entered == nil) then entered = true outputChatBox( getClientName(thePlayer) .. " you are now in the Minigun DM! Dont leave this Area or you DIE after 10 Secounds!!", thePlayer, 0, 255, 0 ) takeAllWeapons ( thePlayer ) giveWeapon (thePlayer, 38, 9999 ) timers = getTimers ( 9789 ) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end end end addEventHandler ( "onColShapeHit", DMArea, DM_enter ) function DM_deathcheck ( thePlayer, matchingDimension ) if entered == true then entered = nil outputChatBox ( "Bad luck you die in the Deathmatch.", thePlayer, 0, 255, 0 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), DM_deathcheck ) function DM_exit (thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if (isPlayerDead (thePlayer ) ~= true) and (entered == true) then entered = nil outputChatBox( getClientName(thePlayer) .. " go back in the DM Area or you DIE in 10 Secounds!!", thePlayer, 255, 0, 0 ) takeAllWeapons ( thePlayer ) setTimer ( killPlayer, 9789, 1, thePlayer, thePlayer ) end end end addEventHandler ( "onColShapeLeave", DMArea, DM_exit )
  19. BIG BIG THX for the Help XetaQuake and 50p With "local entered = nil" is this now so easy And now i understand what 50p means I work now with onPlayerWasted and entered The player die not more when he respawn BIG THX
  20. Yes i have read everything what the people say here... But i am not good in the script things... sorry... I give up... Now i must work with 50% of my script but better than nothing, and when someone has the same problems here is my little script local DMArea = createColCuboid ( 1442.970, -1718.917, -14, 73.66 , 113.233 , 500 ) local DMRadar = createRadarArea ( 1475.358, -1668.3005 , 78 , 118, 255, 0, 0, 175 ) function DM_enter (thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getClientName(thePlayer) .. " entered DM-zone", getRootElement(), 241, 166, 10 ) takeAllWeapons ( thePlayer ) giveWeapon (thePlayer, 38, 9999 ) end end addEventHandler ( "onColShapeHit", DMArea, DM_enter ) function DM_exit (thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if isPlayerDead (thePlayer ) ~= true then outputChatBox( getClientName(thePlayer) .. " exit DM-zone", getRootElement(), 241, 166, 10 ) takeWeapon ( thePlayer, 38 ) end end end addEventHandler ( "onColShapeLeave", DMArea, DM_exit ) and when somone can help me with the kill/respawn problem he could help me a lot! I must say making a good MTA:DM Games, Stunt, DM, Freeroam server is not easy... BUT i found a lot help here THX for that!
  21. Now i need really help I have test what i have found from onPlayerWasted, onPlayerSpawn, isElementWithinColShape and many more things but all the time the player die when someone killed him in the DM Zone and he respawn For my test i have a easy and small script, all other things i can add later then that is easy only this stupid die after respawn make me crazy! Can someone here help me PLZ! Here is the simple script: local DMArea = createColCuboid ( 1442.970, -1718.917, -14, 73.66 , 113.233 , 500 ) local DMRadar = createRadarArea ( 1475.358, -1668.3005 , 78 , 118, 255, 0, 0, 175 ) function DM_enter (thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getClientName(thePlayer) .. "entered DM-zone", getRootElement(), 241, 166, 10 ) timers = getTimers ( 9789 ) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end end end addEventHandler ( "onColShapeHit", DMArea, DM_enter ) function DM_leave ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if isPlayerDead (thePlayer ) == false then outputChatBox ( getClientName(thePlayer) .. " left the zone not die first in 10 sec!", getRootElement(), 255, 255, 109 ) setTimer ( killPlayer, 9789, 1, thePlayer, thePlayer ) end end end addEventHandler ( "onColShapeLeave", DMArea, DM_leave)
  22. I test many thinks grrrr And i have learn a lot in the last weeks about how i make a script but this is to hard for One of my many ideas: warRadar = createRadarArea ( 1475.358, -1668.3005 , 78 , 118, 255, 0, 0, 175 ) warShape = createColCuboid ( 1442.970, -1718.917, -14, 73.66 , 113.233 , 500 ) function onPlayerShapeHit ( thePlayer, matchingDimension ) if ( getElementType ( thePlayer ) == "player" ) then outputChatBox ( "You have entered War zone! DONT leave this ZONE or you DIE!!!", thePlayer, 0, 255, 0 ) setRadarAreaFlashing ( warRadar, true ) timers = getTimers ( 9789 ) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end function giveMoneyToKiller(totalAmmo,killer,killerWeapon,bodyPart) -- check the parameters on wiki, first one is not killer endaddEventHandler("onPlayerWasted",getRootElement(),giveMoneyToKiller) if killer and source ~= killer then -- first you want to check if it's a suicide or something like that.. Don't give money then if isElementWithinColShape(source,warShape) and isElementWithinColShape(killer,warShape) then -- if both were in colshape givePlayerMoney(killer,5000) -- again, it's not giveMoney, it's givePlayerMoney, see [url=http://development.mtasa.com/index.php]http://development.mtasa.com/index.php[/url]? ... layerMoney end end end addEventHandler("onPlayerWasted", getRootElement(), giveMoneyToKiller ) end end addEventHandler ( "onColShapeHit", warShape, onPlayerShapeHit ) function onPlayerShapeLeave ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if isPlayerDead ( thePlayer ) == true then outputChatBox ( getClientName(thePlayer) .. " left the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( warShape, false ) else outputChatBox ( "You have leaved War zone! Go BACK IN THE RED AREA in the NEXT 10 SECOUNDS!!!", thePlayer, 255, 0, 0 ) setTimer ( killPlayer, 9789, 1, thePlayer, thePlayer ) setRadarAreaFlashing ( warShape, false ) end end end addEventHandler ( "onColShapeLeave", warShape, onPlayerShapeLeave ) In the last hours i have test a lot but nothing help and i have learn a lot and found many new things for my other scripts but here i need help This is a cool DM script, and i have many DM areas only i need this nice script I hope someone can help me! BIG BIG THX !!!!!
  23. HI I have found this script and add many new things But now i have a problem when the player use /kill for kill himself in the DM area he gets a warning when he is respawn and the server killed him after 10 sec. That is the problem, how can i make it when the player use /kill in the DM area he die not when he is respawn?? warRadar = createRadarArea ( 1475.358, -1668.3005 , 78 , 118, 255, 0, 0, 175 ) warShape = createColCuboid ( 1442.970, -1718.917, -14, 73.66 , 113.233 , 500 ) function onPlayerShapeHit ( thePlayer, matchingDimension ) if ( getElementType ( thePlayer ) == "player" ) then outputChatBox ( "You have entered War zone! DONT leave this ZONE or you DIE!!!", thePlayer, 0, 255, 0 ) setRadarAreaFlashing ( warRadar, true ) timers = getTimers ( 9789 ) for timerKey, timerValue in ipairs(timers) do killTimer ( timerValue ) end function giveMoneyToKiller(totalAmmo,killer,killerWeapon,bodyPart) if killer and source ~= killer then -- first you want to check if it's a suicide or something like that.. Don't give money then if isElementWithinColShape(source,warShape) and isElementWithinColShape(killer,warShape) then -- if both were in colshape givePlayerMoney(killer,5000) end end end addEventHandler("onPlayerWasted", getRootElement(), giveMoneyToKiller ) end end addEventHandler ( "onColShapeHit", warShape, onPlayerShapeHit ) function onPlayerShapeLeave ( thePlayer, matchingDimension ) if ( getElementType ( thePlayer ) == "player" ) then outputChatBox ( "You have leaved War zone! Go BACK IN THE RED AREA in the NEXT 10 SECOUNDS!!!", thePlayer, 255, 0, 0 ) setTimer ( killPlayer, 9789, 1, thePlayer, thePlayer ) setRadarAreaFlashing ( warRadar, false ) end end addEventHandler ( "onColShapeLeave", warShape, onPlayerShapeLeave )
  24. The map editor is very good! But the can you change the place from the button "copy" and "delete" Sometimes when i want copy a object i click on delete and lose so the object.
  25. Oh a mta bug that is bad I have add now all vehicles in a new .zip file (vehicles.zip) with a meta.xml. vehicles.map... Is there a way that the vehicles.zip file restart all 30mins new, so that the vehicles all on the old place all 30mins?
×
×
  • Create New...