-
Posts
2,013 -
Joined
-
Last visited
Everything posted by iMr.SFA7
-
أعتذر ما كنت أدري أنك تبيها كذآ عموماً يصير كذآ groupName = '[Congress]' addEventHandler ("onPlayerWasted",root, function (_,killer) if killer and getElementType(killer) == "player" and killer ~= source then if ( getPlayerTeam(killer) == getTeamFromName("Criminals") and getElementData ( source , "Group" ) == groupName ) then setElementData ( source,"xXx",true) end end end ) addEventHandler ("onPlayerSpawn",root, function ( ) if ( getElementData ( source ,"xXx") == true ) then setTimer ( function ( source ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setElementDimension( source, 0 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) setElementData ( source,"xXx",nil) end,500,1,source ) end end )
-
جرب هذا groupName = '[Congress]' addEventHandler ("onPlayerWasted",root, function (_,killer) if killer and getElementType(killer) == "player" and killer ~= source then if ( getPlayerTeam(source) == getTeamFromName("Criminals") and getPlayerTeam(killer) == getTeamFromName("Criminals") or getElementData ( source , "Group" ) == groupName and getElementData ( killer , "Group" ) == groupName ) then setElementData ( source,"xXx",true) end end end ) addEventHandler ("onPlayerSpawn",root, function ( ) if ( getElementData ( source ,"xXx") == true ) then setTimer ( function ( source ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setElementDimension( source, 0 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) setElementData ( source,"xXx",nil) end,500,1,source ) end end ) اذا ما ضبط أعلم أن المشكلة هي - أن الي مات أو القاتل مهوب بتيم الكريمنال
-
متأكد أنك بدلت المتغيرات وعطيته الصلاحيات؟ شفلي الدي بق يقولكـ شيء؟
-
يحتآج صلاحيات ضيفه للقروب الكونسل ذذذذ
-
لا -_-" --[[ button = Your Button Name gridlist = Your gridlist Name Group = Your Group Name --]] -- # Client Side ; addEventHandler ("onClientGUIClick", button, function ( ) local Player = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist), 1) triggerServerEvent("GoToServer", localPlayer, getPlayerFromName(Player)) end,false ) -- # Server Side ; addEvent( "GoToServer", true ) addEventHandler( "GoToServer", root, function (thePlayer) if (isElement(thePlayer)) then local accountName = getAccountName(getPlayerAccount(thePlayer)) if ( accountName ) then aclGroupAddObject (aclGetGroup("Group"), "user."..accountName) end end end )
-
كودكـ كله أخطاء وأنت مسوي اذا اللاعب ضغط على الزر يعطي اللاعب الي ضغط مهوب الي أختاره بالقريد ليست ذذذ
-
كودكـ خطأ لازم تجيب الشيء الي أخترته من القريد ليست وتجيب حسابه وتضيفه ذذذذذ "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent getPlayerAccount isGuestAccount aclGroupAddObject aclGetGroup
-
طيب جرب كذآ groupName = '[Congress]' addEventHandler ("onPlayerWasted",root, function (_,killer) if killer and getElementType(killer) == "player" and killer ~= source then local sourceTeam = getPlayerTeam (source) local killerTeam = getPlayerTeam (killer) if ( sourceTeam and killerTeam ) then if getTeamName(sourceTeam) ~= "Criminals" or getTeamName(killerTeam) ~= "Criminals" or getElementData ( source , "Group" ) ~= groupName or getElementData ( killer , "Group" ) ~= groupName then return end setElementData ( source,"xXx",true) end end end ) addEventHandler ("onPlayerSpawn",root, function ( ) if ( getElementData ( source ,"xXx") == true ) then setTimer ( function ( source ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setElementDimension( source, 0 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) setElementData ( source,"xXx",nil) end,500,1,source ) end end )
-
الوظيفة موجودة في الكود حقك ووظيفتها أنها تحذف الجدول يعني تحذف الأمر بعد الساعة الي تحددها addEventHandler("ToServer",root, function (word,get,time) if word and tonumber(get) and tonumber(time) then table.insert(w,{word,get}) setTimer(function () for _,v in ipairs(w) do if v[1] == word and v[2] == get then table.remove(w,i) end end end,time*60*60*1000,1) end end )
-
تبي قريد ليست فيه الرتب ولا الرتب تكتبها في الأديت!؟
-
بدل متغيرات اللوحة والقريد ليست وبــس ذذذ
-
صحيح بس عندك أند زايد بفتح النافذة !
-
لا البلاير مالها دخل بالحدث ذذذ شفلي الدي بق يقولكـ شيء؟
-
أطرح الأكواد كاملة عشآن أقدر أساعدكـ آمآ كذآ مآقدر من وين أجيبها يعني !؟
-
"onClientGUIClick" guiSetVisible getElementsByType -- "player" getPlayerName guiGridListSetItemText
-
سطر 6 commandd = غــيـر معــرف
-
.. لم يتم التجربة .. local groupName = '[Congress]' addEventHandler ("onPlayerWasted",root, function (_,killer) if ( killer ~= source and getElementType ( killer) == "player" ) then if getPlayerTeam ( source ) and getTeamName(getPlayerTeam(source)) == "Criminals" or getElementData ( source , "Group" ) == groupName then if getPlayerTeam ( killer ) and getTeamName( getPlayerTeam( killer ) ) == 'Criminals' or getElementData ( source , "Group" ) == groupName then setElementData ( source,"xXx","Yes") end end end end ) addEventHandler ("onPlayerSpawn",root, function ( ) if ( getElementData ( source ,"xXx") == "Yes" ) then setTimer ( function ( source ) setElementPosition( source, 241.30241394043,1028.7094726563,1084.0078125 ) setElementInterior( source, 7 ) setElementDimension( source, 0 ) setPedArmor ( source, 100) setPedFightingStyle ( source, 7) setElementHealth (source,200) setPedStat (source, 24, 1000) setElementData ( source,"xXx",nil) end,500,1,source ) end end )
-
لا مهيب نفسها ترسلها بالترايقر من الكلنت للسيرفر وهي سيرفر فقط ذذ "client" الـ كـ مثآل لما يضغط الزر يعطي دم للكلنت الي هو الي سوآ الترايقر يعني الي ضغط الزر -- Client Side : addEventHandler ("onClientGUIClick",button, function ( ) triggerServerEvent ("health",localPlayer) end, false ) -- # Server Side : addEvent ("health",true) addEventHandler ("health",root, function ( ) setElementHealth (client,100) end ) تقدر تسويها بأكثر من طريقة الطريقة الي فوق هاذي بأستعمال الكلنت الي هو الي سوآ الترايقر ذذذ عندكـ طريقة ثانية بعد -- Client Side : addEventHandler ("onClientGUIClick",button, function ( ) triggerServerEvent ("health",localPlayer,localPlayer) end, false ) -- Server Side : addEvent ("health",true) addEventHandler ("health",root, function (player) setElementHealth (player,100) end ) هذي الطريقة هي [انك ترسل اللاعب بالترايقر وتعرفه بالسيرفر ذذذ لاحظ أني حاط بالترايقر triggerServerEvent ("health",localPlayer,localPlayer) حطيت اللوكال بلاير مرتين يعني أرسلت اللوكال بلاير بالسيرفر وعرفته هنآكـ وبعد عندكـ طريقة ثالثة ذذذ -- Client Side : addEventHandler ("onClientGUIClick",button, function ( ) triggerServerEvent ("health",localPlayer) end, false ) -- Server Side : addEvent ("health",true) addEventHandler ("health",root, function ( ) setElementHealth (source,100) end ) وهاذي الطريقة هي أنك تحط السورس ذذذ
-
الكلنت هو الي سوآ الترايقر يعني كـ مثآل الي ضغط الزر نسوي ترايقر للسيرفر ونحط شخصية للكلنت هاذي راجعة للي سوآ الترايقر وهي سيرفر سايد فقط ذذذ
-
أحذف سكربت الوقت الي بالتاب المشفر تشوف السكربت حق التوب!؟ أدخل على ملف السيرفر حقه وأنزل آخر سطر وضيف هـ الكود exports.scoreboard:addScoreboardColumn('Time') local t = { } function checkValues( source,arg1,arg2) if (arg2 >= 60) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 60) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "Time", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) end end, 1000, 0 )
-
طيب أطرحلي ملف السيرفر حق سكربت التاب! يمكن أسم الكولمن مختلف عن الي بالسكربت حق التوب!
-
هذا لأنك ماركبت سكربت الوقت الي بالتاب!
