Jump to content

B7raani

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by B7raani

  1. hey guys i need help in this code when i remove the getteam code the script works well but when i add it wont this is the code what i want to make gate opening for selected team wish you help local gate = createObject(980, 1471.5766601563, -2237.9533691406, 13.3828125, 0, 0, 90) local marker = createMarker(1471.6849365234, -2236.3430175781, 13.3828125, "cylinder", 5, 255, 255, 255, 0) function moveGate(psource) if getTeamName(getPlayerTeam) == "test" then moveObject(gate, 5000, 1479.1284179688, -2238.0764160156, 13.3828125) setTimer(moveBack, 5000, 1) end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 1471.5766601563, -2237.9533691406, 13.3828125) end
  2. i did replace but when i did i click on choose team it doesnt spawn me when i return it to its defualt it worked please help
  3. i did but its not working please help Perfect no i want to make same team cant kill each other because its pissing me off please help me please
  4. no when i just add / the script doesnt work
  5. hey guys i need help in friendly fire please this is the team selection code imade the friendly fire true but its not working "Teams الأفرقة" > "Rebel" friendlyfire="true" > "يجب أن نحصل على حقوقنا وأن لا ندع أي شيء يقف في طريقنا" /> "255" green="0" blue="0" /> "ثائر" id="1" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "وفاقي" id="7" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "إئتلافي" id="2" > "1475.9217529297" y="-2240.7573488281" z="13.3828125" rot="90" /> "قطيفي" id="14" > "2103.2326660156" y="1013.2601318359" z="10.8203125" rot="90" /> "18" ammo="50" /> "5" ammo="100" /> "41" ammo="100" /> "43" ammo="100" /> "1475.9217529297" y="-2240.7573488281" z="13.3828125" /> "1475.9217529297" y="-2240.7573488281" z="13.3828125" />
  6. not working this is the meta.xml "B7raani" type="script" version="1.0.0" /> "sarimskra.wav" /> music.lua playSound("sarimaskra.wav",true) sarimskra.wav music name wish you help
  7. hey guys as the topic says i just need simpe help in playing music in the server this is the code i made i know it sucks but i need your help guys musicPlay("sarimaskra.wav") i want it to play the music again and again and thanks for reading and helping
  8. dude thanks much much *kiss* haha
  9. guys while this subject is on i upgraded the /sit and /unsit to make them market hit i made when player gets in the marker it should automatically makes him /sit but not working wish you help me again this is the code chair = createObject ( 1810, 1470.5999755859, -2231.399023438 , 12.39999961853, 0, 0, 0 ) chair2 = createObject ( 1810, 1471.5999755859, -2231.3999023438 , 12.39999961853, 0, 0, 0 ) chair3 = createObject ( 1810, 1472.5, -2231.3999023438 , 12.39999961853, 0, 0, 0 ) chair4 = createObject ( 1810, 1473.5, -2231.3999023438 , 12.39999961853, 0, 0, 0 ) chair5 = createObject ( 1810, 1474.4000244141, -2231.3999023438 , 12.39999961853, 0, 0, 0 ) chair6 = createObject ( 1810, 1475.4000244141, -2231.3999023438, 12.39999961853, 0, 0, 0 ) chair7 = createObject ( 1810, 1476.3000488281, -2231.5 , 12.39999961853, 0, 0, 0 ) chair8 = createObject ( 1810, 1477.3000488281, -2231.6000976563 , 12.39999961853, 0, 0, 0 ) chair9 = createObject ( 1810, 1478.4000244141, -2231.6999511719 , 12.39999961853, 0, 0, 0 ) chair10 = createObject ( 1810, 1479.5,-2231.8999023438 , 12.39999961853, 0, 0, 0 ) chair11 = createObject ( 1810, 1481.4000244141, -2226.6000976563 , 12.5, 0, 0, 0 ) chair12 = createObject ( 1810, 1479, -2226.5 , 12.39999961853, 0, 0, 0 ) chair13 = createObject ( 1810, 1477.8000488281, -2226.6000976563 , 12.39999961853, 0, 0, 0 ) chair14 = createObject ( 1810, 1476.5, -2226.6000976563 , 12.39999961853, 0, 0, 0 ) chair15 = createObject ( 1810, 1475.3000488281, -2226.5 , 12.39999961853, 0, 0, 0 ) chair16 = createObject ( 1810, 1474.1999511719, -2226.6000976563 , 12.39999961853, 0, 0, 0 ) chair17 = createObject ( 1810, 1473.0999755859, -2226.6000976563 , 12.39999961853, 0, 0, 0 ) chair18 = createObject ( 1810, 1471.8000488281, -2226.6000976563 , 12.39999961853, 0, 0, 0 ) chair19 = createObject ( 1810, 1470.5, -2226.6999511719 , 12.39999961853, 0, 0, 0 ) chair20 = createObject ( 1810, 1468.4000244141, -2226.6000976563 , 12.5, 0, 0, 0 ) myMarker1 = createMarker( 1482.5, -2233.6000976563, 13.5, 'cylinder', 3, 255, 0, 0, 150 ) myMarker2 = createMarker( 1480.0999755859, -2235.3000488281, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker3 = createMarker( 1478, -2234.8999023438, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker4 = createMarker( 1475.9000244141, -2234.8999023438, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker5 = createMarker( 1473.9000244141, -2234.8000488281, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker6 = createMarker( 1471.9000244141, -2235.1000976563, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker7 = createMarker( 1469.9000244141, -2234.6000976563, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker8 = createMarker( 1466.0999755859, -2233.1000976563, 13.5, 'cylinder', 3, 255, 0, 0, 150 ) myMarker9 = createMarker( 1482.5, -2226.8000488281, 13.5, 'cylinder', 3, 255, 0, 0, 150 ) myMarker10 = createMarker( 1478.0999755859, -2227.8000488281, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker11 = createMarker( 1476.3000488281, -2227.1000976563, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker12 = createMarker( 1474.4000244141, -2227.3999023438, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker13 = createMarker = createMarker( 1472.5, -2227.3999023438, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker14 = createMarker( 1470.5, -2227, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker15 = createMarker( 1474.6999511719, -2230.5, 13.39999961853, 'cylinder', 3, 255, 0, 0, 150 ) myMarker16 = createMarker( 1467.1999511719, -2226.5, 13.5, 'cylinder', 3, 255, 0, 0, 150 ) addEventHandler( "onMarkerHit", myMarker1, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker2, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker3, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker4, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker5, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker6, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker7, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker8, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker9, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker10, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker11, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker12, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker13, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker14, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker15, MarkerHit1 ) addEventHandler( "onMarkerHit", myMarker16, MarkerHit1 ) function MarkerLeave1( leaveElement, matchingDimension ) function(player) setPedAnimation(player,"ped","SEAT_idle",-1,true,false,true) end )
  10. thaaaaaaaanksssssss muuuuuuuuuch its working as charm now
  11. lol now my code even /sit is not working
  12. guys still is not working please help me i need it for after 2 hour and nothing is working please help im doing what you say but i see nothing
  13. guys i think its not working see this is the code i remade with your help function makePlayerSitDown(player,cmdname) setPedAnimation(player,"ped","SEAT_idle",-1,true,false,true) end addCommandHandler("sit",makePlayerSitDown) function makePlayerunSitDown(thePlayer,cmdname) setPedAnimation( player, nil, nil,-1,true,false,true ) outputChatBox( "Sitting Mode: Off!", player, 255, 0, 0 ) setElementData( player, "sit", "deactivated" ) toggleControl( player, "forward", true ) toggleControl( player, "jump", true ) toggleControl( player, "aim_weapon", true ) toggleControl( player, "fire", true ) end addCommandHandler("unsit",makePlayerUnSitDown) please help whats the mistake i made what you told
  14. Thanks Guys For The Help
  15. Hey guys i just want a little help in My Code Its sitting command i made it but i cant make it unsit this is my code function makePlayerSitDown(player,cmdname) setPedAnimation(player,"ped","SEAT_idle",-1,true,false,true) end addCommandHandler("sit",makePlayerSitDown) function makePlayerunSitDown(player,cmdname) setPedAnimation( thePlayer, nil, nil,-1,true,false,true ) outputChatBox( "Sitting Mode: Off!", thePlayer, 255, 0, 0 ) setElementData( thePlayer, "sit", "deactivated" ) toggleControl( thePlayer, "forward", true ) toggleControl( thePlayer, "jump", true ) toggleControl( thePlayer, "aim_weapon", true ) toggleControl( thePlayer, "fire", true ) addCommandHandler("unsit",makePlayerunSitDown) end wish you can help me to make it /unsit
  16. this is the original picture this is what i mean all white you can see it please help me fixing
  17. Hey guys i need quick help in this custom object this is my lua file addEventHandler('onClientResourceStart', resourceRoot, function() restoreAllWorldModels() removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) createObject ( 17521, 2502.1000976563,-1714.0999755859,16.299999237061, 0, 0, 0 ) outputChatBox ( "Matam Is Starting.") setTimer ( customObject, 200, 1) setOcclusionsEnabled(false) end ) function customObject () local dff = engineLoadDFF('files/pawnshp_lae2.dff', 0) local txd = engineLoadTXD('files/laeast2_lod.txd', 0) local txd = engineLoadTXD('files/lae2newtempbx.txd', 0) engineReplaceModel(dff, 17521) engineReplaceModel(txd, 17521) engineReplaceModel(txd, 17521) engineSetModelLODDistance(17521, 500) end The Object Is Working But The Txd is not working its all white you can see the image down but it will show color because i installed it in my own gta sa so this is my code what i want to say why its white i included the txd and i dont know what to do more because the txd and dff are stuck together in the object so i cant get id object so what can i do please help and this is my meta.xml and this is the images wish you can help and i think the whole problem from the txd what can i do with it to fix it please help
  18. but the gate is not shownig up see this is my meta.xml see is there something wrong "B7raani" type="script" version="1.0.0" />
  19. Tapl I Just removed the admin thing and i want to make new one for everybody but its not working wish you help me again this is the code tlocal gate = createObject(7033, 1943.2998046875, 848.69921875, 6.7266693115234, 0, 0, 90) local marker = createMarker(1947.6999511719, 849.70001220703, 6.6999998092651, "cylinder", 10, 255, 255, 255, 0) function moveGate(psource) moveObject(gate, 5000, 1937.099609375, 843, 10.39999961853) setTimer(moveBack, 5000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 1943.2998046875, 848.69921875, 6.7266693115234) end
  20. but TAPL its working full thanks but they cant exit from the other side its working and i can get in but when im in i cant go out i wish you help me
  21. Wooorking Thanks Much TAPL your the best tslm 5ook haha ma tg9r
  22. Hey guys i just need little help see this is my code i made but i didnt find any error in it i dont know why still the gate is not openning i made it openning for Dead Acl Group But its not working local gate = createObject ( 985, 3112.888671875, -1914.9187011719, 1.8218749761581, 0, 0, -80 ) local marker = createMarker(3109.8999023438, -1915.0999755859, 1.7999999523163, "cylinder", 1, 255, 255, 255, 140) function onMarkerHit( leaveElement, matchingDimension ) local Deadusergroup = getAccountName ( getPlayerAccount ( psource ) ) if isObjectInACLGroup ("user."..Deadusergroup, aclGetGroup ( "Dead" ) ) then moveObject(gate, 5000, 3113, -1921, 2.79999995231635) setTimer(moveBack, 5000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 3113, -1915.19921875, 0.80000001192093, 6.1875) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onStartup) Wish You Can Help Me
  23. [lua]function pedLoad() ped1 = createPed ( 165, 1240.8000488281, -2054.100091656563, 60 , -80 ) setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true) setPedWeaponSlot ( ped1, 5 ) setPedAimTarget ( ped1, 10, 10, 5 ) bool setPedControlState ( ped thePed, string control, bool state ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) [lua] Guys see i made what you told me about setPedControlState And SetPedAimTarget But It wont work please help
×
×
  • Create New...