emad10 Posted October 18, 2012 Share Posted October 18, 2012 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
TAPL Posted October 18, 2012 Share Posted October 18, 2012 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
emad10 Posted October 18, 2012 Author Share Posted October 18, 2012 الحين بدل ما افتح موضوع جديد ابغيه يتحول من فريق بحرين الى فريق الشرطه 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
3NAD Posted October 18, 2012 Share Posted October 18, 2012 -- 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
emad10 Posted October 19, 2012 Author Share Posted October 19, 2012 تابل الكود ما يشتغل انا ابغي ان اول مايدش اللاعب يصير في هذا الفريق لكن يطلع لي Team:none Link to comment
TAPL Posted October 19, 2012 Share Posted October 19, 2012 شغال عندي تأكد أنك حاطه سيرفر مو كلينت Link to comment
emad10 Posted October 19, 2012 Author Share Posted October 19, 2012 <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
emad10 Posted October 19, 2012 Author Share Posted October 19, 2012 <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
TAPL Posted October 19, 2012 Share Posted October 19, 2012 عندي شغال يعني الكود مافيه مشكلة أتوقع أنك مسوي التيم من الأدمنية ذا الكود يحل المشكلة 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
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