ABO.SR7777A Posted August 25, 2012 Posted August 25, 2012 ابي كود jetpack وكود المخفي لاهنتم ضروري وكود التجميد
TAPL Posted August 25, 2012 Posted August 25, 2012 givePedJetPack removePedJetPack doesPedHaveJetPack setElementAlpha setElementFrozen
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 addEvent(JetPack',true) addEventHandler(JetPack', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementHealth(source,100) outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) else --- dont use elseif this is good way .. outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end ) تقصد كذا ولالا ولو خطأ ساعندي
TAPL Posted August 25, 2012 Posted August 25, 2012 الكود الي أنت حاطه ذا للدم و مافيه أي مشكلة وياليت تقرأ ذا الموضوع https://forum.multitheftauto.com/viewtopic.php?f=119&t=46670
TAPL Posted August 25, 2012 Posted August 25, 2012 يعني لو ركبت الكود هذا يشتغل أقين الكود الي أنت حاطه ذا للدمو مافيه أي مشكلة وياليت تقرأ ذا الموضوع https://forum.multitheftauto.com/viewtopic.php?f=119&t=46670
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 addEvent(JetPack',true) addEventHandler(JetPack', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementHealth(source,100) outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) else --- dont use elseif this is good way .. outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end ) تراني اعرف بس مابي اسوي ههههههههههههههههههههههههههههه
Tete omar Posted August 25, 2012 Posted August 25, 2012 addEvent(JetPack',true) addEventHandler(JetPack', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementHealth(source,100) outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) else --- dont use elseif this is good way .. outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end ) تراني اعرف بس مابي اسوي ههههههههههههههههههههههههههههه addEvent('JetPack',true) addEventHandler('JetPack', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementHealth(source,100) outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000$2500#000000]#00ff00 !",source,0,255,0,true) else outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end )
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 هاذا الكود طيب لو مثلا ابي انا اتلعم كيف مثلا باخليه حق النفاثه كيف
Tete omar Posted August 25, 2012 Posted August 25, 2012 هاذا الكود طيب لو مثلا ابي انا اتلعم كيف مثلا باخليه حق النفاثه كيف What ?
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 باطرحلك كود وقلي صح ولا خطأ ولو خطأ حاول تساعدني فيه
Tete omar Posted August 25, 2012 Posted August 25, 2012 باطرحلك كود وقلي صح ولا خطأ ولو خطأ حاول تساعدني فيه اطرح
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 addEvent('Laser',true) addEventHandler('Laser', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementLaser(source,100) outputChatBox("* #0099ccSuccessfully bought Laser #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) else --- dont use elseif this is good way .. outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end ) شفلي الصح والخطأ
Tete omar Posted August 25, 2012 Posted August 25, 2012 (edited) addEvent('Laser',true) addEventHandler('Laser', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementLaser(source,100) outputChatBox("* #0099ccSuccessfully bought Laser #000000[ #ff0000-$2500 #000000]#00ff00 !",source,0,255,0,true) else --- dont use elseif this is good way .. outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end ) شفلي الصح والخطأ setElementLaser Edited August 25, 2012 by Guest
ABO.SR7777A Posted August 25, 2012 Author Posted August 25, 2012 ههههههههههههههههههههههههههههه مادري اانا حطيته صح ولالا
Tete omar Posted August 25, 2012 Posted August 25, 2012 ههههههههههههههههههههههههههههه مادري اانا حطيته صح ولالا بس مدري , استنى الردود
|Mr|-Talal07-| Posted August 25, 2012 Posted August 25, 2012 انت تبي كود الاختفاء ذا هو function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv)
|Mr|-Talal07-| Posted August 25, 2012 Posted August 25, 2012 Jetpack اما الــ انا ما اعرف انا ابيه مثلك انا عارف الاوامر بس ابي الطريقة
Tete omar Posted August 25, 2012 Posted August 25, 2012 انت تبي كود الاختفاءذا هو function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv) لا هو يبي كود الليزر الي يطلع من السلاح
|Mr|-Talal07-| Posted August 25, 2012 Posted August 25, 2012 ابي كودjetpack وكود المخفي لاهنتم ضروري وكود التجميد الحين انا احول هو قال ابي كود المخفي انا هذا الي انا اقدر عليه و في البداية ما قال ليزر قال في النص الموضوع
|Mr|-Talal07-| Posted August 26, 2012 Posted August 26, 2012 بس ملف سيرفر كود المخفي function buyinv() if ( source == b ) then triggerServerEvent("inv",getLocalPlayer()) end end addEventHandler("onClientGUIClick",getRootElement(),buyinv) b = اسم الزر ذا الكلينت
|Mr|-Talal07-| Posted August 28, 2012 Posted August 28, 2012 ركز معي الحين الشوب لازم له ملفين ملف سيرفر ملف كلينت ملف الكلينت يكون فيه التصميم و ربط الازرار هذا كود الكلينت الي ربطنا به الزر function buyinv() if ( source == b ) then triggerServerEvent("inv",getLocalPlayer()) end end addEventHandler("onClientGUIClick",getRootElement(),buyinv) b الــ هو اسم الزر الي اذا ضغطه يحدث الي في ملف السيرفر شوف بــ triggerServerEvent("inv",getLocalPlayer()) ارسلنه الى السيرفر هذا الكود تحطه في ملف السيرفر function inv() local money = getPlayerMoney(source) if ( money >= 3000 ) then takePlayerMoney(source,3000) setElementAlpha(source,0) setTimer(setElementAlpha,60000,1,source,255) else outputChatBox("You Don't Have Enough Money") end end addEvent("inv",true) addEventHandler("inv",getRootElement(),inv) اذا ما فهمتم حاول انك تفهم او راجع الويكي في الاوامر الي ما فهمتها
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