Jump to content

Mr.OppS

Members
  • Posts

    200
  • Joined

  • Last visited

Everything posted by Mr.OppS

  1. رجـعـنـا للـمـشـاكـل مـرة اخري سـاعـدوني رجاء احد يعطني الأشياء التي ابداء بيها
  2. صحيح ! اذا تعطني ما اتعلم! ض طيب قولي من وين ابداء !! وانا اجرب وانزل الاكواد حتي اذا بيها خطاء او شي تفهموني
  3. طـيـب قـولـولـي ,, مـن ويـن ابداء !! تسـون مشـاكل مع بعض ! ولاحد قالي من وين ابداء وكيف
  4. ياخي الكل يتعلم ماحد يعرف كل شي ساعدني وقولي كيف ! انا جربت وكتبت الكود وانت تضحك علي !
  5. ويـن أضـيـف هذا كود ؟ كـليـنــت ؟؟ سيـرفر؟؟ & مــثــلاً هذا كود الــمــاب <map edf:definitions="editor_main"> <object id="object (GlenPHouse01_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3639" doublesided="false" scale="1" dimension="5" name="delux object" posX="1927.56055" posY="-2991.20117" posZ="4.22161" rotX="0" rotY="0" rotZ="0"></object> <object id="object (GlenPHouse02_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3640" doublesided="false" scale="1" dimension="5" name="delux object (1)" posX="1834.03626" posY="-3059.50708" posZ="9.3773" rotX="0" rotY="0" rotZ="178.763"></object> <object id="object (GlenPHouse04_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3641" doublesided="false" scale="1" dimension="5" name="delux object (2)" posX="1811.04578" posY="-3025.54077" posZ="7.05724" rotX="0" rotY="0" rotZ="27.502"></object> <object id="object (GlenPHouse03_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3642" doublesided="false" scale="1" dimension="5" name="delux object (3)" posX="1827.6134" posY="-3058.27856" posZ="7.1667" rotX="0" rotY="0" rotZ="9.454"></object> </map> _____________________________________________________________ بـعـد إضافة الـكـود الـخـاص بيـك مع الماب TMap = { { -- الماب الاول <object id="object (GlenPHouse01_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3639" doublesided="false" scale="1" dimension="5" name="delux object" posX="1927.56055" posY="-2991.20117" posZ="4.22161" rotX="0" rotY="0" rotZ="0"></object> <object id="object (GlenPHouse02_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3640" doublesided="false" scale="1" dimension="5" name="delux object (1)" posX="1834.03626" posY="-3059.50708" posZ="9.3773" rotX="0" rotY="0" rotZ="178.763"></object> <object id="object (GlenPHouse04_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3641" doublesided="false" scale="1" dimension="5" name="delux object (2)" posX="1811.04578" posY="-3025.54077" posZ="7.05724" rotX="0" rotY="0" rotZ="27.502"></object> <object id="object (GlenPHouse03_LAx) (1)" breakable="true" interior="10" collisions="true" alpha="255" model="3642" doublesided="false" scale="1" dimension="5" name="delux object (3)" posX="1827.6134" posY="-3058.27856" posZ="7.1667" rotX="0" rotY="0" rotZ="9.454"></object> }, { -- الماب الثاني {x, y, z}, {x, y, z}, {x, y, z} }, { -- الماب الثالث {x, y, z}, {x, y, z}, {x, y, z} }, } صح هذا ؟؟^^
  6. قـلـيـلــة كيف اسوي الخطوات التبيها ؟
  7. مالعـب في طارهـ, أخر مرة دخلت قبل 2 سنة = ??
  8. السلام عليكم أبـي اسـوي إضافة علي مود الـديـربـي ! الـديـربـي يكـون لـه أكثـير من مــاب !! ض اذا بداء الـديـربـي الآن !! يـكو مـاب رقـ1ــم ديـربـي يـبداء مـرة اأخـري يـكـون مـاب رقـ2ـم !! يـظـهـر ديـربـي يبـداء مرة اخـري يكـون مـاب رقـ3ـم !! فقط 3 مـابـات ! و اذا يوصل لـ3 يبـداء من جديد رقـ1ـم ,,,كيــف !؟ شـكـراً
  9. ألسلام عليكم هذا مود يـظهر أسماء في بعض الاماكن تروح مثلا مكـانـة الإسعاف تشـوف مكـتـوب الإسعاف ! ولكن ظهر خطاء ماعرف ما سبب! وكيف اصلحة ألـكـود --------------------------------------------------------- local screenWidth, screenHeight = guiGetScreenSize() local screenX , screenY = guiGetScreenSize ( ) --------------------------------------------------------- local TeamsDraw = { {text="الخاطف", tx="1880", ty="-1736.69", tz="14.75", r="150", g="0", b="0"}, {text="الإسعاف", tx="", ty="-1100.61", tz="15.03", r="0", g="255", b="255"}, } function leaderText() for a,b in pairs(TeamsDraw) do xx = tostring(b["tx"]) yy = tostring(b["ty"]) zz = tostring(b["tz"]) local x,y = getScreenFromWorldPosition(xx, yy, zz+0.8) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 20) then dxDrawFramedText ( b["text"] , x , y , x , y , tocolor (b["r"], b["g"], b["b"], 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end end addEventHandler("onClientPreRender", root, leaderText) function dxDrawFramedText ( message , left , top , width , height , color , scale , font , alignX , alignY , clip , wordBreak , postGUI ) dxDrawText ( message , left + 1 , top + 1 , width + 1 , height + 1 , tocolor ( 0 , 0 , 0 , 255 ) , scale , font , alignX , alignY , clip , wordBreak , postGUI ) dxDrawText ( message , left + 1 , top - 1 , width + 1 , height - 1 , tocolor ( 0 , 0 , 0 , 255 ) , scale , font , alignX , alignY , clip , wordBreak , postGUI ) dxDrawText ( message , left - 1 , top + 1 , width - 1 , height + 1 , tocolor ( 0 , 0 , 0 , 255 ) , scale , font , alignX , alignY , clip , wordBreak , postGUI ) dxDrawText ( message , left - 1 , top - 1 , width - 1 , height - 1 , tocolor ( 0 , 0 , 0 , 255 ) , scale , font , alignX , alignY , clip , wordBreak , postGUI ) dxDrawText ( message , left , top , width , height , color , scale , font , alignX , alignY , clip , wordBreak , postGUI ) end addEventHandler("onClientResourceStart",resourceRoot,function () fileDelete("DxPedS.lua") end ) المشكلة : 16: Expected number, get non-convertible string. This warning may be an error in future versions. 16: Expected number, get non-convertible string. This warning may be an error in future versions. [DUP x86] 16: Expected number, get non-convertible string. This warning may be an error in future versions. 16: Expected number, get non-convertible string. This warning may be an error in future versions. [DUP x30] 16 سـطـر local x,y = getScreenFromWorldPosition(xx, yy, zz+0.8) ما سبب مشكلة ؟ وكيف اصلحها ؟ شكراً
  10. تـوقـعـك صحيح أخوي ابدعـت شكـراً
  11. السلام عليكم مـود الـحـافـز ,, اريد اضيف علية شي ! اتمني مساعدة اريد مود يعطي فلوس للأشخاص حـطـيـن شـعـار سيـرفر ! فقط يعطي فلوس للأشخاص حاط شعار سيرفر مثلاً شعار P.P اريدة مايختلف الحروف !! يعني اذا انا حاطط حرف p كبير او صغير ! يعطي فلوس ! = مو لازم اسوي حرف كبير حتي يعطني كـود function hafiz() local money = math.random (5000,15000) givePlayerMoney( getRootElement(), money ) outputChatBox(">>> #00ff00 $"..money.." Money has been sent to players only but logo" ,getRootElement(),255,0,0,true) end setTimer(hafiz,150000,0) شكراً
  12. موجود بالنت بس انت ماتبحث عنة
  13. السلام عليكم شباب ابي مساعدة , هذا مود اختيار الاسلحة ! حق العـقـرب مـن تـمـوت تطـلـع الوحـة و تختار الاسلحة !! اريد الوحة تطلع في العالم الوهمي 20 و مكان اخر يعني Dimension 20 Interior 10 فقط ^^ في هذة الاماكن تطلع الوحة !! مساعدة رجاء اذا انت Dimension 1 Interior 0 لا تطلع الوحة !! رجاء احد يساعدني وشكراً الكود1 -- Weapon Choose By Al3grab ----- lp = getLocalPlayer() rRoot = getResourceRootElement(getThisResource()) ----- addEventHandler("onClientResourceStart",rRoot,function() triggerServerEvent("getData",lp,lp) outputDebugString("Weapon Choose By Al3grab | Started") end ) addEvent("sendData",true) addEventHandler("sendData",root,function(small,med,misc) if small and med and misc then smallGuns = small mediumGuns = med miscGuns = misc WCW = guiCreateWindow(367,244,570,233,"Please Choose Weapon",false) guiSetVisible (WCW, false) guiWindowSetSizable(WCW,false) guiWindowSetMovable(WCW,false) --- Center Window --- local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(WCW,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(WCW,x,y,false) ----- Center Window ----- ButOK = guiCreateButton(18,207,256,19,"OK",false,WCW) ButC = guiCreateButton(290,207,256,19,"Cancel",false,WCW) guiBringToFront(ButC) guiBringToFront(ButOK) WCSmallGuns = guiCreateGridList(18,54,169,148,false,WCW) guiGridListSetSelectionMode(WCSmallGuns,0) local columnSG = guiGridListAddColumn( WCSmallGuns, "Small Guns", 0.55 ) local ammoSG = guiGridListAddColumn( WCSmallGuns, "Ammo", 0.20 ) if ( columnSG ) then for k,v in ipairs (smallGuns) do local jSG = guiGridListAddRow ( WCSmallGuns ) guiGridListSetItemText ( WCSmallGuns, jSG, columnSG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCSmallGuns, jSG, ammoSG,v[2], false, true ) end end ------- WCMGuns = guiCreateGridList(198,53,169,148,false,WCW) guiGridListSetSelectionMode(WCMGuns,0) local columnMG = guiGridListAddColumn( WCMGuns, "Medium Guns", 0.55 ) local ammoMG = guiGridListAddColumn( WCMGuns, "Ammo", 0.20 ) if ( columnMG ) then for k,v in ipairs (mediumGuns) do local jSG = guiGridListAddRow ( WCMGuns ) guiGridListSetItemText ( WCMGuns, jSG, columnMG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCMGuns, jSG, ammoMG,v[2], false, true ) end end ------- WCMiscGuns = guiCreateGridList(378,52,169,148,false,WCW) guiGridListSetSelectionMode(WCMiscGuns,0) local columnMSG = guiGridListAddColumn( WCMiscGuns, "Misc. Guns", 0.55 ) local ammoMSG = guiGridListAddColumn( WCMiscGuns, "Ammo", 0.20 ) if ( columnMSG ) then for k,v in ipairs (miscGuns) do local jSG = guiGridListAddRow ( WCMiscGuns ) guiGridListSetItemText ( WCMiscGuns, jSG, columnMSG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCMiscGuns, jSG, ammoMSG,v[2], false, true ) end end function ShowWC() getVisible = guiGetVisible (WCW) if (getVisible == true) then guiSetVisible (WCW , false) guiSetVisible (ButOK , false) guiSetVisible (ButC , false) showCursor (false) end if (getVisible == false) then guiSetVisible (WCW , true) guiSetVisible (ButOK , true) guiSetVisible (ButC , true) showCursor (true) end end addEvent("ShowWC",true) addEventHandler("ShowWC",root,ShowWC) --- On Click --- function onClick (button, state, absoluteX, absoluteY) if ( source == ButOK ) then -- if the button is OK triggerServerEvent("TakeAll",lp,lp) ------- Small wep = guiGridListGetItemText (WCSmallGuns, guiGridListGetSelectedItem (WCSmallGuns), 1) ammo = guiGridListGetItemText (WCSmallGuns, guiGridListGetSelectedItem (WCSmallGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end --- Medium wep = guiGridListGetItemText (WCMGuns, guiGridListGetSelectedItem (WCMGuns), 1) ammo = guiGridListGetItemText (WCMGuns, guiGridListGetSelectedItem (WCMGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end --- Misc wep = guiGridListGetItemText (WCMiscGuns, guiGridListGetSelectedItem (WCMiscGuns), 1) ammo = guiGridListGetItemText (WCMiscGuns, guiGridListGetSelectedItem (WCMiscGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end --- Hide ShowWC() ------- elseif ( source == ButC ) then -- if the button is cancel ShowWC() ------- end end addEventHandler ("onClientGUIClick", getRootElement(), onClick) --- On Click --- end end ) setTimer(fileDelete,1000,1,"WC-C.lua") كود 2 -- Weapon Choose By Al3grab function getData(to) -- get the weapons data and send them to the client who requested it [to] local file = xmlLoadFile("data.xml") small = {} med = {} misc = {} if file then for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"SmallGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(small, {id,ammo}) end for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"MediumGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(med, {id,ammo}) end for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"MiscGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(misc, {id,ammo}) end end triggerClientEvent(to,"sendData",to,small,med,misc) -- sending to client event end addEvent("getData",true) addEventHandler("getData",root,getData) function TakeAll( Player ) takeAllWeapons(Player) end addEvent("TakeAll",true) addEventHandler("TakeAll",getRootElement(),TakeAll) function GiveGun( Player , Gun , Ammo ) if Gun and Ammo then giveWeapon(Player, Gun,Ammo) setPedWeaponSlot(Player, getSlotFromWeapon(Gun)) end end addEvent("GiveGun",true) addEventHandler("GiveGun",getRootElement(),GiveGun) function ShowWC(Player) triggerClientEvent(Player,"ShowWC",Player) end addEventHandler("onPlayerSpawn",root,function() ShowWC(source) -- show the weapon choose list addCommandHandler("gun",function(plr) ShowWC(plr) end ) -- add command handler to open the window setTimer(removeCommandHandler,1 * 60 * 1000 ,1, "gun") --- remove the command after 1 minute end)
  14. مـود سـبـاق الدرجـات ,, تذهب للماركر تاخذ دراجة واول شخص يوصل للماركر الاخـر ! يـاخذ فـلـوس يـوجـد مـشـكـلـة ! اذا انت تدخل الماركر الاخـر! اكثير من مرة!! يعطيك فلـوس مرة اخري!! اريد فقط يعطي لكل شخص 1 مرة بعد كل نصف ساعة! اذا لاعب اخذ الان فلـوس! ثم دخل مرة اخـري للـمـاركـر! لا ياخذ شي وينتظر نصف ساعة حتي ياخذ مرة اخري,ارجو مساعدة ألكـود1 local marker1 = createMarker( -3012.6000976563, 408.79998779297, 19.200000762939, "cylinder", 1.5, 0, 0, 0, 200) Rumpo = {} function spawn (source) if Rumpo[source] and isElement(Rumpo[source]) then destroyElement(Rumpo[source]) end Rumpo[source] = createVehicle (481, -3017.203125, 408.78088378906, 20.176563262939) setElementRotation(Rumpo[source],0,0,90) setVehicleColor (Rumpo[source], 0,0,0,0,0,0,0,0,0,0,0,0) outputChatBox ('#868686Bicycle was given,#000000', root, 255, 255, 255, true) outputChatBox ('#868686Finish up, Money is waiting for you.#000000', root, 255, 255, 255, true) warpPedIntoVehicle (source, Rumpo[source]) end addEventHandler ("onMarkerHit", marker1, spawn) كود 2 addEventHandler("onResourceStart", getRootElement(), function () marker22 = createMarker ( -3062.3813476563, 410.49588012695, 20.18229675293, "checkpoint", 1.0, 0, 0, 0, 0, getRootElement() ) addEventHandler( "onMarkerHit", marker22, function() local amount = math.random(100,1000) for i, player in ipairs(getElementsByType("player")) do local accName = getAccountName( getPlayerAccount(player) ) if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then givePlayerMoney(player, amount) outputChatBox("* " .. getPlayerName(player) .. " #868686Here's the award: #FFFF00$"..amount.."#FFFFFF",player , 0, 255, 0, true) end end end) end) شكراً
  15. ,,,,, كلمة مبدع قليلة في حقك أشكرك, جزيلآ الشكر أخيِ
  16. هـذا الكود اذا شخص يكرار 5 مرات او يكـتـب كلمة باف8 اكثير من 5 مرات يأخذ طرد من سيرفر أريـد اذا صاحب سيرفر كرار بشات 5 مرات لا ياخذ طرد !! اريد فقط 2 رتـب لاتاخذ طرد!!! والباقي ياخذ الكــود : local komutkontrol = {} function antikomutspam() if (not komutkontrol[source]) then komutkontrol[source] = 1 elseif (komutkontrol[source] == 5) then outputChatBox("#ff0000" ..getPlayerName(source).. " سبام ممنوع! ",root,0,0,0,true) kickPlayer(source,"Sopt Spam !!") else komutkontrol[source] = komutkontrol[source] + 1 end end addEventHandler("onPlayerCommand", root, antikomutspam) setTimer(function() komutkontrol = {} end, 1000, 0)
  17. Hello, Car File .dff ! About 30 mb !! How to Reduce it ?! Thank
×
×
  • Create New...