Basel_1999 Posted September 28, 2015 Share Posted September 28, 2015 السلام عليكم ورحمة الله وبركاته , عندي طلب مساعدة بكود برمجي ابي الكود حق الي يرسل شي لشاشة جميع الاعبين مثلا اذا لاعب خرج ارطبه بالكود هاذايصير اذا لعاب خرج يطلع بوجه الاعبين انو الاعب خرج او اذا موداشتغل يطلع على شاشة الاعبين المود اشتغل هاذا هو طلبي اذا احد معه الكود ويقدر يفيدني .. اتمنى ما تقصرو معي Link to comment
#Wizard Posted September 28, 2015 Share Posted September 28, 2015 addEventHandler بكل بساطة Link to comment
Me[Z]oO Posted October 20, 2015 Share Posted October 20, 2015 addEventHandler onClientPlayerQuit Link to comment
SycroX Posted October 20, 2015 Share Posted October 20, 2015 addEventHandler onPlayerJoin onPlayerQuit outputChatBox سهل :- مثال function greetPlayer ( ) local joinedPlayerName = getPlayerName ( source ) outputChatBox ( "Has Join The Server " .. joinedPlayerName .. " " , root, 255, 0, 255 ) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) Link to comment
a7zan Posted October 21, 2015 Share Posted October 21, 2015 addEventHandler onPlayerJoin onPlayerQuit outputChatBox سهل :- مثال function greetPlayer ( ) local joinedPlayerName = getPlayerName ( source ) outputChatBox ( "Has Join The Server " .. joinedPlayerName .. " " , root, 255, 0, 255 ) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) ؟ outputChatBox هو تكلم عن هو قال يطلع بشاشة الاعبين مو بشات ! Link to comment
ايهاب Posted October 22, 2015 Share Posted October 22, 2015 تقصد بشاشة اللاعبين يعنى يظهر فى الشات...ولا تقصد كتابة على الشاشة اصل مو معقول يظهر فى الشاشة واللاعب بيلعب يظهرلة كل شوية انة لاعب خرج وهو م وش دخلة كدة يبقى ازعاج function quitPlayer ( quitType ) -- send the message to the server telling players that the player has left. outputChatBox ( getPlayerName(source).. " has left the server (" .. quitType .. ")" ) end addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer ) Link to comment
SycroX Posted October 22, 2015 Share Posted October 22, 2015 تقصد بشاشة اللاعبين يعنى يظهر فى الشات...ولا تقصد كتابة على الشاشة اصل مو معقول يظهر فى الشاشة واللاعب بيلعب يظهرلة كل شوية انة لاعب خرج وهو م وش دخلة كدة يبقى ازعاج function quitPlayer ( quitType ) -- send the message to the server telling players that the player has left. outputChatBox ( getPlayerName(source).. " has left the server (" .. quitType .. ")" ) end addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer ) تزويد مشاركات و خلاص ؟ انا مقدم كود مثال + هو ما يبي ouputChatBox هو يبي يظهر فشاشة اللاعبين مو بل شات يعني يستخدك dxDrawText Link to comment
' A F . Posted October 22, 2015 Share Posted October 22, 2015 أحسن يستخدم الـ Label أسهل Link to comment
Rockyz Posted October 22, 2015 Share Posted October 22, 2015 (edited) "onPlayerJoin" "onPlayerQuit" triggerClientEvent guiCreateLabel guiSetVisible guiSetText او "onClientPlayerJoin" "onClientPlayerQuit" triggerServerEvent triggerClientEvent guiCreateLabel guiSetVisible guiSetText Edited October 22, 2015 by Guest 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