][sojn][ Posted March 7, 2013 Share Posted March 7, 2013 السلام عليكم شباب ابي كود لو اظغط على زر يحركني لتيم معين وكود يمنع مود زي الاف 1 فري روم عن تيم معين Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 "onClientGUIClick" triggerServerEvent createTeam setPlayerTeam سوية بـ التيم if getPlayerTeam... Link to comment
jafar Posted March 7, 2013 Share Posted March 7, 2013 "onClientGUIClick" triggerServerEvent setPlayerTeam Link to comment
===|OSAMA|=== Posted March 7, 2013 Share Posted March 7, 2013 ابي كود لو اظغط على زر يحركني لتيم معين الطلب الأول ^ -- Client Side ! addEventHandler ( "onClientGUIClick", اسم الزر, function ( ) triggerServerEvent ( "setTeam", localPlayer ) end ) -- Server Side ! addEvent ( "setTeam", true ) addEventHandler ( "setTeam", root, function ( ) setPlayerTeam ( source, getTeamFromName ( "اسم التيم" ) ) end ) وكود يمنع مود زي الاف 1 فري روم عن تيم معين الطلب الثآني ^ https://forum.multitheftauto.com/viewtopic.php?f=160&t=55016&p=532012#p532012 Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 مشكور برستيج اسامه وجافار Link to comment
кιηg-αвα∂у Posted March 7, 2013 Share Posted March 7, 2013 مشكور برستيج اسامه وجافار جعفر -__- Link to comment
===|OSAMA|=== Posted March 7, 2013 Share Posted March 7, 2013 مشكور برستيج اسامه ^ تصحيح : برستيج واسامة ذذ + العفو -_-" Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 نسيت شيء ابي كود ما يخلي واحد يقتل واحد من نفس تيمه زي البيسمود Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 ما عرفت ادمجه مع المود حقي اعطني مثال Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 setTeamFriendlyFire ( getTeamFromName("Team"),false) Link to comment
jafar Posted March 7, 2013 Share Posted March 7, 2013 (edited) team = createTeam ( "team", 0, 0, 255 ) setTeamFriendlyFire ( team, false ) Edited March 7, 2013 by Guest Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 المشكله ما معي احد بالسيرفر عشان اجرب معاه هههه Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 يا برستيج شوف S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () setPlayerTeam(source,S) spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,115 ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end ) كذا صح انا مجربه بس فيه غلط الشخصيه ما تتغير ليه؟؟؟ Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 (edited) local S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () spawnPlayer (source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115,0,0,S) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end ) Edited March 7, 2013 by Guest Link to comment
jafar Posted March 7, 2013 Share Posted March 7, 2013 يا برستيج شوف S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () setPlayerTeam(source,S) spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,115 ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end ) كذا صح انا مجربه بس فيه غلط الشخصيه ما تتغير ليه؟؟؟ bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 اختصرت لك الوظيفة ( = كاملة تحط بـ تيم وشخصية #, ذذ Link to comment
][sojn][ Posted March 7, 2013 Author Share Posted March 7, 2013 برستيج ركبت الكود حقك وخرب المود كامل ما يسوي اي شيء هههه صلح لي حق الشخصيات بس ما يتغير الشخصيه وش فيه الغلط كل شيء شغال الا تغيير الشخصيه Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 debugscript 3 ?? ---- انسخ الكود ثانية ^^ لخبطت في الارقمنتات ذذ Link to comment
iMr.Dawix~# Posted March 8, 2013 Share Posted March 8, 2013 S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () setPlayerTeam(source,S) spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end) Link to comment
PaiN^ Posted March 8, 2013 Share Posted March 8, 2013 S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () setPlayerTeam(source,S) spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end) spawnPlayer بالخيارات الإضافية في setPlayerTeam تقدر تختصر Optional Argumentsrotation: rotation of the player on spawn. skinID: player's skin on spawn. Character Skins interior: interior the player will spawn into. Interior IDs dimension: The ID of the dimension that the player should be in. theTeam: the team the player will join. Link to comment
iMr.Dawix~# Posted March 8, 2013 Share Posted March 8, 2013 S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () setPlayerTeam(source,S) spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) end) spawnPlayer بالخيارات الإضافية في setPlayerTeam تقدر تختصر Optional Argumentsrotation: rotation of the player on spawn. skinID: player's skin on spawn. Character Skins interior: interior the player will spawn into. Interior IDs dimension: The ID of the dimension that the player should be in. theTeam: the team the player will join. dimension و interior ادري بس لو حطيته لازم احط يعني كذا spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115,0,0,S ) Link to comment
PaiN^ Posted March 8, 2013 Share Posted March 8, 2013 وش المشكلة ؟ S = createTeam ("Gangs",255,0,0) addEvent("sami",true) addEventHandler("sami",root, function () spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917, 0, 115, 0, 0, S ) giveWeapon ( source, 30, 9999,true ) giveWeapon ( source, 22, 9999,true ) 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