Bassam*Syria Posted July 12, 2014 Share Posted July 12, 2014 كيفكون شباب نشالله بخير اليوم جاييكم طلب و نشالله ما تخيبوني ^ المهم انا مسوي لوحة و كل شي و برمجها بس في شي ما عرفته المهم الي ما عرفته هو لما يضغط زر تجي رسالة طبعة الرسالة ل تيم معين مثال اتصل بالشرطة ^ لما يكبسه يجي لكل شرطي انذار ذا موضوعي نشالله تفيدوني ^ Link to comment
Syria963 Posted July 12, 2014 Share Posted July 12, 2014 يعني ابيه يوم اضغط على اتصال ب الشرطه يجي رساله لكل شرطي ب الشات وما يجي ل واحد برا تيم الشرطه Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 (edited) onClientGUIClick --- Event getTeamName outputChatBox Edited July 12, 2014 by Guest Link to comment
Syria963 Posted July 12, 2014 Share Posted July 12, 2014 حطه على بعضه ممكن تركبه على بعض؟ Link to comment
Syria963 Posted July 12, 2014 Share Posted July 12, 2014 كيف اخليهم مع بعض يعني يوم اضغط ما يجي رساله لازم اشبكهم يعني يصيرو كود واحد Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 اخوي انا عطيتك فنكشنات ماعطيتك كود كامل وبالمنتدى مساعده بس ماحد يعطيك كود كامل الا نادر اذا طرحت كودك ممكن اركب لك الفنكشنات Link to comment
Syria963 Posted July 12, 2014 Share Posted July 12, 2014 طيب ممكن سكايب عشان نتفاهم هنا ما اقدر اشرح لك يعني ما اقدر اوضح بكلمك مايك و افهمك Link to comment
^#Dream Posted July 12, 2014 Share Posted July 12, 2014 (edited) لم يتم التجربة # addEventHandler ("onClientGUIClick", getRootElement(), function () if source == اسم الزر then local police = getTeamFromName("Police") local players = getPlayersInTeam(police) for i,v in ipairs(players) do outputChatBox("الرسالة هنا",v,255,255,255,true) end end ) Edited July 12, 2014 by Guest Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 لم يتم التجربة # addEventHandler ("onClientGUIClick", getRootElement(), function () if source == اسم الزر then local police = getTeamFromName("Police") local players = getPlayersInTeam(police) for i,v in ipairs(players) do outputChatBox("الرسالة هنا",v,255,255,255,true) end end ) صح عليك Link to comment
shwaeki Posted July 12, 2014 Share Posted July 12, 2014 (edited) لازم تسوي ترايقر يا السيرفر هيك ما بنفع لم يتم التجربة # addEventHandler ("onClientGUIClick", getRootElement(), function () if source == اسم الزر then local police = getTeamFromName("Police") local players = getPlayersInTeam(police) for i,v in ipairs(players) do outputChatBox("الرسالة هنا",v,255,255,255,true) end end ) Edited July 12, 2014 by Guest Link to comment
فاّرس Posted July 12, 2014 Share Posted July 12, 2014 لم يتم التجربة # addEventHandler ("onClientGUIClick", getRootElement(), function () if source == اسم الزر then local police = getTeamFromName("Police") local players = getPlayersInTeam(police) for i,v in ipairs(players) do outputChatBox("الرسالة هنا",v,255,255,255,true) end end ) outputChatBox للوظيفه visibleTo الكلينت مافيه ارقومنت ناقص عندك اند Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 لم يتم التجربة # addEventHandler ("onClientGUIClick", getRootElement(), function () if source == اسم الزر then local police = getTeamFromName("Police") local players = getPlayersInTeam(police) for i,v in ipairs(players) do outputChatBox("الرسالة هنا",v,255,255,255,true) end end ) outputChatBox للوظيفه visibleTo الكلينت مافيه ارقومنت ناقص عندك اند طيب انا جربت كودهـ وضبط + الارقومنت v معك حق هذي ركبته وماضبط بس يوم ووخرتها ضبط الكود Link to comment
#DRAGON!FIRE Posted July 12, 2014 Share Posted July 12, 2014 Client Side ! addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == element ) then triggerServerEvent( "SendMsgToTeam", localPlayer, guiGetText( edit ) ) end end ) Server Side ! addEvent( "SendMsgToTeam", true ) addEventHandler( "SendMsgToTeam", root, function ( text ) if ( text and text ~= "" ) then local team = getTeamFromName( "Police" ) if ( team ) then for _,teamPlayers in ipairs( getPlayersInTeam( team ) ) do outputChatBox( "* Msg From Boss"..text, teamPlayers, 255, 0, 0, true ) end end end end ) Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 زاحف : طيب اذا انا مسويه كوماند يعني امر من اف 8 لما تتحمل المودات عند اللاعب يقدر يروح ملف اللعبه يشوف الامر الافضل اخليه الكونسل بس الي يقدر يسوي الامر كيف اخليه الكونسل بس الي يقدر يكتب الامر ؟ Link to comment
#DRAGON!FIRE Posted July 12, 2014 Share Posted July 12, 2014 addCommandHandler( "sendMsg", function( player,_,text ) if ( isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( player ) ),aclGetGroup( "Console" ) ) ) then if ( text and text ~= "" ) then local team = getTeamFromName( "Police" ) if ( team ) then for _,teamPlayers in ipairs( getPlayersInTeam( team ) ) do outputChatBox( "* Msg From Boss"..text, teamPlayers, 255, 0, 0, true ) end end end end end ) Link to comment
nxFairlywell Posted July 12, 2014 Share Posted July 12, 2014 كفو والله ^_^" Thank you for all thank's Link to comment
Max+ Posted July 12, 2014 Share Posted July 12, 2014 Client Side ! addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == element ) then triggerServerEvent( "SendMsgToTeam", localPlayer, guiGetText( edit ) ) end end ) Server Side ! addEvent( "SendMsgToTeam", true ) addEventHandler( "SendMsgToTeam", root, function ( text ) if ( text and text ~= "" ) then local team = getTeamFromName( "Police" ) if ( team ) then for _,teamPlayers in ipairs( getPlayersInTeam( team ) ) do outputChatBox( "* Msg From Boss"..text, teamPlayers, 255, 0, 0, true ) end end end end ) ليه تعقدها والاوامر كلها مشتركة ماله داعي التريقر . . بأمكانك تحوله كله كلينت هههههههههههههههههه زاحف ياحبي لك Link to comment
#DRAGON!FIRE Posted July 12, 2014 Share Posted July 12, 2014 visibleTo بـ جانب كلنت ما في ارقمنت 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