Jump to content

Sora

Members
  • Posts

    698
  • Joined

  • Last visited

Everything posted by Sora

  1. Sora

    Community.mtasa.com

    no resources no users , there is nothing
  2. سكربت جميل اتمنى لك التوفيق ^^
  3. Sora

    acl events?

    it would be really great if mta developers added this events in the new version and thanks for replying
  4. Sora

    acl events?

    ^ it's cool but if i created this function it's won't be public , i should write it in every script that use acl ?
  5. Sora

    acl events?

    there isn't , can i make my own ?
  6. Sora

    acl events?

    i wanted to know if there is an acl events like onAclModify or onAclGroupAddObject onAclGroupRemoveObject etc ..
  7. يسلمو ع المرور يرجى نقل الموضوع لقسم المساهمات [تم نقل الموضوع لقسم المساهمات]
  8. Hello everybody .. i've created this resource since few weeks ago , i've developed it a little bit further and released it here today this resource will list all the resources which had been started by the admin on a file called resources.xml and start them when it starts Requirements : * Add the script to admin group - to give the resource the right of starting resources * Add yourself to console group or the allowed group in settings * Add the resource to startup in the server configuration file mtaserver.conf -- optional but recommended to use the resource to its full potential p.s if you wanted it to be started automatically <resource src="resourcestarter" startup="1" protected="1" /> Features : * The started resource will be listed * The stopped resource will be removed ( only if you enabled autoremover from settings) * All the listed resources will be started * Management gui, for adding and removing startup resources * Settings for the allowed group to access the management gui.. Didn't understand what's resource job? No problem, i'd try to explain it as best as i can If you started this resource and then started your other resource(s) in your server & then restarted your server, you wouldn't need to start them all over again just start this resource and it will do all the work for you Simply it's an easy startup system Use command /rss to open the management window/gui Resource Page Download the latest version Please notify me about any bugs * i recommend turning autoremover option off , and protecting the resource from server configuration file (mtaserver.conf) <resource src="resourcestarter" startup="1" protected="1" />
  9. تمت اضافه خواص جديده واصلاح بق تكرار الاضافه نافذه للتحكم .. اضافه سكربتات حذف سكربتات من القائمه اعدادات المجموعة المسموح لها بفتح القائمه allowedGroup و تفعيل الحذف التلقائي او تعطيله autoRemover يتم فتح القائمه باستخدام الامر /rss
  10. isGateOpened = "false" myGate1 = createObject ( 988, 313.599, -61.799, 1.6499, 0, 0, 0 ) myGate2 = createObject ( 988, 319, -61.799, 1.6499, 0, 0, 0 ) myGate3 = createObject (2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) myGate4 = createObject (2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) myGate5 = createObject (2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) myGate6 = createObject (2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) myGate7 = createObject (2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) myGate8 = createObject (2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) myGate9 = createObject (2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) myGate10 = createObject (2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) myGate11 = createObject (2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) myGate12 = createObject (2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) myGate13 = createObject (2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) myGate14 = createObject (2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) myGate15 = createObject (2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) myGate16 = createObject (2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) myGate17 = createObject (2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) myGate18 = createObject (2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) myGate19 = createObject (2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) myGate20 = createObject (2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) myGate21 = createObject (2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) myGate22 = createObject (2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) myGate23 = createObject (2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) myGate24 = createObject (2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) myGate25 = createObject (2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) myGate26 = createObject (2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) myGate27 = createObject (2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) myGate28 = createObject (2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) myGate29 = createObject (2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) myGate30 = createObject (2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) myGate31 = createObject (2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) myGate32 = createObject (2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) myGate33 = createObject (2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) myGate34 = createObject (2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) myGate35 = createObject (2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) myGate36 = createObject (2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) myGate37 = createObject (2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) myGate38 = createObject (2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) myGate39 = createObject (2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) function gateControl ( player ) local Team = getPlayerTeam ( player ) if ( Team == getTeamFromName ( "Police" ) ) then if isGateOpened == "false" then open(player) isGateOpened = "true" else close(player) isGateOpened = "false" end end end addEventHandler("onResourceStart",root, function () for i,player in ipairs(getElementsByType("player")) do bindKey ( player, "Tab", "down", gateControl ) end end) addEventHandler("onPlayerJoin",root, function () bindKey ( source, "Tab", "down", gateControl ) end) function open(player) local target = getPedTarget ( player ) if target == myGate1 then moveObject ( myGate1, 2500, 308.5, -61.799, 1.6499 ) elseif target == myGate2 then moveObject ( myGate2, 2500, 324, -61.799, 1.6499 ) -- اكمل الكود بنفس الطريقه end end function close(player) local target = getPedTarget ( player ) if target == myGate1 then moveObject ( myGate1, 2500, 313.599, -61.799, 1.6499 ) elseif target == myGate2 then moveObject ( myGate2, 2500, 319, -61.799, 1.6499 ) -- اكمل الكود بنفس الطريقه end end اضف الاوبجكتات واكمل الكود
  11. you can use 60 * 1000 for example to get 60 seconds on milliseconds , easy way is to use google , type in search 10 minutes = milliseconds then you'll get results in milliseconds
  12. function chat () outputChatBox("Welcome To Gta Pro Server Gang War",0,255,0,true) end setTimer ( chat , 300000, 0 ) Sorry, but I Don't use SetTimer Correctly Thank You SoRa look at my signature ^^
  13. function chat () outputChatBox("Welcome To Gta Pro Server Gang War",0,255,0,true) end setTimer ( chat , 300000, 0 )
  14. ^ تبينا نحطها لك في كود ونسوي لها كلها moveObject مثلاً؟ سوي الكلام الي قالك احمد واضفها للكود الي في الرد السابق
  15. سوي /debugscript 3 وضع الاخطاء الي تطلع لك لما تشغل السكربت او لما تضغط الزر تاب
  16. isGateOpened = "false" function createTheGate () myGate1 = createObject ( 988, 313.599, -61.799, 1.6499, 0, 0, 0 ) myGate2 = createObject ( 988, 319, -61.799, 1.6499, 0, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function gateControl ( player ) local Team = getPlayerTeam ( player ) if ( Team == getTeamFromName ( "Police" ) ) then if isGateOpened == "false" then moveObject ( myGate1, 2500, 308.5, -61.799, 1.6499 ) moveObject ( myGate2, 2500, 324, -61.799, 1.6499 ) isGateOpened = "true" else moveObject ( myGate1, 2500, 313.599, -61.799, 1.6499 ) moveObject ( myGate2, 2500, 319, -61.799, 1.6499 ) isGateOpened = "false" end end end addEventHandler("onResourceStart",root, function () for i,player in ipairs(getElementsByType("player")) do bindKey ( player, "Tab", "down", gateControl ) end end) addEventHandler("onPlayerJoin",root, function () bindKey ( source, "Tab", "down", gateControl ) end) ^ غير مجرب
  17. Sora

    Correct code

    well then the code is up there change it to your requirements .. and let me see what you've done
  18. Sora

    Correct code

    the code that i've post before is just an example try to make one your self and stop asking for this kind of help btw : i've answered you before about special car blip .. right here : viewtopic.php?f=119&t=51197&p=499280#p499279
  19. Sora

    Correct code

    addCommandHandler("noob-blip", function (NoOob) if not nblip then local nblip = createBlipAttachedTo(NoOob,0) else destroyElement(nblip) end end)
  20. What happens when morning comes : addEventHanlder("onMorning",root, function (player,today,schoolDay) local time = getRealTime() if today == schoolDay and time.hour == 6 then return sleep("i need more time") elseif today == schoolDay and time.hour == 7 then wakePlayerUp(player,"You're f*cking late !") end end)
  21. thanks andrel .. i've got idea already i just was confused somehow ,, @Cadu12 i've read every word myonlake said and i'm going to make it but about the bathroom .. are you seriously talking ? -__- please be more polite
×
×
  • Create New...