Jump to content

بدي مساعده في مود


Recommended Posts

شباب انا عندي قيم مود هجوله بدي اخليه لما يموت اللاعب يروح للمكان اللي اختاره مثل البدايه .......الخ

 

ارجوا المساعده سريعا

ارجو الرد سريعا!
 

Edited by Mr.HacKeR
Link to comment

مثال

addEventHandler ( 'onClientGUIClick' , root ,
	function ( 	)
		if ( source == aButtonSpawn1 ) then
			setElementData ( localPlayer , 'aSpawn_' , '1' )
		elseif ( source == aButtonSpawn2 ) then 
			setElementData ( localPlayer , 'aSpawn_' , '2' )
		end 
	end 
)
addEventHandler ( 'onPlayerWasted' , root ,
	function ( 	)
		if ( getElementData ( source , 'aSpawn_' ) == '1' ) then 
			spawnPlayer ( x , y , z )
		elseif ( getElementData ( source , 'aSpawn_' ) == '2' ) then 
			spawnPlayer ( x , y , z )
		end 
	end 
)

 

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

مثال


addEventHandler ( 'onClientGUIClick' , root ,
	function ( 	)
		if ( source == aButtonSpawn1 ) then
			setElementData ( localPlayer , 'aSpawn_' , '1' )
		elseif ( source == aButtonSpawn2 ) then 
			setElementData ( localPlayer , 'aSpawn_' , '2' )
		end 
	end 
)

addEventHandler ( 'onPlayerWasted' , root ,
	function ( 	)
		if ( getElementData ( source , 'aSpawn_' ) == '1' ) then 
			spawnPlayer ( x , y , z )
		elseif ( getElementData ( source , 'aSpawn_' ) == '2' ) then 
			spawnPlayer ( x , y , z )
		end 
	end 
)

 

ارجوك بطل تبرمج على طريقة سوكينج

Link to comment
Spawns = {
  	["Start"] = {
    	{0, 0, 0}
    }
}

addEventHandler("onPlayerWasted", root,
  function()
    local spawn = getElementData(source, "Spawn") or "Start"
    local x, y, z = Spawns[spawn][1][1], Spawns[spawn][1][2], Spawns[spawn][1][3]
    spawnPlayer(source, x, y, z)
  end
)

 

Edited by #Skrillex
  • Like 1
Link to comment
On ١‏/٧‏/٢٠١٧ at 16:36, #BrosS said:

ارجوك بطل تبرمج على طريقة سوكينج

 

On ١‏/٧‏/٢٠١٧ at 17:31, #_iMr.[E]coo said:

مشان الله , أترجاك عشان ما تقتبس ردي ؟

ترا قرفت من وجهك , لا تقتبس رد مرة ثانية , 

xDDD

بطلو زعل ..

كل واحد وطريقته مو لازم زعل -.-

 

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...