Etti
05.08.2007, 02:23
Also ich würd ganz gerne auf meinem gmod9 ded. Server, Propprotector Admin sein da ist zwar ne Reade so zu sagen bei aber ich blick das nich ganz
-- Just Edit this
-- The 3 steamids are examples and quoted out (-- befor them)
-- To add admins, you have to had a basic knowledge about LUA tables.
ADMIN_LIST = {
-- "STEAM:0:1:23456",
-- "STEAM:0:7:89000",
-- "STEAM:0:1:whateverID"
}
--Admin check function - don't edit this!
function isAdmin(userid)
-- Give listenserveradmins autoadmin
if (_IsDedicatedServer() == false and userid == 1) then
return true
end
for i,v in ipairs(ADMIN_LIST) do
if (userid) and (userid > 0) then
if (string.lower(v) == string.lower(_PlayerInfo(userid,"networkid"))) then
return true;
end
end
end
return false;
end
Vielleicht weiß ja jemand was ich machen muss damit es geht
-- Just Edit this
-- The 3 steamids are examples and quoted out (-- befor them)
-- To add admins, you have to had a basic knowledge about LUA tables.
ADMIN_LIST = {
-- "STEAM:0:1:23456",
-- "STEAM:0:7:89000",
-- "STEAM:0:1:whateverID"
}
--Admin check function - don't edit this!
function isAdmin(userid)
-- Give listenserveradmins autoadmin
if (_IsDedicatedServer() == false and userid == 1) then
return true
end
for i,v in ipairs(ADMIN_LIST) do
if (userid) and (userid > 0) then
if (string.lower(v) == string.lower(_PlayerInfo(userid,"networkid"))) then
return true;
end
end
end
return false;
end
Vielleicht weiß ja jemand was ich machen muss damit es geht