Jump to content

طلب تعديل


emad10

Recommended Posts

CreateTeam = createTeam ("bahrain",0,150,255) 
    function Team( thePlayer ) 
        setPlayerTeam ( thePlayer, CreateTeam ) 
    setElementPosition ( thePlayer, 1594.2534179688, -2104.5949707031, 17.81170463562 ) 
setPedSkin ( thePlayer, 2 ) 
    end 
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)   

ذا الكود صح ؟

انا ابغي اخلي انا اللاعب اول مايدش السيرفر يصير في ذا الفريق شلون؟

Link to comment
  • Other Languages Moderators
CreateTeam = createTeam("bahrain",0,150,255) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     spawnPlayer(source, 1594.2, -2104.6, 17.8, 0, 2, 0, 0, CreateTeam) 
     setCameraTarget(source) 
end)  

Link to comment

الحين بدل ما افتح موضوع جديد

ابغيه

يتحول من فريق بحرين الى فريق الشرطه

CreateTeam = createTeam("bahrain",0,150,255) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     spawnPlayer(source, 1594.2, -2104.6, 17.8, 0, 2, 0, 0, CreateTeam) 
     setCameraTarget(source) 
end) 

الى

CreateTeam = createTeam ("police",0,150,255) 
    function Team( thePlayer ) 
        setPlayerTeam ( thePlayer, CreateTeam ) 
    setElementPosition ( thePlayer, 1594.2534179688, -2104.5949707031, 17.81170463562 ) 
setPedSkin ( thePlayer, 25 ) 
giveWeapon ( thePlayer, 30, 250 ) 
giveWeapon ( thePlayer, 25, 100 ) 
giveWeapon ( thePlayer, 27, 100 ) 
    end 
addCommandHandler("spawn",Team) 

الى فريق الشرطه

انا اكتب الكوماند الا انا حاطنه لكن ما يتحول للفريق

يتحولskinبس ال

Link to comment
-- Server Side 
createTeam ( "police", 0, 150, 255 ) 
  
function Team ( thePlayer ) 
    setPlayerTeam ( thePlayer, getTeamFromName ( "police" ) ) 
    setElementPosition ( thePlayer, 1594.2534179688, -2104.5949707031, 17.81170463562 ) 
    setElementModel ( thePlayer, 25 ) 
    giveWeapon ( thePlayer, 30, 250 ) 
    giveWeapon ( thePlayer, 25, 100 ) 
    giveWeapon ( thePlayer, 27, 100 ) 
end 
addCommandHandler ( "spawn", Team ) 
  

Link to comment

<meta> 
    <info author="emad10" version="1.0" name="team" type="script" /> 
         <script src="28.lua" type="server" /> 
         <script src="29.lua" type="server" /> 
         <script src="30.lua" type="server" /> 
         <script src="31.lua" type="server" /> 
</meta> 

هو ملف 30

CreateTeam = createTeam("bahrain",0,150,255) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     spawnPlayer(source, 1673.4278564453, -849.73840332031, 59.143863677979, 180, 2, 0, 0, CreateTeam) 
     setCameraTarget(source)      
end) 

Link to comment

<meta> 
    <info author="emad10" version="1.0" name="team" type="script" /> 
         <script src="28.lua" type="server" /> 
         <script src="29.lua" type="server" /> 
         <script src="30.lua" type="server" /> 
         <script src="31.lua" type="server" /> 
</meta> 

هو ملف 29

CreateTeam = createTeam("bahrain",0,150,255) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     spawnPlayer(source, 1673.4278564453, -849.73840332031, 59.143863677979, 180, 2, 0, 0, CreateTeam) 
     setCameraTarget(source)      
end) 

Link to comment
  • Other Languages Moderators

عندي شغال يعني الكود مافيه مشكلة

أتوقع أنك مسوي التيم من الأدمنية

ذا الكود يحل المشكلة

createTeam("bahrain",0,150,255) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     spawnPlayer(source, 1673.4278564453, -849.73840332031, 59.143863677979, 180, 2, 0, 0, getTeamFromName("bahrain")) 
     setCameraTarget(source)      
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...