nony Posted July 24, 2012 Share Posted July 24, 2012 السلام عليكم ورحمه الله وبركاته يا شباب تكفون ابي كم كود للشوب 1-عرض فلوسي في الشات 2-تغيير الاسم من الشوب 3-وعرض السكور وتكون بفلوس مثلا بـــ5 ان شاء الله ماطولت عليكم ا Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 1- local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true) 2- takePlayerMoney(source,5) setPlayerName(source, "NewName") 3- local Name,Kill,Death = getPlayerName(source),getElementData(source,"Kills"),getElementData(source,"Deaths") outputChatBox(Name.." has Kills "..Kill.." and Deaths "..Death,root,255,255,255,true) Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 اخوي تابل انا سويت زي كذا صح ولا خطأ؟ Name,Money = getPlayerName(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 اخوي تابل انا سويت زي كذا صح ولا خطأ؟ Name,Money = getPlayerName(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true عندكـ أول سسطر وش دخخل إحظآر اسم اللاعب بـ المقاسات ؟ Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 اخوي تابل انا سويت زي كذا صح ولا خطأ؟ Name,Money = getPlayerName(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true عندكـ أول سسطر وش دخخل إحظآر اسم اللاعب بـ المقاسات ؟ ابدلها بذي guiCreateButton صح؟ Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 ججرب ذآ BTN = guiCreateButton(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true أول كلمة قبل علامة يسآوي هذآ الإخختصآر اللي رآحح تستخدمه بدآل السطر كآمل يعني لو قلنآ عند الضغط if source == الإختصآر حق الزر then -- الأكواد مثآل : if source == BTN then -- الأكواد Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 لازم تسوي ترقير لسيرفر عشان كل اللاعبين يشوفون الكلام بالشات -- Client Side -- if source == BTN then triggerServerEvent("ShowMoney",localPlayer) -- Server Side -- addEvent("ShowMoney",true) addEventHandler("ShowMoney",root,function() local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true) end) Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 (edited) ججرب ذآ BTN = guiCreateButton(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true أول كلمة قبل علامة يسآوي هذآ الإخختصآر اللي رآحح تستخدمه بدآل السطر كآمل يعني لو قلنآ عند الضغط if source == الإختصآر حق الزر then -- الأكواد مثآل : if source == BTN then -- الأكواد تسسلم يا معلم والله انك خطير ض1 + تسلم تابل الله يجزاكم الف خير تقبل الله صيامكم Edited July 24, 2012 by Guest Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 بس باقي مايشتغل الشوب سويت كذا كلينت BTN = guiCreateButton(20,80,90,30,"has money",false,tab4) local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true ----------------ربط الازرار---------------------- if source == BTN then triggerServerEvent("ShowMoney",localPlayer) end end سيرفر addEvent("ShowMoney",true) addEventHandler("ShowMoney",root,function() local Name,Money = getPlayerName(source),getPlayerMoney(source) outputChatBox(Name.." has money $"..Money,root,255,255,255,true) end) Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 BTN = guiCreateButton(20,80,90,30,"has money",false,tab4) ----------------ربط الازرار---------------------- addEventHandler("onClientGUIClick",root,function() if source == BTN then triggerServerEvent("ShowMoney",localPlayer) end end) Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 نآقصصكـ الإيفنت = الححدث يعني متى تصصير الوظيفة Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 كفو والله عرض الفلوس وتغيير الاسم شغاله %100 بس باقي عرض السكور عجزت مقدرت اسويه ان شاء الله ماطولت عليكم Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 أططرح كودكـ كلنت BTN2 = guiCreateButton(580,280,90,30,"Kills and Deaths",false,tab4) ---------------------ربط الازرار---------------- addEventHandler("onClientGUIClick",root,function() if source == BTN2 then triggerServerEvent("Kills and Deaths",localPlayer) end end) سيرفر addEvent("Show Kills and Deaths",true) addEventHandler("Show Kills and Deaths",root,function() local Name,Killer = getPlayerName(source),getPlayerKiller(source) outputChatBox(Name.." has Kills and Deaths "..Killer,root,255,255,255,true) end) Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 -- Client Side -- BTN2 = guiCreateButton(580,280,90,30,"Kills and Deaths",false,tab4) ---------------------ربط الازرار---------------- addEventHandler("onClientGUIClick",root,function() if source == BTN2 then triggerServerEvent("Show_Kills_and_Deaths",localPlayer) end end) -- Server Side -- addEvent("Show_Kills_and_Deaths",true) addEventHandler("Show_Kills_and_Deaths",root,function() local Name,Kill,Death = getPlayerName(source),getElementData(source,"Kills"),getElementData(source,"Deaths") outputChatBox(Name.." has Kills "..Kill.." and Deaths "..Death,root,255,255,255,true) end) Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 كلنت BTN2 = guiCreateButton(580,280,90,30,"Kills and Deaths",false,tab4) ---------------------ربط الازرار---------------- addEventHandler("onClientGUIClick",root,function() if source == BTN2 then triggerServerEvent("Kills and Deaths",localPlayer) end end) سيرفر addEvent("Show Kills and Deaths",true) addEventHandler("Show Kills and Deaths",root,function() local Name,Killer = getPlayerName(source),getPlayerKiller(source) outputChatBox(Name.." has Kills and Deaths "..Killer,root,255,255,255,true) end) لآزم يككوون مطابق كلنت و سيرفر + بدون مسافات trigger عندكـ خطأ بـ من وين جبته ؟ getPlayerKiller و ككود Link to comment
Tete omar Posted July 24, 2012 Share Posted July 24, 2012 أططرح كودكـ كلنت BTN2 = guiCreateButton(580,280,90,30,"Kills and Deaths",false,tab4) ---------------------ربط الازرار---------------- addEventHandler("onClientGUIClick",root,function() if source == BTN2 then triggerServerEvent("Kills and Deaths",localPlayer) end end) سيرفر addEvent("Show Kills and Deaths",true) addEventHandler("Show Kills and Deaths",root,function() local Name,Killer = getPlayerName(source),getPlayerKiller(source) outputChatBox(Name.." has Kills and Deaths "..Killer,root,255,255,255,true) end) getPlayerKiller(source) ??????? انت لخبطت كل الكود وما له معنى مررررة Link to comment
nony Posted July 24, 2012 Author Share Posted July 24, 2012 والله انا طبقت على الكودات الي قبل ومعليش على الخطأ 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