Ahmad94 Posted January 18, 2014 Share Posted January 18, 2014 السلام عليكم شباب انا عندي سيرفر ريس وابي اعرف شلون اسوي اختصارا Fix flip nitro كل واحد ورقمه مثل 123 اتمنى انكم تساعدوني Link to comment
TAPL Posted January 18, 2014 Share Posted January 18, 2014 اختصار للكومند قصدك؟ bindKey ينقل الى قسم البرمجة Link to comment
Ahmad94 Posted January 18, 2014 Author Share Posted January 18, 2014 مثلا انا منزل شوب , وابي النيترو يكون 1 , والفكس 2 , والفليب 3 زي كذا فهمت ؟ , ويكون لكل السيرفر مو لي بس Link to comment
TAPL Posted January 18, 2014 Share Posted January 18, 2014 اختصار للكومند قصدك؟ bindKey ينقل الى قسم البرمجة ^^ Link to comment
Ahmad94 Posted January 18, 2014 Author Share Posted January 18, 2014 أخوي تآبل اعتقد هذا الاختصار بيكون لي فقط , انا ابيه للسيرفر كله عرفت , يآليت تشرحلي شويات لاني ضعيف شوي بهذي الأمور Link to comment
AboShanab Posted January 18, 2014 Share Posted January 18, 2014 اكتب باف 8 bind 1 nitro bind 2 flip bind 3 repair Link to comment
Ahmad94 Posted January 18, 2014 Author Share Posted January 18, 2014 اكتب باف 8 bind 1 nitro bind 2 flip bind 3 repair ما أشتغل Link to comment
iPrestege Posted January 18, 2014 Share Posted January 18, 2014 سبحآن الله بيشتغل كذا لله ؟ Link to comment
Ahmad94 Posted January 18, 2014 Author Share Posted January 18, 2014 سبحآن الله بيشتغل كذا لله ؟ اعرف انه مابيشتغل كذا , عشان كذا اطلب المساعدة Link to comment
al-Kobra Posted January 18, 2014 Share Posted January 18, 2014 function ( ) bindKey ( source,"1","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) addVehicleUpgrade ( o, 1010 ) outputChatBox( "[" .. getPlayerName(source) .. " ] #FF0000Has Bought A Nitro" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"2","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle( source ) ) setVehicleRotation ( getPedOccupiedVehicle( source ), rx +180, ry, rz +180 ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Flip" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"3","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) fixVehicle( o ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Repair" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end جرب هذا Link to comment
#DRAGON!FIRE Posted January 18, 2014 Share Posted January 18, 2014 function ( ) bindKey ( source,"1","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) addVehicleUpgrade ( o, 1010 ) outputChatBox( "[" .. getPlayerName(source) .. " ] #FF0000Has Bought A Nitro" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"2","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle( source ) ) setVehicleRotation ( getPedOccupiedVehicle( source ), rx +180, ry, rz +180 ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Flip" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"3","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) fixVehicle( o ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Repair" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end جرب هذا متاكد انه ذا كود ؟؟ ججرب .. 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
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