Adham Posted June 24, 2016 Share Posted June 24, 2016 سلام عليكم ورحمه الله وبركاته انا ابغا اسوي لما حد يكتب في ف8 -- createTeam يسوي تيم ويظهر في تاب تمام بس انا عاوزو كدا createTeam اسم التيم مثلن createTeam Le3bA 255 255 0 يعني انا الاحدد الون و الاسم Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 وين محاولتك ؟ لا تخاف م في احد صار يعطي جاهز الحين Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 لاااااااااااا م ابي جاهز ي ميزو .. انا م حد عطاني فكشنات لكي اعمل محاوله Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 لاااااااااااام ابي جاهز ي ميزو .. انا م حد عطاني فكشنات لكي اعمل محاوله خخخخخخخخخخخخخخ انت قايل الفنكشنات بنفسك فوق addCommandHandler createTeam Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 هههههه انا اقصد creteTeam يكتبها في ف8 ضض Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 ههههههانا اقصد creteTeam يكتبها في ف8 ضض addCommandHandler createTeam Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 كذا؟ function Teams ( teamname ) local team = createTeam ( teamname ) if team then setPlayerTeam( source , team ) end end addCommandHandler("CreateTeam",Teams) Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 كذا؟ function Teams ( teamname ) local team = createTeam ( teamname ) if team then setPlayerTeam( source , team ) end end addCommandHandler("CreateTeam",Teams) هو انت لازم تنسخ امثلة الويكي ؟ وبعدين ليه م تجرب انت وتشوف بنفسك Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 م ظبت ولا يسوي تيم + م في دي بق Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 م ظبت ولا يسوي تيم+ م في دي بق مسوي بالكود setPlayerTeam كيف تبيه ينشأ تيم يا اخي فكر الاول قبل م تتكلم انت من كلامك تبي جاهز وخلاص ولمعلوماتك ال 1000 مشاركة حقتك دول كلهم طلبات جاهزه تفضل addCommandHandler("createTeam", function(p,c,n,r,g,b) createTeam(tostring(n),tonumber(r),tonumber(g),tonumber(b)) end) Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 شف انا كتبت createTeam adham 255 255 255 م سوي تيم ولا شي Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 شف انا كتبتcreateTeam adham 255 255 255 م سوي تيم ولا شي this code server side only createTeam adham 255 0 0 Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 طيب .. لو ابي اسوي لين يكتب RemoveTeam adham يتحذف التيم شو اسم الفكشن؟ Link to comment
Me[Z]oO Posted June 24, 2016 Share Posted June 24, 2016 طيب .. لو ابي اسوي لين يكتب RemoveTeam adham يتحذف التيم شو اسم الفكشن؟ destroyElement Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 طيب شكرا .. انا عملت لما يسوي تيم يجي في الشات كلام addCommandHandler("createTeam", function(p,c,n,r,g,b) createTeam(tostring(n),tonumber(r),tonumber(g),tonumber(b)) outputChatBox("#00ff00#[TeamsSysteam]: Team "..getTeamName(source).." created by "..getPlayerName(source).." ",source,255,255,255,true) end) لاكن م يجي في الشات + انا ابي gettTeamName = اسم التيم العمله م تبي تشتغل Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 م تعمل بالشات outputChatBox("#00ff00#[TeamsSysteam]: Team "..getTeamName(source).." created by "..getPlayerName(source).." ",root,255,255,255,true) Link to comment
#Soking Posted June 24, 2016 Share Posted June 24, 2016 addCommandHandler("createTeam", function( Plr ,_, N_Team, R_C , B_C , G_C , Stats ) if ( Stats == true ) then setTeamFriendlyFire(Team_C,true) end if ( Stats == false ) then setTeamFriendlyFire(Team_C,false) end Team_C = createTeam( tostring(N_Team) , tonumber(R_C) , tonumber(B_C) , tonumber(G_C) ) outputChatBox("#00ff00#[TeamsSysteam]: Team "..getTeamName(Plr).." created by "..getPlayerName(Plr).." ",Plr,255,255,255,true) end ) Link to comment
#Soking Posted June 24, 2016 Share Posted June 24, 2016 createTeam Test 150 250 0 false مثال Link to comment
Adham Posted June 24, 2016 Author Share Posted June 24, 2016 تمام يسوي تيم اوكي لاكن م يجي بالشات Link to comment
#Soking Posted June 24, 2016 Share Posted June 24, 2016 addCommandHandler("createTeam", function( Plr ,_, N_Team, R_C , B_C , G_C , Stats ) if ( Stats == true ) then setTeamFriendlyFire(Team_C,true) end if ( Stats == false ) then setTeamFriendlyFire(Team_C,false) end Player_Name , Team_C = getPlayerName(Plr) , createTeam( tostring(N_Team) , tonumber(R_C) , tonumber(B_C) , tonumber(G_C) ) outputChatBox("#00ff00#[TeamsSysteam]: Team "..getTeamName(Team_C).." created by "..Player_Name.." ",Plr,255,255,255,true) end ) جرب Link to comment
YourMind Posted June 24, 2016 Share Posted June 24, 2016 addCommandHandler("createTeam", function(p,c,n,r,g,b) if createTeam(tostring(n),tonumber(r),tonumber(g),tonumber(b)) then outputChatBox("#00ff00#[TeamsSystem]: Team "..n.." created by "..getPlayerName(p).." ",root,255,255,255) end end) Link to comment
' A F . Posted June 25, 2016 Share Posted June 25, 2016 addCommandHandler("createTeam", function ( Player , Command , Name , R , G , B ) if ( getTeamFromName ( tostring ( Name ) ) ) then return outputChatBox("#00ff00#[TeamsSysteam]: This team already exists",Player,255,255,255,true) end createTeam ( tostring ( Name ) , tonumber ( R ) , tonumber ( G ) , tonumber ( B ) ) outputChatBox("#00ff00#[TeamsSysteam]: Team "..tostring(Name).." created by "..getPlayerName(Player).." ",root,255,255,255,true) end ) addCommandHandler("removeTeam", function ( Player , Command , Team ) if ( getTeamFromName ( tostring ( Team ) ) ) then destroyElement ( getTeamFromName ( tostring ( Team ) ) ) end 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