PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Adminmodels



the.prophet
27.06.2009, 14:11
Mahlzeit zusammen,
meine Frage ist eigentlich kurz und knapp, ich möchte, dass die Admins ein Spielermodel bekommen (z.B Combine), was die normalen User nicht verwenden können. Wie stell ich des an?

TheStargater
27.06.2009, 14:23
Aus dem Facepunch Forum:

Ok, so do you already have the Sui_Scoreboard? and the ass_grouping or ass_sandboxteams (or something like that, i know there is two different "grouping" Plug ins)but here is the best i can come up with

Open Ass_Grouping (plug in) and you can edit the Lua file with notepad. and you can add / remove weapons that people spawn with. along with their model and colors and stuff. So just move the Stuff in "Everyones Weapons" to the places they need to be...Not sure if this will work but better than nothing.

/*================================================= =========
==================== CONFIGURATION =====================
================================================== ========*/


----- COLOR -----
OwnerColor = Color( 255, 50, 50, 255 )
SuperAdminColor = Color( 255, 215, 75, 255 )
AdminColor = Color( 100, 255, 125, 255 )
RespectedColor = Color( 100, 255, 255, 255, 255 )
ClientColor = Color( 150, 150, 200, 255 )
UnWantedColor = Color( 255, 0, 255, 255 )


----- TEAM NAME -----
OwnerName = "God"
SuperAdminName = "SuperAdmin"
AdminName = "Pro"
RespectedName = "Regular"
ClientName = "Visitor"
UnWantedName = "Meanie"



----- MODEL -----
OwnerModel = ""
SuperAdminModel = ""
AdminModel = ""
RespectedModel = ""
ClientModel = ""
UnWantedModel = ""


----- WEAPONS -----
EveryonesWeapons = {
"gmod_tool",
"gmod_camera",
"weapon_physgun",
"weapon_physcannon",
"weapon_crowbar",
}
OwnerWeapons = {
"weapon_357",
"weapon_rpg",
"weapon_ar2",
"weapon_frag",
"weapon_crossbow",
}
SuperAdminWeapons = {
}
AdminWeapons = {
}
RespectedWeapons = {
}
ClientWeapons = {
}
UnWantedWeapons = {
}


/*================================================= =========
================= END OF CONFIGURATION =================
================================================== ========*/


Ass Mod kannste dir hier runterladen: http://www.facepunch.com/showthread.php?t=412591
Der rote Teil ist wichtig für dich...
Ich glaube du musst es so angeben: "player/Police.mdl"

den Ordner "models" musst du glaube ich nicht mitreinschreiben aber teste es einfach...

Ich hoffe ich konnte dir helfen...

Showbiz
27.06.2009, 14:28
Wieso wurde abgelehnt? Stimmt da etwas nicht?

the.prophet
27.06.2009, 14:29
Demnach muss ich ja assmod druf haben, und da gibts dann direkt ein problem.
ich habs gestern neu raufgespielt v2.20 hab mir die server owner rechte zugewiesen via giveownership und dann halt bind "g" "+ass_menu" und wenn ich denn g drück, erscheint nur dieses buddy-hinzufügen fenster.

TheStargater
27.06.2009, 14:30
Wieso wurde abgelehnt? Stimmt da etwas nicht?

Das frage ich mich auch?

@ Prophet

Wo hast du Assmod heruntergeladen?

the.prophet
27.06.2009, 14:32
Wieso wurde abgelehnt? Stimmt da etwas nicht?

Wadd?



Wo hast du Assmod heruntergeladen?

garrysmod.org

TheStargater
27.06.2009, 14:36
1. Lösche alles von ASS Mod
2. Lade es dir hier runter: http://www.facepunch.com/showthread.php?t=412591
3. Füge es ein in den Server Ordner
4. Starte Server
5. Fahr den Server herunter
6. Starte den Server neu
7. Trage dich mit ASS_GiveOwnership <userid> als Owner ein und bind "x" "+ASS_Menu" -> Teste ob sich das Menü öffnet
8. Dann bearbeite die Config Datei mit den Models und schau nach obs geht

