Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 انا مافهمت وش المطلوب انت تبي ماحد يقدر يسحبك ؟ صح وتبي تسحب الناس لك او تنتقل لهم ؟ Link to comment
#\_oskar_/# Posted February 13, 2018 Share Posted February 13, 2018 3 minutes ago, Abdul KariM said: انا مافهمت وش المطلوب انت تبي ماحد يقدر يسحبك ؟ صح وتبي تسحب الناس لك او تنتقل لهم ؟ انا كمان مافهمته Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 9 minutes ago, Abdul KariM said: انا مافهمت وش المطلوب انت تبي ماحد يقدر يسحبك ؟ صح وتبي تسحب الناس لك او تنتقل لهم ؟ يب 6 minutes ago, #\_oskar_/# said: انا كمان مافهمته ابي احط سريالي وسريال اخوي وميقدر احد يقدر يسحبنا من لوحة لكن انا بقدر اسحب وشكرا لكم اخوتي Link to comment
Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 طيب احذف السطر هذا من الكود الي حاطه انا if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end ودور على الكود if ( action == "warp" ) then warpPlayer ( source, player ) else else وضيف تحت if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end واحفظ وجرب وان شاء الله يشتغل Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 local Serials = { ["سريالي"] = true, ["سريال اخوي"] = true, }; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false 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 ( p ) ] and p ~= to 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 ) تمام ميقدر احد يسحبني بس المشكلةة لا انا ولا اخوي نقدر ننتقل من لوحة كلمة warp منقدر Link to comment
Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 سطر 11 احذفه قلت لك فوق Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end function warp ( p, to ) 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 ( p ) ] and p ~= to 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 ) كذا اخوي؟ اخوي Link to comment
Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 local Serials = { ["سريالي"] = true, ["سريال اخوي"] = true, }; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) 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 ( p ) ] and p ~= to 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 ) Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 الحين تمام بس يقدرو يسحبوني بس بقدر انتقل من لوحة Link to comment
Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 معليش فيه غلط جرب ذا local Serials = { ["سريالي"] = true, ["سريال اخوي"] = true, }; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) 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 ) Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 الحين لما بسحب شخص ميطلع فشات اني سحبته ليه Link to comment
Abdul KariM Posted February 13, 2018 Share Posted February 13, 2018 شغال معاك الحين ؟ ماعليك من الرسالة Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 مهو يقدر اي شخص يسحب ثاني ويخرب عليه الحين تممام ميقدر احد يسحبني وبقدر انتقل ^^ بس المشكلة مبقدر اسحب لاعب الو Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 (edited) شباب استسلمتو ؟ Edited February 13, 2018 by HelpGuys Link to comment
Guest Posted March 2, 2018 Share Posted March 2, 2018 صبر هدي نفسكـ ، يآ أخوي أنت وش تبي بظبط انا بصراحهـ أنلحس مخي !!! >< Link to comment
Meliodas Posted June 14, 2018 Share Posted June 14, 2018 On 13/02/2018 at 15:27, Abdul KariM said: معليش فيه غلط جرب ذا local Serials = { ["سريالي"] = true, ["سريال اخوي"] = true, }; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) 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 ) دي الاكواد وين تنحط ? قصدي اي ملف ? باللوحة Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now