Ka[B]cHa Posted March 31, 2014 Share Posted March 31, 2014 شباب ابي اسوي نافذة تفتتح لسيريلات معينة بس مدري وش اسختدم getPlayerSerial(localPlayer) == "" مدري كيف يعني ابي النافذة تفتح لـ5 لاعبين ذذ وش اسوي Link to comment
فاّرس Posted March 31, 2014 Share Posted March 31, 2014 -- Client Side # serials = { ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true } if serials[getPlayerSerial(localPlayer)] then -- سوي التحقق مع كود فتح النافذه ; end Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 تسلم اخوي دي البست شكرا على المساعدة Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 لو بحثت بـ المنتدى كان لقيت .. ذذ : # اللوحة تفتح لسيريال محدد ZA7F = { ["Your Serial"] = true, } local Key = "F2" local WindowName = Your Window bindKey(Key,"down",function ( ) local PlayerSerial = getPlayerSerial(localPlayer) if ( ZA7F[PlayerSerial] ) then guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; showCursor ( guiGetVisible ( WindowName ) ); end; end ); Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 اقدر اسوي elseif outputChatBox ( "لا تملك التصريح", getRootElement(), math.random(0, 255), math.random(0, 255), math.random(0, 255) true ) Link to comment
iPrestege Posted March 31, 2014 Share Posted March 31, 2014 لو بحثت بـ المنتدى كان لقيت .. ذذ :# اللوحة تفتح لسيريال محدد ZA7F = { ["Your Serial"] = true, } local Key = "F2" local WindowName = Your Window bindKey(Key,"down",function ( ) local PlayerSerial = getPlayerSerial(localPlayer) if ( ZA7F[PlayerSerial] ) then guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; showCursor ( guiGetVisible ( WindowName ) ); end; end ); -- Client Side # serials = { ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true, ['SERIAL'] = true } if serials[getPlayerSerial(localPlayer)] then -- سوي التحقق مع كود فتح النافذه ; end لو نلاحظ كلكم حاطين في فنكشن : getPlayerSerial getPlayerSerial ( localPlayer ) لكن فعلياً لـا يوجد أرقمنت لـ الاعب بجانب الكلنت .. if getPlayerSerial ( ) == '' then -- stuff end Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 برستيج ان حطيتها ما في مشكلة والكود يشتغل ذذ ZA7F = { ["Your Serial"] = true, } local Key = "F2" local WindowName = Your Window bindKey(Key,"down",function ( ) local PlayerSerial = getPlayerSerial(localPlayer) if ( ZA7F[PlayerSerial] ) then guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; showCursor ( guiGetVisible ( WindowName ) ); else outputChatBox ( "لا تملك التصريح", math.random( 255 ), math.random( 255 ), math.random( 255 ), true) end; end ); Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 يب شكرا شباب شباب مافي وظائف ثانيه لشوب ريس ؟ Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 يب شكرا شبابشباب مافي وظائف ثانيه لشوب ريس ؟ وش تبي بـ الضبط ؟ .. Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 يعني وظائف للسيارة و كذا Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 يعني وظائف للسيارة و كذا لقيت لك رد حاطه انا من زمان اختصصارات لشوب الريس .. يفيدكـ .. : amountFix = سعر الأصصلأح amountNitro = سعر النيترو amountFlip = سعر الأنقلأب local amountFix = 1000 local amountNitro = 2000 local amountFlip = 3000 addEventHandler( "onResourceStart", resourceRoot, function ( ) for _,plrs in ipairs( getElementsByType("player") ) do bindKey( plrs, "1", "Down", Fix) bindKey( plrs, "2", "Down", Flip) bindKey( plrs, "3", "Down", Nitro) end end ) addEventHandler( "onPlayerJoin", root, function ( ) bindKey( source, "1", "Down", Fix) bindKey( source, "2", "Down", Flip) bindKey( source, "3", "Down", Nitro) end ) function Fix ( plr ) if ( isPedInVehicle( plr ) ) then if ( getPlayerMoney( plr ) >= tonumber( amountFix ) ) then takePlayerMoney( plr, tonumber( amountFix ) ) fixVehicle( getPedOccupiedVehicle( plr ) ) outputChatBox("#FF0000 ** You've bought Fix !", plr,255,255,255,true) else outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) end else outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) end end function Flip ( plr ) if ( isPedInVehicle( plr ) ) then if ( getPlayerMoney( plr ) >= tonumber( amountFlip ) ) then takePlayerMoney( plr, tonumber( amountFlip ) ) local rx, ry, rz = getElementRotation(getPedOccupiedVehicle( plr )) setElementRotation ( getPedOccupiedVehicle( plr ), 0, 0, rx > 90 and rx < 279 and rz + 180 or rz ) outputChatBox("#FF0000 ** You've bought Flip !", plr,255,255,255,true) else outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) end else outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) end end function Nitro ( plr ) if ( isPedInVehicle( plr ) ) then if ( getPlayerMoney( plr ) >= tonumber( amountNitro ) ) then takePlayerMoney( plr, tonumber( amountNitro ) ) addVehicleUpgrade( getPedOccupiedVehicle( plr ), 1010 ) outputChatBox("#FF0000 ** You've bought a nitro !", plr,255,255,255,true) else outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) end else outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) end end Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 يعني الى ذون مافيه اشياء ثانيه Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 عاد فهمنا وش تبي بـ الضبط هذي كل اكواد الشوب .. : اصلاح - انقلاب - نيترو . اللهم باقي الاختفاء . ذذ Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 يب مثلا يشتري مضاد الدمج 30 ثانيه و كذا و يشتري طلقات من السيارة 30 ثانيه تقدر Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 يب مثلا يشتري مضاد الدمج 30 ثانيه و كذا و يشتري طلقات من السيارة 30 ثانيه تقدر -__- هذا صار ححرب .. مو ريس ويـ ريت توضح موضوع الطلقات Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 هههههههه يب ما تقدر ؟؟ Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 هههههههه يب ما تقدر ؟؟ اكواد وتريقرات ومشوار .. سوها بنفسكـ . Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 isVehicleDamageProof ولا setVehicleDamageProof اخليها بتايمر ؟؟ Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 setTimer isVehicleDamageProof setVehicleDamageProof Link to comment
abu5lf Posted March 31, 2014 Share Posted March 31, 2014 يب مثلا يشتري مضاد الدمج 30 ثانيه و كذا و يشتري طلقات من السيارة 30 ثانيه تقدر setVehicleDamageProof( ) * هذا يمنع السيارة من انها تضرر بالنسبة لطلقات من السيارة اتوقع تقصد مثل الشوتر هذي تعدله من الكود اللي معك وتستخدم الداتا Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 في الطلقات مثل شوووتر ذذ يعني 30 ثانيه يصير يطلق صواريخخ او اي شيء ؟؟ Link to comment
Ka[B]cHa Posted March 31, 2014 Author Share Posted March 31, 2014 يب الحين كيف تصير ؟؟ كذا setVehicleDamageProof(thevehicle, true) Link to comment
#DRAGON!FIRE Posted March 31, 2014 Share Posted March 31, 2014 كل طلباتكـ موجودة من قبل .. Client Side ! CanShoot = true bindKey ( "mouse1", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z, 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end ) Link to comment
abu5lf Posted March 31, 2014 Share Posted March 31, 2014 يب الحين كيف تصير ؟؟كذا setVehicleDamageProof(thevehicle, true) نعم 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