Jump to content

طلب كود صغير


#Dr.BnG

Recommended Posts

السلام عليكم ورحمة الله وبركاته

معي كود ولما اسوي شي يطلع بالشات

ابي لما اسوي الشي

يطلع بالشات اسم الاعب الي سوا

function createCode(code,prize)
	for k,v in ipairs( getElementsByType("player") ) do
		exports.easytext:displayMessageForPlayer(v,1, "=========", wordTime, 0.17, 0.5, 0, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,2, "Word : "..code.."", wordTime, 0.17, 0.533, 255, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,3, "Prize : "..prize.."$", wordTime, 0.17, 0.563, 255, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,4, "=========", wordTime, 0.17, 0.593, 0, 255, 0, 255, 1.6)
	end
outputChatBox("- Random Words :  #FFFF00Enter the word shown below to win the prize.",root,0,255,0,true)
outputChatBox("=========",root,0,255,0,true)
outputChatBox("Word : "..code.."",root,255,255,0,true)
outputChatBox("Prize : "..prize.."$",root,255,255,0,true)
outputChatBox("=========",root,0,255,0,true)
outputChatBox("- #FFFF00You can see the word down on your screen.",root,0,255,0,true)
--
startCodeTimer()
wordOn = true
end

يعني مكان الكود ذا

 

  1. outputChatBox("- Random Words : #FFFF00Enter the word shown below to win the prize.",root,0,255,0,true)

يكون يطلع اسم الي ارسل الكلمة

وشكرا لككككمء

 

Edited by #Dr.BnG
Link to comment
Just now, #Dr.BnG said:

السلام عليكم ورحمة الله وبركاته

معي كود ولما اسوي شي يطلع بالشات

ابي لما اسوي الشي

يطلع بالشات اسم الاعب الي سوا


function createCode(code,prize)	for k,v in ipairs( getElementsByType("player") ) do		exports.easytext:displayMessageForPlayer(v,1, "=========", wordTime, 0.17, 0.5, 0, 255, 0, 255, 1.6)		exports.easytext:displayMessageForPlayer(v,2, "Word : "..code.."", wordTime, 0.17, 0.533, 255, 255, 0, 255, 1.6)		exports.easytext:displayMessageForPlayer(v,3, "Prize : "..prize.."$", wordTime, 0.17, 0.563, 255, 255, 0, 255, 1.6)		exports.easytext:displayMessageForPlayer(v,4, "=========", wordTime, 0.17, 0.593, 0, 255, 0, 255, 1.6)	endoutputChatBox("- Random Words :  #FFFF00Enter the word shown below to win the prize.",root,0,255,0,true)outputChatBox("=========",root,0,255,0,true)outputChatBox("Word : "..code.."",root,255,255,0,true)outputChatBox("Prize : "..prize.."$",root,255,255,0,true)outputChatBox("=========",root,0,255,0,true)outputChatBox("- #FFFF00You can see the word down on your screen.",root,0,255,0,true)
--
startCodeTimer()
wordOn = true
end

وشكرا لكم

جيب اسمه ب وظيفة الاسم
getPlayerName(source) -- هنا السورس اذا سيرفر خله سورس واذا كلنت بدله لوكل بلير


---- لو معرف عند بلير او شيء ضيفه بدل السورس 

 

Link to comment

سويته كذا وما ظبط وش المشكلة؟؟

function createCode(code,prize,thePlayer)
local name = getPlayerName (thePlayer)
	for k,v in ipairs( getElementsByType("player") ) do
		exports.easytext:displayMessageForPlayer(v,1, "=========", wordTime, 0.17, 0.5, 0, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,2, "Word : "..code.."", wordTime, 0.17, 0.533, 255, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,3, "Prize : "..prize.."$", wordTime, 0.17, 0.563, 255, 255, 0, 255, 1.6)
		exports.easytext:displayMessageForPlayer(v,4, "=========", wordTime, 0.17, 0.593, 0, 255, 0, 255, 1.6)
	end
outputChatBox ( "بارسال كلمة[ "..getPlayerName(source).." ] قام الاعب",root,0,255,0,true)

local name = getPlayerName (thePlayer)

ضفت هادي بعد الفنكشن

 

 

------------

 

 

و وضعت ذي بلرسالة الي تطلع بالشات

outputChatBox ( "بارسال كلمة[ "..getPlayerName(source).." ] قام الاعب",root,0,255,0,true)

وما ظبطت وش الحل

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...