Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

Everything posted by The Killer

  1. اي افضل يا رجال خخخ والله اسوأ استضافه مرت علي دعم مره سيء سرعه مره سيئه حاطين دعم على مدار 24 ساعه ولا هو تعليق على مدار 24 ساعه واذا ردو عليك يردون بعد سنه وحاطين لك استرجاع اموال جيت بكلم الدعم اقوله بسترجع اموالي عطاني غير متصل هههههه يا رجال والله اسوأ استضافه مرت علي .. الله المستعان
  2. hello guys, is there a problem with this function ? setPedControlState because when i'm trying to make the ped fire rockets from the plane i can't but if i used vehicle_secondary_fire it works, but the rockets doesn't work so is there a problem?
  3. radar = createRadarArea ( 4743.5,-71.400001525879,1835.3000488281 , 100, 166, 7, 216, 155 ) bom = createColRectangle ( 4743.5,-71.400001525879,1835.3000488281, 100) setElementDimension ( radar, 15 ) setElementDimension ( bom, 15 ) local playerTeam = {} addEventHandler ( "onColShapeHit", bom, function ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then if getPlayerTeam (hitElement) then playerTeam [hitElement] = getTeamFromName (getTeamName (getPlayerTeam (hitElement))) end setPlayerTeam (hitElement, getTeamFromName ("No Team")) outputChatBox ( "#ff0000*#ffff00.:[ You can kill your Group members now ]:.", hitElement, 255, 255, 0, true ) end end, false) addEventHandler ( "onColShapeLeave", bom, function ( leaveElement ) if ( getElementType ( leaveElement ) == "player" ) then if (playerTeam [leaveElement]) then setPlayerTeam (leaveElement, playerTeam [leaveElement]) playerTeam [leaveElement] = nil end end end, false ) addEventHandler ( "onPlayerQuit", root, function ( ) if (playerTeam [source]) then playerTeam [source] = nil end end )
  4. هذي آلقيمه حقت الداتا "Banned" -- The Killer يعطيكك آلعافيه لكن فيه مشكله الله يعافيك .. بس زي ما قال الوحش فوق setElementData (source, "Banned", Yes) كذا ما يصلح لأنها بتطلع لك فراغ الي هو nil فعشان كذا سو لها سترنق زي كذا setElementData (source, "Banned", "Yes")
  5. addEventHandler ("onResourceStart", resourceRoot, function () local CreateNewTable = executeSQLQuery ("CREATE TABLE IF NOT EXISTS blcser (serial, ban)") if ( CreateNewTable ) then outputDebugString ("Create [ Black List Table ] Table done .") end end ) addEventHandler ("onPlayerQuit", root, function () local blc = getElementData ( source, "Banned" ) if ( blc ) == Yes then outputDebugString ("get data done.") local Results = executeSQLQuery ("SELECT * FROM blcser WHERE serial=?", tostring (getPlayerSerial (source)) ) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then executeSQLQuery( "INSERT INTO blcser (serial, ban) VALUES (?, ?)", tostring (getPlayerSerial (source)), tostring (blc)) else executeSQLQuery ("UPDATE blcser SET ban =? WHERE serial =?", tostring (blc), tostring (getPlayerSerial (source)) ) end end end )
  6. نفس المشكله ما يطلع الكلام ولا ايش ؟
  7. جرب كذا .. لم يتم التجربه تمت الإزالة
  8. Event # 'onClientGUIClick' 'onClientResourceStart' function # guiCreateGridList -- loop guiGridListAddRow getPlayerName guiGridListSetItemText guiGridListGetSelectedItem setElementData getElementData or triggerServerEvent -- Server side # setAccountData getAccountData
  9. تقدر تسويها اول ما يضغط زر الارسال يتحقق من انه معه ميوت الي هو عن طريق الالمنت داتا وبعد كذا لو كان معه يطلع له معك ميوت وهكذا عموما عشان تسويه هذي الفنكشنات الي تحتاجها Event # 'onClientGUIClick' function # guiCreateButton setElementData getElementData ولو تبي تحفظ الميوت غير ال setElementData getElementData ل setAccountData getAccountData لاكن لازم تسوي تريقر triggerServerEvent
  10. المشكله مو مشكلة ماتعرف الحل المشكله هي انك ايش تبي تسوي بالضبط لأني ماني فهام عليك ايش تبي تسوي فعشان كذا سألتك لاكن الي فهمته منك انك تبي اذا حسابه بالجدول ما يقدر يتكلم بالشات واذا مب بالجدول يقدر يتكلم .. عموما هذا كود نوعا ما نفس طلبك واذا مب نفس طلبك تقدر تستفيد منه + لو عندك مود تاج حط الكود معه لو ما معك حطه لحاله عشان لا يتكرر الكلام مرتين local BlackListed = {"acc1", "acc2", "acc3"} addEventHandler ("onPlayerChat", root, function (text) if not isGuestAccount (getPlayerAccount (source)) then local acc = getPlayerAccount (source) for _,v in ipairs (BlackListed) do if getAccountName (acc) == v then cancelEvent () outputChatBox ("Error - You are not allowed to talk.", source, 255, 0, 0) break else cancelEvent () outputChatBox (getPlayerName (source) .. ": " .. text, root, 255, 255, 255) break end end end end )
  11. وظيفه حلوه .. لاكن تقدر تستخدم string.format اسهل ..
  12. في المره الاولى تتحقق اذا معه تيم ولا لا ويكون شرط انه يكون معه تيم لاكن لو ماحطيناها بيصير عندك خطأ ف عشان تتجنب الخطأ هذا لازم تحطها كذا
  13. لا .. if getPlayerTeam (source) and getTeamName ( getPlayerTeam ( source ) ) == "No Team" then
  14. ناقصك تتحقق لو معه تيم اولا ..
  15. ايش تبي تسوي انت بالضبط ؟
  16. الإلمنت داتا تروح اول ما اللاعب يطلع من السيرفر لاكن تقدر تسويها عن طريق setAccountData
  17. else local AccountName = getAccountName(getPlayerAccount(source)) BlackListed = {"--","--","--"} for _,theAcc in ipairs(BlackListed) do if ( not isGuestAccount(getPlayerAccount(source)) and AccountName == theAcc ) and msg == "TT" then cancelEvent() break
  18. else local AccountName = getAccountName(getPlayerAccount(source)) BlackListed = {"--","--","--"} for _,theAcc in ipairs(BlackListed) do if ( not isGuestAccount(getPlayerAccount(source)) and AccountName == theAcc ) and msg == "TT" then cancelEvent()
  19. مشكور ع المعلومه , وبالنسبه للاعب في الايفنت onPlayerChat هو لنه حط فيه اللاعب فخربطني معه , ونسيت انه السورس هو اللاعب
  20. setElementData getElementData
  21. استخدم guiCheckBoxGetSelected setElementData getElementData
×
×
  • Create New...