-
Posts
1,336 -
Joined
Everything posted by The Killer
-
لاين هوست - VPS KVMعرض خاص على الخوادم الكامله والـ
The Killer replied to Line Host's topic in الاستضافات
اي افضل يا رجال خخخ والله اسوأ استضافه مرت علي دعم مره سيء سرعه مره سيئه حاطين دعم على مدار 24 ساعه ولا هو تعليق على مدار 24 ساعه واذا ردو عليك يردون بعد سنه وحاطين لك استرجاع اموال جيت بكلم الدعم اقوله بسترجع اموالي عطاني غير متصل هههههه يا رجال والله اسوأ استضافه مرت علي .. الله المستعان -
oh .. thanks
-
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?
-
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 )
-
هذي آلقيمه حقت الداتا "Banned" -- The Killer يعطيكك آلعافيه لكن فيه مشكله الله يعافيك .. بس زي ما قال الوحش فوق setElementData (source, "Banned", Yes) كذا ما يصلح لأنها بتطلع لك فراغ الي هو nil فعشان كذا سو لها سترنق زي كذا setElementData (source, "Banned", "Yes")
-
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 )
-
نفس المشكله ما يطلع الكلام ولا ايش ؟
-
جرب كذا .. لم يتم التجربه تمت الإزالة
-
Event # 'onClientGUIClick' 'onClientResourceStart' function # guiCreateGridList -- loop guiGridListAddRow getPlayerName guiGridListSetItemText guiGridListGetSelectedItem setElementData getElementData or triggerServerEvent -- Server side # setAccountData getAccountData
-
تقدر تسويها اول ما يضغط زر الارسال يتحقق من انه معه ميوت الي هو عن طريق الالمنت داتا وبعد كذا لو كان معه يطلع له معك ميوت وهكذا عموما عشان تسويه هذي الفنكشنات الي تحتاجها Event # 'onClientGUIClick' function # guiCreateButton setElementData getElementData ولو تبي تحفظ الميوت غير ال setElementData getElementData ل setAccountData getAccountData لاكن لازم تسوي تريقر triggerServerEvent
-
المشكله مو مشكلة ماتعرف الحل المشكله هي انك ايش تبي تسوي بالضبط لأني ماني فهام عليك ايش تبي تسوي فعشان كذا سألتك لاكن الي فهمته منك انك تبي اذا حسابه بالجدول ما يقدر يتكلم بالشات واذا مب بالجدول يقدر يتكلم .. عموما هذا كود نوعا ما نفس طلبك واذا مب نفس طلبك تقدر تستفيد منه + لو عندك مود تاج حط الكود معه لو ما معك حطه لحاله عشان لا يتكرر الكلام مرتين 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 )
-
وظيفه حلوه .. لاكن تقدر تستخدم string.format اسهل ..
-
في المره الاولى تتحقق اذا معه تيم ولا لا ويكون شرط انه يكون معه تيم لاكن لو ماحطيناها بيصير عندك خطأ ف عشان تتجنب الخطأ هذا لازم تحطها كذا
-
لا .. if getPlayerTeam (source) and getTeamName ( getPlayerTeam ( source ) ) == "No Team" then
-
ناقصك تتحقق لو معه تيم اولا ..
-
ايش تبي تسوي انت بالضبط ؟
-
الإلمنت داتا تروح اول ما اللاعب يطلع من السيرفر لاكن تقدر تسويها عن طريق setAccountData
-
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
-
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()
-
مشكور ع المعلومه , وبالنسبه للاعب في الايفنت onPlayerChat هو لنه حط فيه اللاعب فخربطني معه , ونسيت انه السورس هو اللاعب
-
setElementData getElementData
-
استخدم guiCheckBoxGetSelected setElementData getElementData
