][sojn][ Posted March 7, 2013 Posted March 7, 2013 السلام عليكم شباب ابي كود لو اظغط على زر يحركني لتيم معين وكود يمنع مود زي الاف 1 فري روم عن تيم معين مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
iPrestege Posted March 7, 2013 Posted March 7, 2013 "onClientGUIClick" triggerServerEvent createTeam setPlayerTeam سوية بـ التيم if getPlayerTeam...
===|OSAMA|=== Posted March 7, 2013 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
][sojn][ Posted March 7, 2013 Author Posted March 7, 2013 مشكور برستيج اسامه وجافار مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
===|OSAMA|=== Posted March 7, 2013 Posted March 7, 2013 مشكور برستيج اسامه ^ تصحيح : برستيج واسامة ذذ + العفو -_-"
][sojn][ Posted March 7, 2013 Author Posted March 7, 2013 نسيت شيء ابي كود ما يخلي واحد يقتل واحد من نفس تيمه زي البيسمود مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
][sojn][ Posted March 7, 2013 Author Posted March 7, 2013 ما عرفت ادمجه مع المود حقي اعطني مثال مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
iPrestege Posted March 7, 2013 Posted March 7, 2013 setTeamFriendlyFire ( getTeamFromName("Team"),false)
jafar Posted March 7, 2013 Posted March 7, 2013 (edited) team = createTeam ( "team", 0, 0, 255 ) setTeamFriendlyFire ( team, false ) Edited March 7, 2013 by Guest
][sojn][ Posted March 7, 2013 Author Posted March 7, 2013 المشكله ما معي احد بالسيرفر عشان اجرب معاه هههه مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
][sojn][ Posted March 7, 2013 Author 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 ) كذا صح انا مجربه بس فيه غلط الشخصيه ما تتغير ليه؟؟؟ مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
iPrestege Posted March 7, 2013 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
jafar Posted March 7, 2013 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 ] )
iPrestege Posted March 7, 2013 Posted March 7, 2013 اختصرت لك الوظيفة ( = كاملة تحط بـ تيم وشخصية #, ذذ
][sojn][ Posted March 7, 2013 Author Posted March 7, 2013 برستيج ركبت الكود حقك وخرب المود كامل ما يسوي اي شيء هههه صلح لي حق الشخصيات بس ما يتغير الشخصيه وش فيه الغلط كل شيء شغال الا تغيير الشخصيه مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
iPrestege Posted March 7, 2013 Posted March 7, 2013 debugscript 3 ?? ---- انسخ الكود ثانية ^^ لخبطت في الارقمنتات ذذ
iMr.Dawix~# Posted March 8, 2013 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) My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
PaiN^ Posted March 8, 2013 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. " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iMr.Dawix~# Posted March 8, 2013 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 ) My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
PaiN^ Posted March 8, 2013 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) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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