Ich hab folgendes problem ich möchte mit einem befehl 2 actionen durchführen aber der sagt mir immer das...das 3argument eine function braucht
Lua
function assignPolizei ( source, commandName, teamName )
local theTeam = createTeam ( "Polizei" ) -- 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
end
end
function enterPolizei(playerSource)
if (getElementModel(playerSource) == 280) then
outputChatBox("You are already in the law!", playerSource)
else
setElementModel(playerSource, 280)
outputChatBox("Welcome to the law, protect the innocents.", playerSource)
end
end
addCommandHandler ( "teamPolizei", assignPolizei, enterPolizei)
Alles anzeigen
muss ich wirklich den addCommandHandler unter jederfunction neu eintragen??