SaRy Posted July 17, 2013 Share Posted July 17, 2013 السلام عليكم ورحمه الله وبركاته انا بي كود اذا لاعب اختار شخصية معينه يجي له اسلحة ويدخل تيم محدد Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 لازم كود اون بلاير سباون صح ؟؟ Link to comment
jafar Posted July 17, 2013 Share Posted July 17, 2013 يب واذا كان عندك قيم مود تقدر تعدل عليه ذذ Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 giveWeapon setPlayerTeam + getTeamFromName Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 function OnSpawn ( theSpawnpont, theTeam ) giveWeapon ( source, 4, 300 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), OnSpawn ) function setTame ( source, commandName, teamName ) local theTeam = createTeam ( Police ) if theTeam then setPlayerTeam ( source, Police ) end end صح ؟؟؟ Link to comment
./BlackBird# Posted July 17, 2013 Share Posted July 17, 2013 function OnSpawn ( theSpawnpont, theTeam ) giveWeapon ( source, 4, 300 ) setTame(source) end addEventHandler ( "onPlayerSpawn", getRootElement(), OnSpawn ) function setTame (player) local theTeam = createTeam ("Police") if theTeam then setPlayerTeam ( player, theTeam ) end end صح ؟؟؟ Link to comment
jafar Posted July 17, 2013 Share Posted July 17, 2013 function OnSpawn ( ) giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end addEventHandler ( "onPlayerSpawn", getRootElement(), OnSpawn ) Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 شكرا جعفر الحين انا ابي اسوي تيم Police عشان لو سويتها من الادمنية بتروح لما اسوي رستارت لمود admin ? Link to comment
./BlackBird# Posted July 17, 2013 Share Posted July 17, 2013 local PoliceTeam = createTeam("Police",0,0,255) Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 شكرا جدا لك function OnSpawn ( ) giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) createTeam('Police') end addEventHandler ( "onPlayerSpawn", getRootElement(), OnSpawn ) صح Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 createTeam('Police') addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end ) او , Team = createTeam('Police') addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, Team) end ) اذا تبي تلونه , [int colorR = 255, int colorG = 255, int colorB = 255] ) Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 createTeam('Police , 255 , 255 , 255') addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end ) ؟؟ Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 (edited) createTeam('Police' , 255 , 255 , 255) addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end ) كذا لون طبيعي غير في 255,255,255 Edited July 17, 2013 by Guest Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 اوكي مشكور لو ابيه اسلحة كتير يكون هيك createTeam('Police' , 255 , 255 , 255) addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) giveWeapon ( source, 23, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end ) ؟؟ Link to comment
jafar Posted July 17, 2013 Share Posted July 17, 2013 اوكي مشكور لو ابيه اسلحة كتير يكون هيك createTeam('Police' , 255 , 255 , 255) addEventHandler ( "onPlayerSpawn",root, function() giveWeapon ( source, 4, 300 ) giveWeapon ( source, 23, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end ) ؟؟ يب ويمديك تسوي جدول ذذ Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 طيب الحين الموضوع 50% تم الحل الحين انا ابيه يدخل التيم وياخذ اسلحة بس شخصيات معينه Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 طيب الحين الموضوع 50% تم الحل الحين انا ابيه يدخل التيم وياخذ اسلحة بس شخصيات معينه شخصيات تقصد لبس؟ setElementModel ولا تقصد ناس تحددهم انت؟ Link to comment
AHMAD1234 Posted July 17, 2013 Share Posted July 17, 2013 if getElementModel( element ) == 0 then -- 0 = player skin ID -- element العنصر اللي تبى تتحقق منه يصير كذا createTeam('Police' , 255 , 255 , 255) addEventHandler ( "onPlayerSpawn",root, function() if getElementModel( source ) == 0 then -- if player skin = 0(cj model) then do! giveWeapon ( source, 4, 300 ) giveWeapon ( source, 23, 300 ) setPlayerTeam ( source, getTeamFromName ("Police")) end end ) Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 كفؤ عليك انا بعطيك ادمنية بسيرفري بس خليني اسويه Link to comment
AHMAD1234 Posted July 17, 2013 Share Posted July 17, 2013 كفؤ عليك انا بعطيك ادمنية بسيرفري بس خليني اسويه يستحقها اكثر كفو عليه The Best لول العفو بس شكراً ما ابغى ادمنيه عطها لي Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 اي حد يبي ادمنية يقول بعطيهذذ Link to comment
SaRy Posted July 17, 2013 Author Share Posted July 17, 2013 اي حد يبي ادمنية يقول بعطيه ذذ Link to comment
فاّرس Posted July 17, 2013 Share Posted July 17, 2013 كفؤ عليك انا بعطيك ادمنية بسيرفري بس خليني اسويه يستحقها اكثر كفو عليه The Best لول العفو بس شكراً ما ابغى ادمنيه عطها لي ههههههههههههههههههههههههههههههههههههههههههههههه اكره شيء اسمه mta ولا ادخلها اصلا الا احيانا ولا لو إني العب ما تشوفني هنا ذذ 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