Jump to content

كيف أضع للاعبين أسلحة معينة عند دخول السرفر ؟


Recommended Posts

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
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
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) 
  
  
  
  

Double-facepalm.jpg

Link to comment

بما أنك تبيه لـ مود بلاي

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...