w7sH Posted June 19, 2016 Share Posted June 19, 2016 السلام عليكم ابي كود مثلاً اذا كتب فالشات دم يعطيه دم واذا كتب درع يعطيه درع ويذكر الحدث فالشات ويخصم منه سعر معين Link to comment
Ja[B]er[X]Pro Posted June 19, 2016 Share Posted June 19, 2016 (edited) addEventHandler("onPlayerChat",root,function(msg) if msg == "درع" and getPlayerMoney(source) >= 1000 then setPedArmor(source,100) takePlayerMoney(source,1000) outputChatBox("تم شراء درع",source,255,255,0) else end end) addEventHandler("onPlayerChat",root,function(msg) if msg == "دم" and getPlayerMoney(source) >= 1000 then setElementHealth(source,100) takePlayerMoney(source,1000) outputChatBox("تم شراء دم",source,255,255,0) end end) Edited June 19, 2016 by Guest Link to comment
فاّرس Posted June 19, 2016 Share Posted June 19, 2016 (edited) "onPlayerChat" getPlayerMoney takePlayerMoney outputChatBox Edited June 19, 2016 by Guest Link to comment
' A F . Posted June 19, 2016 Share Posted June 19, 2016 (edited) غير مجرب addEventHandler("onPlayerChat",root, function ( Message ) if ( Message == "دم" ) then if ( getPlayerMoney ( source ) >= 100 ) then takePlayerMoney ( source , 100 ) setElementHealth ( source , 100 ) outputChatBox(getPlayerName(source).." قام بشراء دم",root,255,255,255,true) end elseif ( Message == "درع" ) then if ( getPlayerMoney ( source ) >= 100 ) then takePlayerMoney ( source , 100 ) setPedArmor ( source , 100 ) outputChatBox(getPlayerName(source).." قام بشراء درع",root,255,255,255,true) end end end ) Edited June 19, 2016 by Guest Link to comment
Mostafa MohammeD Posted June 19, 2016 Share Posted June 19, 2016 غير مجرب addEventHandler("onPlayerChat",root, function ( Message ) if ( Message == "دم" ) then if ( getPlayerMoney ( client ) >= 100 ) then takePlayerMoney ( client , 100 ) setElementHealth ( client , 100 ) outputChatBox(getPlayerName(client).." قام بشراء دم",root,255,255,255,true) end elseif ( Message == "درع" ) then if ( getPlayerMoney ( client ) >= 100 ) then takePlayerMoney ( client , 100 ) setPedArmor ( client , 100 ) outputChatBox(getPlayerName(client).." قام بشراء درع",root,255,255,255,true) end end end ) مب هيك الكلام يلي في الشات بيظهر للسيرفر كله لانك واضع root Link to comment
فاّرس Posted June 19, 2016 Share Posted June 19, 2016 غير مجرب addEventHandler("onPlayerChat",root, function ( Message ) if ( Message == "دم" ) then if ( getPlayerMoney ( client ) >= 100 ) then takePlayerMoney ( client , 100 ) setElementHealth ( client , 100 ) outputChatBox(getPlayerName(client).." قام بشراء دم",root,255,255,255,true) end elseif ( Message == "درع" ) then if ( getPlayerMoney ( client ) >= 100 ) then takePlayerMoney ( client , 100 ) setPedArmor ( client , 100 ) outputChatBox(getPlayerName(client).." قام بشراء درع",root,255,255,255,true) end end end ) ^الكلينت غير معرف. Link to comment
Mr.CoR Posted June 20, 2016 Share Posted June 20, 2016 السلام عليكم تفضل شوف هالموضوع وتعلم كيف تحط عنوان مناسب https://forum.multitheftauto.com/viewtopic.php?f=160&t=100292 وشكرا 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