Hi wie der Tittel schon sagt ich habe ein problem mit meinem GangSystem ich hoffe ihr könnt mir helfen:
Code
function assignNewTeam ( source, commandName, teamName )
local theTeam = createTeam ( teamName ) -- create a new team with the specified name
if theTeam then -- if it was successfully created
setPlayerTeam ( source, theTeam ) -- add the player to the new team
outputChatBox ( .. getPlayerName ( source ) .. "Hat die Gang" ( .. getTeamName (source).. "Erstellt")
end
end
addCommandHandler ( "gang", assignNewTeam )
function unassignTeam ( source, commandName )
local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team
if theTeam then -- this player is on a team, so we can remove them from it
setPlayerTeam ( source, nil ) -- remove the player from the current team
end
end
addCommandHandler ( "gangverlassen", unassignTeam )
function changeMyTeamName ( source, key, newName )
playerteam = getPlayerTeam ( source )
if ( playerteam ) then
oldName = getTeamName ( playerteam )
setTeamName ( playerteam, newName )
outputChatBox ( .. getPlayerName ( source ) .. "Hat seine gang von" .. oldName .. " zu " .. newName "Umbenennt")
end
end
addCommandHandler ( "gangname", changeMyTeamName )
Alles anzeigen
wenn ich /gang schreibe passiert einfach nichts kann mir bitte jemand helfen?