Jump to content

طلب فكشن


Recommended Posts

12 minutes ago, #َxLysandeR said:

addDebugHook

return skip

or 

toggleControl(player, "jump", false)

طيب

 

الحين بسوي كلمه تجي في الشات لتيمم معين

 

وش الفكشنات حقت التيم

 

|

يعني مثلا انا في تيم اسمه

Team

 

ابي لما اكتب بشات الكلام يجي لتيمي انا بس

Link to comment
58 minutes ago, #َxLysandeR said:

addCommandHandler
getPlayersInTeam
--loop
outputChatBox

 

عندي مشكله

شفها

local pTeam = getPlayerTeam( source )
local teamMeat = getTeamFromName ( pTeam )
local players = getPlayersInTeam ( teamMeat )
outputChatBox( "Your Friend Wasted !", players )

 

Link to comment
4 minutes ago, +Source|> said:

عندي مشكله

شفها


local pTeam = getPlayerTeam( source )
local teamMeat = getTeamFromName ( pTeam )
local players = getPlayersInTeam ( teamMeat )
outputChatBox( "Your Friend Wasted !", players )

 

سويتلك مثآل جرب

addCommandHandler("helpteam",
	function (	)
		local pTeam = getPlayerTeam( source )
		local teamMeat = getTeamFromName ( pTeam )
		local players = getPlayersInTeam ( teamMeat )
		for k, v in ipairs ( getElementsByType ( "player" ) ) do
			if getPlayerTeam(v) == pTeam then
				outputChatBox("Your Friend need help", v, 255, 0, 0)
			end
		end
	end
)

 

  • Like 1
Link to comment
24 minutes ago, Mr.Mostafa said:

سويتلك مثآل جرب


addCommandHandler("helpteam",
	function (	)
		local pTeam = getPlayerTeam( source )
		local teamMeat = getTeamFromName ( pTeam )
		local players = getPlayersInTeam ( teamMeat )
		for k, v in ipairs ( getElementsByType ( "player" ) ) do
			if getPlayerTeam(v) == pTeam then
				outputChatBox("Your Friend need help", v, 255, 0, 0)
			end
		end
	end
)

 

راجع كودك

Link to comment
35 minutes ago, +Source|> said:

عندي مشكله

شفها


local pTeam = getPlayerTeam( source )
local teamMeat = getTeamFromName ( pTeam )
local players = getPlayersInTeam ( teamMeat )
outputChatBox( "Your Friend Wasted !", players )

 

for _,player in ipairs(getPlayersInTeam(getTeamFromName("Name"))) do

Link to comment
42 minutes ago, Mr.Mostafa said:

سويتلك مثآل جرب


addCommandHandler("helpteam",
	function (	)
		local pTeam = getPlayerTeam( source )
		local teamMeat = getTeamFromName ( pTeam )
		local players = getPlayersInTeam ( teamMeat )
		for k, v in ipairs ( getElementsByType ( "player" ) ) do
			if getPlayerTeam(v) == pTeam then
				outputChatBox("Your Friend need help", v, 255, 0, 0)
			end
		end
	end
)

 

شكرا شغال

Link to comment
addEventHandler ( "onPlayerChat", root,
	function ( message, messageType )
		if ( message and messageType == 2 ) then
			local playerTeam = getPlayerTeam ( source )
			if ( playerTeam ) then
				for k, v in ipairs ( getPlayersInTeam ( playerTeam ) ) do
					local r, g, b = getTeamColor ( playerTeam )
					outputChatBox ( "(TEAM) #FFFFFF" .. getPlayerName ( source ) .. ":#FFFFFF " .. message, v, r, g, b, true )
				end
			end
		end
	end
)

 

  • Like 2
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...