the.prophet
27.06.2009, 14:38
Ist beim assmod eigtl. automatisch propprotection dabei?

btw: der link baut sich nicht auf bei mir.

TheStargater
27.06.2009, 14:39
btw: der link baut sich nicht auf bei mir.

Das war bei mir auch früher so, du musst etwas warten 2-3 Minuten oder so, warte einfach...

the.prophet
27.06.2009, 14:41
Ist beim assmod eigtl. automatisch propprotection dabei?

- hat sich erledigt, seite hat sich grad aufgebaut, da stehts mitbei.

Edit:

Also das is egal was ich bei giveownership eingeb ob meinen namen oder meine steamid, der sagt immer Access Denied!

WeltEnSTurm
27.06.2009, 14:56
local adminmodels = {
"models/wasauchimmer/model.mdl",
"models/wasauchimmer/model2.mdl",
--usw
}

local function setmodel(p)
if p:IsAdmin() then
local mdl = adminmodels[math.random(1, table.getn(adminmodels)]
if !mdl then return end
p:SetModel(mdl)
end
end
hook.Add("PlayerRespawn", "AdminModel", setmodel)

random model aus der adminmodel liste beim respawnen

the.prophet
27.06.2009, 15:16
<----assmod sagt mir access denied!---->

WeltEnSTurm
27.06.2009, 15:20
<----assmod sagt mir access denied!---->

Für das script brauchst du aber kein assmod =)
Und ich hab keine Ahnung von assmod, also musst du wohl auf wen anderen warten.

the.prophet
27.06.2009, 16:59
OK funzt jetzt
Doppelpost:
Also die einzige Datei die ich habe nennt sich ass_sandbox_teams und beinhaltet das hier:

local PLUGIN = {}

PLUGIN.Name = "Sandbox Teams"
PLUGIN.Author = "_Undefined"
PLUGIN.Date = "28th May, 2008"
PLUGIN.Filename = PLUGIN_FILENAME
PLUGIN.ClientSide = true
PLUGIN.ServerSide = true
PLUGIN.APIVersion = 2
PLUGIN.Gamemodes = { "sandbox" }

// CONFIG
// These values are Color(red, green, blue, alpha)
// Use values between 0 and 255. Leave alpha as 255.

SERVER_OWNER_COLOR = Color(255, 0, 51, 255)
SUPER_ADMIN_COLOR = Color(255, 102, 51, 255)
ADMIN_COLOR = Color(255, 165, 0, 255)
RESPECTED_COLOR = Color(135, 206, 235, 255)
BANNED_COLOR = Color(139, 131, 134, 255) // This is for people who weren't permabanned and have come back.
CLIENT_COLOR = Color(192, 255, 62, 255)

// END CONFIG

if (SERVER) then

function PLUGIN.SetSandboxTeams( ply )
if not ply:IsValid() then end
if ply:HasLevel( ASS_LVL_SERVER_OWNER ) then
ply:SetTeam(4)
elseif ply:HasLevel( ASS_LVL_SUPER_ADMIN ) then
ply:SetTeam(5)
elseif ply:HasLevel( ASS_LVL_TEMPADMIN ) then
ply:SetTeam(6)
elseif ply:HasLevel( ASS_LVL_RESPECTED ) then
ply:SetTeam(7)
elseif ply:HasLevel( ASS_LVL_GUEST ) then
ply:SetTeam(8)
else
ply:SetTeam(9)
end
end

hook.Add("PlayerSpawn", "SetSandBoxTeam", PLUGIN.SetSandboxTeams)

end

if (CLIENT) then
end

ASS_RegisterPlugin(PLUGIN)

team.SetUp (4, "Server Owner", SERVER_OWNER_COLOR)
team.SetUp (5, "Super Admin", SUPER_ADMIN_COLOR)
team.SetUp (6, "Admin", ADMIN_COLOR)
team.SetUp (7, "Respected", RESPECTED_COLOR)
team.SetUp (8, "Client", CLIENT_COLOR)
team.SetUp (9, "Previously Banned", BANNED_COLOR)