Mr-Kartha Posted November 14, 2012 Share Posted November 14, 2012 مرحبا كيفكم اخباركم ودي اصحح كود السيرفر ذا طبعا ذا صالح ميه ميه بس اضيف عليه كود الاختصار يخرب راح اعطيكم الكود كود ملف سيرفر --------------------------- Server Side ------------------------------------ addEvent("getPing",true) addEventHandler("getPing",root, function() local ip=getPlayerIP(client) triggerClientEvent(client,"settingText",client,ip) end) addEvent("getIP",true) addEventHandler("getIP",root, function() local ip=getPlayerIP(client) triggerClientEvent(client,"settingText",client,ip) end) addEvent("getplayerskin",true) addEventHandler("getplayerskin",root, function() local ip=getplayerskin(client) triggerClientEvent(client,"settingText",client,ip) end) local rootElement = getRootElement() function qq() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #f000003,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #f000003,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #f000003,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) addEvent("buyInvisible", true) addEventHandler("buyInvisible", rootElement, function() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [ #f0000015,000 #ffffff]", source, 255, 255, 255, true) end end ) يوم اضيف له هاذ الكود addCommandHandler("buy", function(player, cmd, what) if what == "nitro" then if (getPlayerMoney(player) >= 3000) then local vehicle = getPedOccupiedVehicle(player) if vehicle then takePlayerMoney(player,3000) local name = getPlayerName(player) addVehicleUpgrade(vehicle, 1010) outputChatBox("[ #0000ff"..name.." #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", player, 255,255,255,true) else outputChatBox("You aren't in vehicle!", player, 255,0,0,true) end else outputChatBox("You Dont Have [#999999 3,000 #007fff]", player, 0,127,255,true) end يخرب يبطل يشغل الازار ولا الاي بي يبين المهم انا ما عرفة احط الكود ذا ممكن احد يحطه لي للـ نيترو ولاصلاح ولتعديل ولاخفاء وشكرا .... Link to comment
3NAD Posted November 15, 2012 Share Posted November 15, 2012 addCommandHandler ( "buy", function ( player, cmd, what ) if what == "nitro" then if getPlayerMoney ( player ) >= 3000 then if isPedInVehicle ( player ) then takePlayerMoney ( player, 3000 ) addVehicleUpgrade ( getPedOccupiedVehicle ( player ), 1010 ) outputChatBox ( "* [ #0000ff" .. getPlayerName ( player ) .. " #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", root, 255, 255, 255, true ) else outputChatBox ( "* You aren't in vehicle!", player, 255, 0, 0, true ) end else outputChatBox ( "* You Dont Have [#999999 3,000 #007fff]", player, 0, 127, 255, true ) end end end ) Link to comment
Mr-Kartha Posted November 15, 2012 Author Share Posted November 15, 2012 addCommandHandler ( "buy", function ( player, cmd, what ) if what == "nitro" then if getPlayerMoney ( player ) >= 3000 then if isPedInVehicle ( player ) then takePlayerMoney ( player, 3000 ) addVehicleUpgrade ( getPedOccupiedVehicle ( player ), 1010 ) outputChatBox ( "* [ #0000ff" .. getPlayerName ( player ) .. " #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", root, 255, 255, 255, true ) else outputChatBox ( "* You aren't in vehicle!", player, 255, 0, 0, true ) end else outputChatBox ( "* You Dont Have [#999999 3,000 #007fff]", player, 0, 127, 255, true ) end end end ) الحين if what == "nitro" then nitro الكلمه الي تنكتب في اف 8 Link to comment
Mr-Kartha Posted November 15, 2012 Author Share Posted November 15, 2012 لم يعمل سويت اختصار سميته nitro ما جا شي Link to comment
nony Posted November 15, 2012 Share Posted November 15, 2012 سوي الاختصار كذا bind 1 buy nitro غير بدال 1 الرقم الي تبيه يشتري نيترو Link to comment
Mr-Kartha Posted November 15, 2012 Author Share Posted November 15, 2012 (edited) سوي الاختصار كذاbind 1 buy nitro غير بدال 1 الرقم الي تبيه يشتري نيترو على كود عناد ؟ --------------------------------------------------------- مشكوووووور تم الافاده Edited November 15, 2012 by Guest 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