BLACKHACK Posted July 1, 2012 Share Posted July 1, 2012 كيف أضع للاعبين أسلحة معينة عند دخول السرفر ؟ Link to comment
X-SHADOW Posted July 1, 2012 Share Posted July 1, 2012 addEventHandler('onPlayerJoin', root, --- اذا دخل الاعب function() -- وظيفة giveWeapon( source, 31, 200 ) --- اعطاء رشاش 31 رقم السلاح و 200 عدد الطلقات outputChatBox('You Have Got The Dam M4 !',source,255,255,0) ---- رساله اذا اخذ السلاح end--- اغلاق )--- اغلاق القوس الاول Link to comment
TAPL Posted July 1, 2012 Share Posted July 1, 2012 -- Server Side -- addEventHandler("onPlayerSpawn", root, function() giveWeapon(source,31,1000) end) Link to comment
KaBoS Posted July 1, 2012 Share Posted July 1, 2012 addEventHandler('onPlayerJoin', root, --- اذا دخل الاعب function() -- وظيفة giveWeapon( source, 31, 200 ) --- اعطاء رشاش 31 رقم السلاح و 200 عدد الطلقات outputChatBox('You Have Got The Dam M4 !',source,255,255,0) ---- رساله اذا اخذ السلاح end--- اغلاق )--- اغلاق القوس الاول addEventHandler("onPlayerSpawn", root, function() giveWeapon(source,31,1000) end) Link to comment
TAPL Posted July 1, 2012 Share Posted July 1, 2012 addEventHandler('onPlayerJoin', root, --- اذا دخل الاعب function() -- وظيفة giveWeapon( source, 31, 200 ) --- اعطاء رشاش 31 رقم السلاح و 200 عدد الطلقات outputChatBox('You Have Got The Dam M4 !',source,255,255,0) ---- رساله اذا اخذ السلاح end--- اغلاق )--- اغلاق القوس الاول addEventHandler("onPlayerSpawn", root, function() giveWeapon(source,31,1000) end) Link to comment
BLACKHACK Posted July 3, 2012 Author Share Posted July 3, 2012 طيب شكرا ,, بس وين اضعها الكود في سكريبت جديد ولا في الجيم مود ؟؟ Link to comment
abu5lf Posted July 3, 2012 Share Posted July 3, 2012 طيب شكرا ,,بس وين اضعها الكود في سكريبت جديد ولا في الجيم مود ؟؟ الاسهل لحال وحطها في جانب server Link to comment
TAPL Posted July 3, 2012 Share Posted July 3, 2012 بما أنك تبيه لـ مود بلاي broph.lua أفتح مود بلاي الملف و أبحث عن هذا function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end وضيف هذا الكود giveWeapon(player,31,1000) النتيجة function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) giveWeapon(player,31,1000) end 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