Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. هو يمديه يعطي من اللوحة بس هو يبي يعطي من الكونسول حقت اف 8
  2. يمديك تسوها باكواد البرمجة لان ما فيه كلمة في اف 8 تعطي ادمنية استخدم addCommandHandler aclGroupAddObject ان شاء الله تكون استفدت
  3. ههههههههههههههههه انقلب السحر على الساحر من اضاف الاخر مسن اليس انت جيتني يوم قلت تبني اساعدك تقول انا لي ضايفك هههه طلعت عربي غبي صراحه حتى في التفكير وانت نوب في البرمجة وحرامي سكربتات ونصاب كبير ومعروف انك صديق ل مجرم 511 ثانياً العربي يدعس على امثالك تعالو شباب نصلح اغلاطه الاملائية قال اليس قال العربي الغبي صراحة الي ما يعرف يتهجا اللغة والحين يسلط الادمنية الي عنده بالسيرفر يقولهم سجلوا واسالو وانا ارقيكم ومنهم Controls وش فايدتها , ووش فايدتها ووش فايدتها شغل مغاربة صحيح... وبعدين تعال هنا .. انت كنت كل مرة تكلمني مسن كل ما افتح او تلاقيني فاتح تنط لي نافذه جديدة وتكلمني , وكل كلامك عن المساعدة هه وتسب في تابل وتسب في توب سنايبر وشغال فتنة و انت اصلك حرامي .. يا الله حتى سعود سرقوا سيرفره مغاربة , الله يعينه وتطلب مني مساعدة في سيرفر تحشيش مغاربة تايم* هه..
  4. من زينك مسوي نفسك قوي انت موصل 1100موضوع عشان تبقى تطقطق بالكلام زي هدا تبي يوم يجي ادمن يطلب واحد Moderator تاخدها زي TAPL ما راح تاخدها و انا راح ابلغ الاداره انك تبقى تحط مواضيع زايده عشان تسوي نفسك صرت بطل برمجه do you remember that Oussama ? بلغ انا ما يهمني حتى ولو مت غيظاً :] GO AHEAD BRO
  5. تشرفنا كل زياره.. بس يا ليت لا تحرمنا من موداتك الي بالكمونتي
  6. http://usa.autodesk.com/3ds-max/trial/
  7. I just discovered that i just wasting my time with 'setControlState' so i made a temporary test , and here you are addEventHandler("onPlayerDamage", root, function( attacker, attackerweapon, bodypart, loss ) local policeTeam = getPlayerTeam( attacker ) if ( isElement( policeTeam ) and policeTeam == Police ) then if ( ( wantedLevel or 0 ) >= 1 ) then if ( attackerweapon == 3 ) and ( loss > 2 ) then outputChatBox( getPlayerName( source ) .. " was Jailed by " .. getPlayerName( attacker ) ) end end end end) if i damaged a person with 1 or more stars , the message won't be appear why ?.
  8. Tete omar

    Help.

    firstly getResourceRootElement(getThisResource()) doesn't make sense with ' onClientGUIClick ' try this function nub() if (source == registerBtn) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) end end addEventHandler("onClientGUIClick", root, nub) root = getRootElement() P.S. this getResourceRootElement(getThisResource()) make more sense with https://wiki.multitheftauto.com/wiki/OnResourceStart or https://wiki.multitheftauto.com/wiki/OnC ... ourceStart and this is predefined as 'resourceRoot' resourceRoot = getResourceRootElement(getThisResource()) that's better
  9. No errors but i think it doesn't make sense.
  10. What exactly do you think 60 sec = 1 min that means 2000 sec = 33 minutes divide 60 ÷ 2000 anyway hh:mm:ss 00:33:333333333333333333333333333333
  11. جرب gate = createObject( 980, 2482.6999511719, -1687.8000488281, 15.300000190735, 0, 0, 0 ) function opendoor() moveObject (gate, 5000, -1687.8000488281,2482.6999511719,15.300000190735 ) end bindKey ( "tab", "down", opendoor ) function closedoor() moveObject (gate, 5000, -2482.69921875,-1687.7998046875,15.300000190735 ) end bindKey ( "tab", "down", closedoor )
  12. ctrlNames = { "forwards","backwards","left","right","jump","sprint","walk","crouch","enter_exit" } local function followHim(player) for _, ctrl in ipairs(ctrlNames) do setControlState(player,(ctrl),true) end end setTimer(followHim, 10*500/100*10*5-2450, 0, player) -- the result : 50 addEventHandler("onPlayerDamage", root, function( attacker, attackerweapon, bodypart, loss ) for _,player in ipairs(getElementsByType("player")) do local policeTeam = getPlayerTeam( attacker ) if ( policeTeam == Police ) and ( attacker == Police ) then if ( wantedLevel > 0 ) then -- wantedLevel is predefined .. if ( attackerweapon == 3 ) and ( loss > 2 ) then followHim(player) showCursor( true ) end end end end end) Errors: bad argument @ 'setControlState'
  13. انت مسوي هنا 2 بوابة ؟ يعني بوابة في ملف الماب وبوابة انت صانعها ؟؟؟ شيل البوابة الي بـ ملف الماب , وجرب
  14. وش فايدك انت وش فايدتك ؟ اقرا This function sets the current blend mode for the dxDraw functions. Changing the blend mode can increase the quality when drawing text or certain other images to a render target. As a general guide use modulate_add when drawing text to a render target, and add when drawing the render target to the screen. Don't forget to restore the default blend at the end.
  15. The source of this event is the vehicle that exploded. كلام بسول صح
  16. ليش ما تقرا الويكي ؟ وهي باينة , من اسمها , يخلي اي اوبجكت بالعبة قابل للكسر
  17. use this function https://wiki.multitheftauto.com/wiki/Set ... ponEnabled P.S. move this topic to scripting please ..
  18. THAT WAS A F , GREAT IDEA TAPL !!!!!! Thanks that worked
  19. Hey guys client side addEventHandler("onClientGUIClick",root, function( ) if source == Done or source == Done1 then guiSetProperty(Start,"Disabled","false") elseif source == Exit then guiSetProperty(Start,"Disabled","true") guiSetVisible(policeWindow,false) guiSetInputEnabled(false) showCursor(false) triggerServerEvent("getData",localPlayer) end end) local skins = {["Tenpenny"] = 265,["Pulaski"] = 266,["Hern"] = 267,["Cop 1"] = 280,["Cop 2"] = 281,["Cop 3"] = 282,["Cop 4"] = 283,["Cop 5"] = 284} function douple( ) local skin = guiGridListGetItemText(Gridlist,guiGridListGetSelectedItem(Gridlist),1) if skin and skin ~= "" and skins[skin] then triggerServerEvent("setData",localPlayer,skins[skin]) end end addEventHandler("onClientGUIDoubleClick", Gridlist, douple) server side addEvent("setData", true) addEventHandler("setData", root, function( mod ) local account = getPlayerAccount(client) if account and not isGuestAccount(account) then local skae = getElementModel(client) setAccountData(account,"skin",skae) end setElementModel(client,mod) end) addEvent("getData", true) addEventHandler("getData", root, function() local account = getPlayerAccount( client ) if ( account ) then local playerskin = getAccountData( account, "skin" ) if ( playerskin ) then setPedSkin( client, playerskin ) end end end) my problem here is about the ' double click ' , i've saved the skin before the player choose another skin in that gridlist , so if he exited by ' Exit ' button as we can see client side upper , then get his previous skin back , ' now my problem is , if i clicked on an row in that gridlist more than ' double click ' then set this skin as his previous skin , so if he exited the window, his skin will be a cop as we can see the list of the cops into the ' skins ' table, i'm actually trying to make a police job , so the player pick his skin and press ' start ' button then start the job , so i'll make an guessed code to make it logical understanding. server side addEvent("setData", true) addEventHandler("setData", root, function( mod ) local account = getPlayerAccount(client) if account and not isGuestAccount(account) then local skae = getElementModel(client) setAccountData(account,"skin",skae) end setElementModel(client,mod) skae = nil -- i think it will get the element model for 1 time only , so if the player clicked on an row more than double click then stop getting the gridlist models and just get his previous model. end) hope you understand me , and please if you know the solution don't hesitate to help me , and thanks for each reply.
  20. ياليت تتحول كلمة " باند " إلى : حظر او منع لأن كلمة باند باللغة العربية مالها معنى =] وأيضاً كلمة " كيك " إلى : طرد و أيضاً كلمة " سيريال " إلى : الرقم التسلسلي لا تآكد ان كل لاعبين الام تي اي يعرفونها
  21. جربت كودكـ لعدة مرات و النتيجة = أضغط اي شيء تبدأ الوظيفة مو شرط الصورة هذي =]
×
×
  • Create New...