Jump to content

مساعد بسيطه


L3yr

Recommended Posts

السلام عليكم شباب اريد ان اعرف ايه المشكله او الخطاء هنا

اريد ان انشاء فريق تيم  مثل المجرمين مثلا

وشكرا

function createFaislTeam()
    team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color  
      setTeamName ( playerTeam, Criminal )
end

addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createCriminalTeam)
 
function joinCriminalTeam(player)
    local team = getTeamFromName ("Criminal")
    if (team) then -- if we found it  
        setPlayerTeam (player,Criminalteam)
        setElementModel (player, 230)   
        
           outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )
    end
end
addCommandHandler("join_Criminal_team", joinCriminallTeam)

Link to comment
function createFaislTeam()
    team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color  
end

addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam)
 
function joinCriminalTeam(player)
    local team = getTeamFromName ("Criminal")
    if (team) then -- if we found it  
        setPlayerTeam (player,team)
        setElementModel (player, 230)   
               outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )

            end
end
addCommandHandler("join_Criminal_team", joinCriminalTeam)

 

Edited by ~#[N]exT
  • Like 1
Link to comment
Just now, ~#[N]exT said:

function createFaislTeam()
    team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color  
end

addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam)
 
function joinCriminalTeam(player)
    local team = getTeamFromName ("Criminal")
    if (team) then -- if we found it  
        setPlayerTeam (player,team)
        setElementModel (player, 230)   
               outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )

            end
end
addCommandHandler("join_Criminal_team", joinCriminalTeam)

 

شكرا اخى :]

  • Like 1
Link to comment
2 hours ago, ~#[N]exT said:

function createFaislTeam()
    team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color  
end

addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam)
 
function joinCriminalTeam(player)
    local team = getTeamFromName ("Criminal")
    if (team) then -- if we found it  
        setPlayerTeam (player,team)
        setElementModel (player, 230)   
               outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )

            end
end
addCommandHandler("join_Criminal_team", joinCriminalTeam)

 

 

السورس بمخرج الشات غير معرف

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