POWR Posted August 13, 2012 Share Posted August 13, 2012 سلام علكيم كيفكم عندي مشكله وهي ابي احط اسم التيم حق لاعب لما يتشري كود server addEvent("Minigun",true) addEventHandler("Minigun",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 4000) then takePlayerMoney(source,4000) giveWeapon ( source , 38,999 ) setPedWeaponSlot(source, getSlotFromWeapon(38)) local name = getPlayerName(source) outputChatBox ( "" .. name .. " #ffff00 Has Bought #00ffff[Minigun]", getRootElement(), 255, 0, 0, true ) else outputChatBox("#00cc00 You don't have #ff0000 $4000 #00cc00 to buy #ffff00[Minigun]", source, 255, 0, 0, true) end end ) ابيه يجي مثل كذا outputChatBox ( "" .. name .. " اهنآ اسم التيم #ffff00 Has Bought #00ffff[Minigun]", getRootElement(), 255, 0, 0, true ) Link to comment
./BlackBird# Posted August 13, 2012 Share Posted August 13, 2012 (edited) https://wiki.multitheftauto.com/wiki/GetTeamName outputChatBox ( getPlayerName .. " الكلام هنا " .. getTeamName ( playerTeam ) ) بس اتوقع فيه اخطأ لاني توني مبتدأ Edited August 13, 2012 by Guest Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 جرب هذا outputChatBox ( "" .. name .. "" .. getTeamName .. " #ffff00 Has Bought #00ffff[Minigun]", getRootElement(), 255, 0, 0, true ) او outputChatBox ( "" .. name .. "" .. Team .. " #ffff00 Has Bought #00ffff[Minigun]", getRootElement(), 255, 0, 0, true ) Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 تفضل جرب هذا local playerTeam = getPlayerTeam( source ) if ( playerTeam ) then outputChatBox ( "#ffffff" .. name .. "#ffff00 Has Bought #00ffff[Minigun] - team name=" .. getTeamName ( playerTeam ), getRootElement(), 255, 0, 0, true ) Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 local playerTeam = getTeamName(getPlayerTeam(source)) or "N/A" outputChatBox(name.. " | "..playerTeam.." #ffff00Has Bought #00ffff[Minigun]", root, 255, 0, 0, true) Link to comment
POWR Posted August 13, 2012 Author Share Posted August 13, 2012 شكرآ اخوي تابل الله يعطيك العافيه تقبل الله منك صلاتك وصيامك يا رب Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 اممممم انا كودي خطأ ؟ Link to comment
POWR Posted August 13, 2012 Author Share Posted August 13, 2012 بس يا تابل ممكن ابي لون التيم يجي نفسه ما ابيه يتلون مع النك Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 اممممم انا كودي خطأ ؟ لا صح بس خطأ < > Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 بس يا تابل ممكن ابي لون التيم يجي نفسه ما ابيه يتلون مع النك https://wiki.multitheftauto.com/wiki/GetTeamColor + أستخدم ذا لتحويله من أرقام إلى كود https://wiki.multitheftauto.com/wiki/RGBToHex 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