Fox501 Posted August 27, 2012 Posted August 27, 2012 السلام عليكم ورحمة الله وبركاته شباب .. ابي كود يغير الجنط الي هو (wheel) يضغط زر يغير الجنط بفلوس و يغير على الايدي ..
./BlackBird# Posted August 27, 2012 Posted August 27, 2012 (edited) السلام عليكم ورحمة الله وبركاتهشباب .. ابي كود يغير الجنط الي هو (wheel) يضغط زر يغير الجنط بفلوس و يغير على الايدي .. addVehicleUpgrade takePlayerMoney + wheels هذاي مجموعة http://www.mediafire.com/?owadhhu73v01vwq Edited August 27, 2012 by Guest
==>ҭᾄlᾄl Posted August 27, 2012 Posted August 27, 2012 client: addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then ---GUIEditor_Button[1] اسم الزر triggerServerEvent("1",getLocalPlayer()) --الايفينت 1 يتغير مع كل زر end end ) server: addEvent("1", true)--1 رقم اليفينت الي في الكلنت addEventHandler("1", getRootElement(),--1 رقم الايفينت الي في الكلنت function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 1000) then--التاكد من ان معه 1000 takePlayerMoney(source, 1000)--سحب منه 1000 addVehicleUpgrade(getPedOccupiedVehicle(source),1074)--1074 رقم الجنط outputChatBox("~| تـم تركيب آلجنـط بنجـآح |~", source, 255, 255, 0, true)-اذا تمت العمليه يظهر نص في الشات else outputChatBox("Not enough money.", source, 255, 0, 0, true)-- اذا ما معه فوس يظهر نص في الشات end else outputChatBox("~| خطأ : يجب ان تكون رآكب سيارة |~", source, 255, 0, 0, true)--اذا لم يكن في السيارة يظهر نص في الشات end end )
Fox501 Posted August 28, 2012 Author Posted August 28, 2012 اخوي الكود الي عطيتني اياه يحفظ الجنط ؟؟ ولا اذا طلع واحد و دخل يتختار اذا مايحفظ ابيه يحفظ
Fox501 Posted August 28, 2012 Author Posted August 28, 2012 addEvent("1", true)--1 رقم اليفينت الي في الكلنت addEventHandler("1", getRootElement(),--1 رقم الايفينت الي في الكلنت function() account = getPlayerAccount(thePlayer) if (account) and not ( isGuestAccount(account)) then setAccountData(account,"theWheel") end if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 1000) then--التاكد من ان معه 1000 takePlayerMoney(source, 1000)--سحب منه 1000 addVehicleUpgrade(getPedOccupiedVehicle(source),1074)--1074 رقم الجنط outputChatBox("~| تـم تركيب آلجنـط بنجـآح |~", source, 255, 255, 0, true)-اذا تمت العمليه يظهر نص في الشات else outputChatBox("Not enough money.", source, 255, 0, 0, true)-- اذا ما معه فوس يظهر نص في الشات end else outputChatBox("~| خطأ : يجب ان تكون رآكب سيارة |~", source, 255, 0, 0, true)--اذا لم يكن في السيارة يظهر نص في الشات end end ) بهذا الككود الي حطيته يسير يحفظ ؟؟
GAME_OVER!! Posted August 28, 2012 Posted August 28, 2012 ما اتوقع ينحفظ الا اذاستخدام كود الحفظ ههههههههههه تنكت انت يعني الحين هو وش يبي ؟
POWR Posted August 28, 2012 Posted August 28, 2012 اسف اخوي على التأخير تفضل كود الحفظ https://wiki.multitheftauto.com/wiki/getAccountData
TAPL Posted August 28, 2012 Posted August 28, 2012 addEvent("1", true) addEventHandler("1", root, function() if isPedInVehicle(source) then if (getPlayerMoney (source) >= 1000) then takePlayerMoney(source, 1000) addVehicleUpgrade(getPedOccupiedVehicle(source),1074) outputChatBox("~| تـم تركيب آلجنـط بنجـآح |~", source, 255, 255, 0, true) account = getPlayerAccount(source) if (account) and not (isGuestAccount(account)) then setAccountData(account,"theWheel",1074) end else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("~| خطأ : يجب ان تكون رآكب سيارة |~", source, 255, 0, 0, true) end end) addEventHandler("onPlayerVehicleEnter", root, function(veh,seat) account = getPlayerAccount(source) if seat == 0 and (account) and not (isGuestAccount(account)) then addVehicleUpgrade(veh,getAccountData(account,"theWheel")) end end)
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