αвυ-wαleed Posted February 15, 2014 Share Posted February 15, 2014 الكلام يطلع في الماركر 1 ابغى في الماركرين اتمنى التعديل local marker1 = createMarker ( 2759.8745117188,-2015.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); local marker2 = createMarker ( 2759.8745117188,-2022.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); addEventHandler ( "onMarkerLeave", marker1, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( bind[ player ] ) then exports['topbarchat']:sendClientMessage ( " H أذا أردت شراء العصير اضغط ", player, 255, 0, 255, true ) exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) bind[ player ] = nil else bind[ player ] = nil end end end ) Link to comment
#Rmad~> Posted February 15, 2014 Share Posted February 15, 2014 local marker1 = createMarker ( 2759.8745117188,-2015.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); local marker2 = createMarker ( 2759.8745117188,-2022.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); addEventHandler ( "onMarkerLeave", marker1,marker2, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( bind[ player ] ) then exports['topbarchat']:sendClientMessage ( " H أذا أردت شراء العصير اضغط ", player, 255, 0, 255, true ) exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) bind[ player ] = nil else bind[ player ] = nil end end end) Link to comment
فاّرس Posted February 15, 2014 Share Posted February 15, 2014 -- Server Side # local marker1 = createMarker ( 2759.8745117188,-2015.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); local marker2 = createMarker ( 2759.8745117188,-2022.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); addEventHandler ( 'onMarkerLeave', root, function ( player ) if source == marker1 or source == marker2 then if ( getElementType ( player ) == "player" ) then exports['topbarchat']:sendClientMessage ( " H أذا أردت شراء العصير اضغط ", player, 255, 0, 255, true ) exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) end end end ) Link to comment
αвυ-wαleed Posted February 15, 2014 Author Share Posted February 15, 2014 مشكوووور ذا بست + أبو زهرة شغال %100 Link to comment
shwaeki Posted February 16, 2014 Share Posted February 16, 2014 طيب بس كيف بدو يطلع الكلام هاد exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) و يلي فوقي و هم بس كلنت و مودك سيرفر Link to comment
αвυ-wαleed Posted February 16, 2014 Author Share Posted February 16, 2014 عادي يطلع اذا كان قصدك سيرفر ويطلع للاعب نفسة بس فكمان تجي على حسب الكود الي فوقة مثلن اشترى سلاح وحطيت بعده كلام ونفس the player حق الوظيفة اكيد بيطلع له هو لان هو الي شرى مو كل السيرفر Link to comment
فاّرس Posted February 16, 2014 Share Posted February 16, 2014 Function syntax (server): bool sendClientMessage ( string message, player thePlayer [, int r=0, int g=0, int b=0, bool topBar=true, int time=8] ) Link to comment
shwaeki Posted February 16, 2014 Share Posted February 16, 2014 ذا بيست يعني هاد يطلع سيرفر و كلنت Link to comment
al-Kobra Posted February 16, 2014 Share Posted February 16, 2014 (edited) ** Edited February 16, 2014 by Guest Link to comment
فاّرس Posted February 16, 2014 Share Posted February 16, 2014 (edited) Function syntax (server): bool sendClientMessage ( string message, player thePlayer [, int r=0, int g=0, int b=0, bool topBar=true, int time=8] ) Function syntax (client): bool sendClientMessage ( string message [, int r=0, int g=0, int b=0, bool topBar=true, int time=8] ) https://community.multitheftauto.com/in ... ls&id=7668 Edited February 16, 2014 by Guest Link to comment
al-Kobra Posted February 16, 2014 Share Posted February 16, 2014 لوول , ثانكس على المعلومة Link to comment
shwaeki Posted February 16, 2014 Share Posted February 16, 2014 يب شكرا و انا كنت زي الموبرا افكر بس كلنت 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