Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

Everything posted by The Killer

  1. local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) bindKey ( "tab", "down", function ( ) if isElementWithinMarker( source, marker ) then setAnim (source, "DANCE", "The dance") end end ) function setAnim (player, group, anim) setPedAnimation(player, group, anim) setTimer (setPedAnimation, 5000, 1, player, false) end بدل 'The dance' بأسم الرقصه الي تبيها !!
  2. خخخخ, الله يعين, شف سبحان الله نيزك وتبخر
  3. عندك طريقتين 1.setAccountData 2. executeSQLQuery
  4. عمل رائع من شخص اكثر من رائع اسف على الرد المتأخر ^,^ بالتوفيق
  5. اتوقع انه واضح ! ^
  6. زي ما قال زاحف ,, الاحجام تختلف يعني مثلا انت حطيت على شاشتك يجي واحد شاشته صغيره ويلقى الكلام في النص ولا واحد شاشته كبيره يلقى الكلام مدري وين يعني احسن شي تستخدم الي عطاك زاحف
  7. لا طبعا لازم تضيف لها وظيفه الي هي function -- الوظيفه + تضيف له حدث الي هو addEventHandler -- الحدث او اذا تبيه امر addCommandHandler -- الامر يعني في الاخر الكود بيصير كذا addEventHandler("onResourceStart", resourceRoot, -- اذا اشتغل المود function () -- وظيفه createVehicle(411, 1, 1, 1) -- نصنع السياره end -- اغلاق ) -- اغلاق او تسوي لها امر addCommandHandler("create", function (player) -- الوظيفه + الامر local x,y,z = getElementPosition(player) -- نجيب مكان الاعب createVehicle(411, x,y,z) -- نصنع السياره في مكان الاعب end -- اغلاق ) -- اغلاق
  8. https://community.multitheftauto.com/ind ... ls&id=8027
  9. ياخي انا ما انتبهت #_#
  10. @][bLACK][DETH][ window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) guiWindowSetSizable(window, false) btn1 = guiCreateButton(31, 39, 150, 75, "level 1", false, window) btn2 = guiCreateButton(446, 379, 150, 75, "level 2", false, window) btn3 = guiCreateButton(446, 294, 150, 75, "level 3", false, window) btn4 = guiCreateButton(442, 209, 150, 75, "level 4", false, window) btn5 = guiCreateButton(442, 124, 150, 75, "level 5", false, window) btn6 = guiCreateButton(247, 209, 150, 75, "head-admin", false, window) btn7 = guiCreateButton(247, 124, 150, 75, "modeditor", false, window) btn8 = guiCreateButton(442, 39, 150, 75, "big-admin", false, window) btn9 = guiCreateButton(247, 39, 150, 75, "acl manger", false, window) btn10 = guiCreateButton(31, 379, 150, 75, "supermodeditor", false, window) btn11 = guiCreateButton(31, 294, 150, 75, "admin", false, window) btn12 = guiCreateButton(31, 209, 150, 75, "superadmin", false, window) btn13 = guiCreateButton(31, 124, 150, 75, "head-maps", false, window) lbl = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) guiSetFont(lbl, "sa-header") guiSetVisible(window, false) bindKey ( "F2" , "down" , function() guiSetVisible(window,not guiGetVisible(window)) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == btn1 then outputChatBox("10ساعات") elseif source == btn2 then outputChatBox("17ساعة") elseif source == btn3 then outputChatBox("25ساعة") elseif source == btn4 then outputChatBox("32ساعة") elseif source == btn5 then outputChatBox("40ساعة") elseif source == btn6 then outputChatBox("50ساعة") elseif source == btn7 then outputChatBox("65ساعة") elseif source == btn8 then outputChatBox("80ساعة") elseif source == btn9 then outputChatBox("100ساعة") elseif source == btn10 then outputChatBox("140ساعة") elseif source == btn11 then outputChatBox("120ساعة") elseif source == btn12 then outputChatBox("180ساعة") elseif source == btn13 then outputChatBox("200ساعة") outputChatBox("خبرة بالريس") outputChatBox("تواجد باليوم على الاقل ساعتان") end end )
  11. لو ما قال ان الكود ما اشتغل ما كان حطينا الاكواد ^ -,-
  12. addEventHandler ("onClientPlayerDamage", root, function (attacker) if ( attacker and getElementType(attacker) == "player" ) then if ( getPlayerTeam(source) ~= getTeamFromName("Police") and getPlayerTeam(attacker) == getTeamFromName("Police") ) then local WastedLevel = getPlayerWantedLevel ( source ) if ( WastedLevel == 0 ) then cancelEvent() outputChatBox ("You can't kill that player, because he have 0 wanted level" , 255, 0, 0 ) end end end end )
  13. wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) bindKey ( "F2" , "down" , function() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(not isCursorShowing()) end ) addEventHandler("onClientGUIClick", getRootElement(), function () if source == SsSs then triggerServerEvent("createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function () if getElementData(getLocalPlayer(), "Hunt") then outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) else if isPedInVehicle(getLocalPlayer()) then outputChatBox("تم اصطياد سمكة", 0, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", true) end end end ) addCommandHandler( "givt", function () if getElementData(getLocalPlayer(), "Hunt") == true then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", false) else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end ) local vehicle = {} addEvent( "createTheVehicle", true ) addEventHandler( "createTheVehicle", root, function ( ) if ( isElement ( vehicle[source] ) ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle(411, x, y, z) if ( vehicle[source] ) then warpPedIntoVehicle ( source, vehicle[source] ) end end ) addEvent ("giveMoney", true) addEventHandler("giveMoney", root, function () givePlayerMoney(source, 40) end )
  14. wnd = guiCreateWindow(0.2612,0.2683,0.4762,0.545,"",true) mem = guiCreateMemo(9,23,363,250,"",false,wnd) guiMemoSetReadOnly(mem,true) Edis = guiCreateEdit(9,280,287,38,"",false,wnd) Gost = guiCreateButton(298,281,74,37,"Gos !!",false,wnd) guiSetVisible(wnd,false) bindKey ( "F2" , "down" , function() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(not isCursorShowing()) end ) addEventHandler("onClientGUIClick",getRootElement(), function () if ( source == Gost ) then guiSetText ( mem, guiGetText( Edis )) end end )
  15. فيه اي أخطاء في الديبوق ؟
  16. الكلام الي قلناه لك دخل من هنا > وطلع من هنا <
  17. انا ما ني معصب ,, انا قلت لك الكود شغال ! انت شكلك غلطان في الاحداثيات اطرح الكود كامل بعد التعديل مع الاحداثيات
  18. انا اصلا مجرب الكود ,, قبل لا تسوي الجدول بس صح لازم تسوي جدول بس الكود شغال 100% انت شكلك تبي تسولف ؟ ولا انت تمسك الكود وتطقطق فيه ولا حايس الدنيا ولا مدري وش تبي تسوي #_# حيرتني معك !! + اذا تبي تطرح الكود اطرحه مع الاحداثيات
×
×
  • Create New...