jaberxpro Posted September 23, 2015 Share Posted September 23, 2015 تم صنعت مود اول مود اصنعه لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه Server.lua function jaber() ourputChatBox ("حياكم الله في سيرفر GTA-AF") ourputChatBox ("منورين السيرفر") end addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) meta.xml <meta> <script src="Server.lua" type="server" /> </meta> في مشكلة او لا؟ Link to comment
#CroSs Posted September 23, 2015 Share Posted September 23, 2015 تم صنعت موداول مود اصنعه لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه Server.lua function jaber() ourputChatBox ("حياكم الله في سيرفر GTA-AF") ourputChatBox ("منورين السيرفر") end addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) meta.xml <meta> <script src="Server.lua" type="server" /> </meta> اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل : يصير كذا function jaber() outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) outputChatBox( "منورين السيرفر", source ) end addEventHandler( "onPlayerJoin", getRootElement(), jaber ) Link to comment
jaberxpro Posted September 23, 2015 Author Share Posted September 23, 2015 تم صنعت موداول مود اصنعه لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه Server.lua function jaber() ourputChatBox ("حياكم الله في سيرفر GTA-AF") ourputChatBox ("منورين السيرفر") end addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) meta.xml <meta> <script src="Server.lua" type="server" /> </meta> اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل : يصير كذا function jaber() outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) outputChatBox( "منورين السيرفر", source ) end addEventHandler( "onPlayerJoin", getRootElement(), jaber ) شكراً لك تم التعديل+تعلم شيئ اخر Link to comment
#CroSs Posted September 23, 2015 Share Posted September 23, 2015 تم صنعت موداول مود اصنعه لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه Server.lua function jaber() ourputChatBox ("حياكم الله في سيرفر GTA-AF") ourputChatBox ("منورين السيرفر") end addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) meta.xml <meta> <script src="Server.lua" type="server" /> </meta> اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل : يصير كذا function jaber() outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) outputChatBox( "منورين السيرفر", source ) end addEventHandler( "onPlayerJoin", getRootElement(), jaber ) شكراً لك تم التعديل+تعلم شيئ اخر You Are Welcome . Link to comment
jaberxpro Posted September 23, 2015 Author Share Posted September 23, 2015 ممكن سؤال اخير+اسف على الازعاج function jaber(thePlayer) givePlayerMoney ( thePlayer, 1000000,source ) end addCommandHandler ( "Give", jaber ) هل هذا الكود صحيح؟ Link to comment
iMr.SFA7 Posted September 23, 2015 Share Posted September 23, 2015 source? عندك أرقمنت زايد Link to comment
jaberxpro Posted September 23, 2015 Author Share Posted September 23, 2015 اي كود الصحيح هذا function jaber(thePlayer) givePlayerMoney ( thePlayer, 1000000,source ) end addCommandHandler ( "Give", jaber ) أو function jaber(thePlayer) givePlayerMoney ( thePlayer, 1000000 ) end addCommandHandler ( "Give", jaber ) شكراً لك سفاح بفضلك تعملت البرمجة Link to comment
iMr.SFA7 Posted September 23, 2015 Share Posted September 23, 2015 function jaber(thePlayer) givePlayerMoney ( thePlayer, 1000000 ) end addCommandHandler ( "Give", jaber ) هذا ~ حيآكـ ذذ أنت لو تدخل الويكي راح تلاحظ أرقمنتات الوظيفة وكم عندها أرقمنت وظيفة أعطاء الفلوس أرقمنتين bool givePlayerMoney ( player thePlayer, int amount ) player thePlayer = اللاعب الي راح تعطيه int amount = الفلوس الي راح تعطيه ذذ Link to comment
jaberxpro Posted September 23, 2015 Author Share Posted September 23, 2015 function jaber(thePlayer) givePlayerMoney ( thePlayer, 1000000 ) end addCommandHandler ( "Give", jaber ) هذا ~ حيآكـ ذذ أنت لو تدخل الويكي راح تلاحظ أرقمنتات الوظيفة وكم عندها أرقمنت وظيفة أعطاء الفلوس أرقمنتين bool givePlayerMoney ( player thePlayer, int amount ) player thePlayer = اللاعب الي راح تعطيه int amount = الفلوس الي راح تعطيه ذذ شكراً لك على الشرح 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