Jump to content

هل هذه صحيح


L3yr

Recommended Posts


		team = createTeam ("Criminal", 255, 0, 0)
	
		function joinCriminalTeam(player)    local team = getTeamFromName ("Criminal")    

		if (team) then

		setPlayerTeam (player,team)        setElementModel (player, 230)      getTeamColor (player, team)        setBlipColor (player, team)       setTeamFriendlyFire ( team, true )                
	
		end  
  
		end  

		addCommandHandler("setme",joinCriminalTeam)
	
		addEventHandler("onClientGUIClick",root,
	
		function()
	
		if source == GUIEditor.button[1] then

		triggerServerEvent("JoinCriminal",localPlayer)

		elseif source == GUIEditor.button[3] then
	
		guiSetVisible(GUIEditor.window[1]),false)
	
		showCursor(false)

		end

		end
	
		) 

 

3 minutes ago, Eslam Essam said:

		team = createTeam ("Criminal", 255, 0, 0)
	
		function joinCriminalTeam(player)    local team = getTeamFromName ("Criminal")    

		if (team) then

		setPlayerTeam (player,team)        setElementModel (player, 230)      getTeamColor (player, team)        setBlipColor (player, team)       setTeamFriendlyFire ( team, true )                
	
		end  
  
		end  

		addCommandHandler("setme",joinCriminalTeam)
	
		addEventHandler("onClientGUIClick",root,
	
		function()
	
		if source == GUIEditor.button[1] then

		triggerServerEvent("JoinCriminal",localPlayer)

		elseif source == GUIEditor.button[3] then
	
		guiSetVisible(GUIEditor.window[1]),false)
	
		showCursor(false)

		end

		end
	
		) 

 

فى ملف سرفر عمل التيم 

Link to comment

اكوادك صحيحة في الكلنت بس سيرفر فيه اخطاء ..

التصحيح :

		team = createTeam ("Criminal", 255, 0, 0)
	
		function joinCriminalTeam(player,cmd)   
        local team = getTeamFromName ("Criminal")    
		if ( cmd == "setme") then
		if (team) then

		setPlayerTeam (player,team)     
        setElementModel (player, 230)     
        getTeamColor (player, team)        
        setBlipColor (player, team)      
        setTeamFriendlyFire ( team, true )                
	
		end  
  		end
		end  
addCommandHandler("setme", joinCriminalTeam)

 

Link to comment
13 minutes ago, iMr.WiFi..! said:

اكوادك صحيحة في الكلنت بس سيرفر فيه اخطاء ..

التصحيح :


		team = createTeam ("Criminal", 255, 0, 0)
	
		function joinCriminalTeam(player,cmd)   
        local team = getTeamFromName ("Criminal")    
		if ( cmd == "setme") then
		if (team) then

		setPlayerTeam (player,team)     
        setElementModel (player, 230)     
        getTeamColor (player, team)        
        setBlipColor (player, team)      
        setTeamFriendlyFire ( team, true )                
	
		end  
  		end
		end  
addCommandHandler("setme", joinCriminalTeam)

 

شكرا على الرد  ومرورك 

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