Problemes DarkRP Respawn

thekiller

Membre
Membre
5 Juillet 2010
1
0
16
#1
Bonjour,

J'aurait besoin de votre aide pour configurer ass_Sandboxteams avec DarkRP car a chaque respawn, on perd son job et ses armes.

Pouvez vous m'aidez .

PS: Désolez , je ferais une présentation aprés .

Copie de Sandboxteam assmod >>

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)
elseif ply:HasLevel( ASS_LVL_BANNED ) then
ply:SetTeam(9)

end
end

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

end

if (CLIENT) then
end

ASS_RegisterPlugin(PLUGIN)

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