Hallo
Ich bin am scripten eine Autoteam zumachen es klappt leider nicht es kommt dauert Bad Argument getPlayerAccount
Hier der Code
Lua
admin = createTeam ( "Admin", 0, 255, 0 )
function team ( thePlayer )
local account = getPlayerAccount ( thePlayer )
local accname = getAccountName( account )
if isObjectInACLGroup ( "user." ..accname, aclGetGroup ( "Admin" ) ) then
setPlayerTeam( source,admin)
end
setTimer(team, 1000, 1)
end
setTimer(team, 1000, 1)
Alles anzeigen