Jump to content

مساعده في تيم


Tarek1

Recommended Posts

theTeam = "Police"
local allTeams = getElementsByType ( "team" )

for index, theTeam in ipairs(allTeams) do

	if ( getTeamFriendlyFire ( theTeam ) == false ) then

		setTeamFriendlyFire ( theTeam, true )
	end
end

 فكره السكربت : الاعبون اللي في تيم بوليس لا يستطيعوا قتل بعضهم 

Link to comment
1 minute ago, #_iMr.[E]coo said:

addEventHandler ( "onResourceStart", getRootElement(), 
function ( )
local team = getTeamFromName("Police")
if ( getTeamFriendlyFire ( team ) == false ) then 		
setTeamFriendlyFire ( team, true ) 	
end 
end
)

نسخ لصق ؟ :lol:

مش فاهم ؟

Link to comment
Just now, Deativated said:

انت اخد الكود من الويكي


-- get a table with all teams
local allTeams = getElementsByType ( "team" )
-- for every team,
for index, theTeam in ipairs(allTeams) do
	-- if friendly fire is off,
	if ( getTeamFriendlyFire ( theTeam ) == false ) then
		-- switch it on
		setTeamFriendlyFire ( theTeam, true )
	end
end

https://wiki.multitheftauto.com/wiki/SetTeamFriendlyFire

اها 

امال الويكي معمول ليه 

علشان نتامله :D?

 

Link to comment
4 minutes ago, #_iMr.[E]coo said:

](*,) ولآ شي

الكود الي فوق سيرفر 

كودك غلط و تقدرون تسونها ب سطر واحد

setTeamFriendlyFire ( getTeamFromName ( 'Police' ) , false )

2 minutes ago, iPrestege said:

-- Server Side

setTeamFriendlyFire ( getTeamFromName ( 'Police' ),true );

 

جيت ارد حصلتك رديت ض 

 

Edited by #Soking
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...