-
Posts
379 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Ram,
-
-- وفي حل اخر addCommandHandler("Nowarp",function (player) if ( getPlayerSerial(player) == 'حط سيريالك' ) or ( getPlayerSerial(player) == 'حط سيريالك' ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) end elseif ( getPlayerSerial(player) == 'سيريال خويك') then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) end end end )
-
خلنا الحين ب قصة تقدر تسحب او لا , تقدر تسحب ؟ بعد م ضبطت الاكواد ؟ بالنسبة لـ اذا تبي تضيف شخص ثاني addCommandHandler("Nowarp",function (player) if ( getPlayerSerial(player) == 'حط سيريالك' ) or ( getPlayerSerial(player) == 'حط سيريالك' ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) end end end ) -- اذا م زبط , جرب هذا addCommandHandler("Nowarp",function (player) if ( getPlayerSerial(player) == 'حط سيريالك' ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) return end end if ( getPlayerSerial(player) == 'سيريال خويك' ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) return end end end ) + شوف بعد محاولاتي و الاكواد الي فوق, تقدر تسحب ؟؟؟ وقلي ايش يطلعلك n1 او n2
-
elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if ( getElementData(to,"heisprotectedfromwarp") == true ) then outputChatBox("* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then warpPlayer ( source, player ) else if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) Try إذا ما ضبط , جرب سوي كذا وقلي إيش بيطلع لك بالشات لما تجي تسحب elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if ( getElementData(to,"heisprotectedfromwarp") == true ) then outputChatBox("n2* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then outputChatBox("n1* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end warpPlayer ( source, player ) else if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) تقولي ايش يطلعلك n1 او n2
-
إسألهم , يقدرو ينتقلو لك ؟
-
ملاحظة : إذا كنت بسيرفر محلي وما في احد معاك , ف أكيد ما راح تقدر تنتقل , لأنك تنتقل لنفسك والداتا حقت الحمايهه معاك ._. جربها ب سيرفر عالمي وجيب احد معاك
-
elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if ( getElementData(to,"heisprotectedfromwarp") == true ) then outputChatBox("* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then outputChatBox("* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end warpPlayer ( source, player ) else if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end ) Try ^^
-
انت ما تقدر تنتقل ؟
-
--@Server Side , هذي الاكواد حطها ب أي مود , المهم سيرفر سايد addCommandHandler("Nowarp",function (player) if ( getPlayerSerial(player) == 'حط سيريالك' ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then setElementData(player,"heisprotectedfromwarp",false) outputChatBox("* تم إطفاء الحماية من الإنتقال",player,255,0,0) else setElementData(player,"heisprotectedfromwarp",true) outputChatBox("* تم تشغيل الحماية من الإنتقال",player,255,255,0) end end end ) الي فوق حطهم ب اي مود بالنسبة ل لوحة الادمن تفضل elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if ( getElementData(p,"heisprotectedfromwarp") == true ) then outputChatBox("* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( isPedInVehicle ( to ) ) then local vehicle = getPedOccupiedVehicle ( to ) local seats = getVehicleMaxPassengers ( vehicle ) + 1 local i = 0 while ( i < seats ) do if ( not getVehicleOccupant ( vehicle, i ) ) then setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i ) fadeCamera ( p, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) break end i = i + 1 end if ( i >= seats ) then warp ( p, to ) outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p ) end else warp ( p, to ) end end if ( action == "warp" ) then if ( getElementData(player,"heisprotectedfromwarp") == true ) then outputChatBox("* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end warpPlayer ( source, player ) else if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end warpPlayer ( player, data ) mdata = getPlayerName ( data ) end else action = nil end if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end return true end outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 ) return false end )
-
أجل وين الغلط بالموضوع؟ --@Client Side addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.button[1] then for i,Players in pairs(getElementsByType("player")) do triggerServerEvent("replaceit",Players) end end end ) --@Server Side addEvent("replaceit",true) ; addEventHandler("replaceit",root,function ( ) dfftq = engineLoadDFF("inf1/infernus.dff", 411) engineReplaceModel(dfftq, 411) txdty = engineLoadTXD("inf1/infernus.txd") engineImportTXD(txdty, 411) end ) *
-
يو أر ولكم ^
-
لأنك رسترت المود والداتا معاكك ... سوي ريكونكت ..
-
outputChatBox("* عليك الانتظار قبل الانتحار مرة أخرى ]x",255,0,0) جرب لا تنسى اللايك ي قلب ^^
-
اطرح اكواد السيرفر كاملة واكواد الكلنت كاملة . + جرب function killLocalPlayer() if ( getElementData(localPlayer,"heiswasted") == true ) then outputChatBox("* عليك الانتظار قبل الانتحار مرة أخرى",source,255,0,0) return end server.killPed(g_Me) end
-
اوك تمام ركز معي الحين ... حط هذا الكود ب أي مود , المهم يكون ملف كلنت addEventHandler("onClientPlayerWasted",root,function ( ) setElementData(localPlayer,"heiswasted",true) setTimer(removewasteddata,5000,1) end ) function removewasteddata ( ) setElementData(localPlayer,"heiswasted",false) end بتروح على الفنكشن حق لما اللاعب يضغط على زر الانتحار ويقتله , فاهم قصدي ؟ وتحط هذا الكود if ( getElementData(source,"heiswasted") == true ) then outputChatBox("* عليك الانتظار قبل الانتحار مرة أخرى",source,255,0,0) return end ملاحظة , ( source ) غير الـ ب إسم المتغير الي بالكود .. واذا مو فاهمها , إطرح لي اكواد ملف سيرفر حق الفري روم واكواد الكلنت وانا اسويها لك
-
Try , --@Client Side addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.button[1] then triggerServerEvent("replaceit",root) end end ) --@Server Side addEvent("replaceit",true) ; addEventHandler("replaceit",root,function ( ) dfftq = engineLoadDFF("inf1/infernus.dff", 411) engineReplaceModel(dfftq, 411) txdty = engineLoadTXD("inf1/infernus.txd") engineImportTXD(txdty, 411) end ) لا تنسى اللايك ^
-
يب أكيد , بس الرجال جاب المود وطلب طلب , ف سويناه له ..
-
انا سويتها لك , addEventHandler("onClientPlayerWasted",root,function ( ) guiSetEnabled(إسم زر الانتحار,false) setTimer(setenb,5000,1) end ) -- function setenb( ) guiSetEnabled(اسم زر الانتحار,true) end كذا هو أصلاً ما راح يقدر يضغط على زر الانتحار يالطيب ..
-
إنت طلبت انه يرجع للحياة بعد 5 ثواني صح ؟, الحين الي فوق , هيمو سواه لك .. والحين تبي حق مايقدر ينتحر مرتين وراء بعض, والحين مايقدر ينتحر مرتين وراء بعض أصلاً .... وتقدر تغير التايمر ..
-
شدخل ذا الجدول؟ م في فنكشن له
-
تروح الفري روم , وتسوي "onClientPlayerWasted" وتسوي addEventHandler("onClientPlayerWasted",root,function ( ) guiSetEnabled(إسم زر الانتحار,false) setTimer(setenb,5000,1) end ) -- function setenb( ) guiSetEnabled(اسم زر الانتحار,true) end
-
addEventHandler("onPlayerChat",root, function ( msg ) if string.find(msg,'دائري') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,1770.23401,839.80615,10.5 ) elseif string.find(msg,'طعوس') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,-2531.8293457031,-2804.6882324219,13.602096557617 ) elseif string.find(msg,'نخيل') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,2093.3054199219,1402.8038330078,10.8203125 ) elseif string.find(msg,'فروسية') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,2878.1115722656,-1110.029296875,10.882762908936 ) elseif string.find(msg,'جسر') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,-1574.6706542969,623.50903320313,42.5518 ) elseif string.find(msg,'سينما') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,171.68533,1099.82129,16.55) elseif string.find(msg,'منطقة جيش') then if (getElementDimension (source) == 55 ) then outputChatBox("* انت في مهمة لا يمكنك الانتقال",source,255,0,0) return end setElementPosition ( source,96.93044,1998.14124,18.6) end end) تفضل لا تنسى التقييم