Does anyone know how I can put in the demote on death script into this?
TEAM_KICKASS = AddExtraTeam( "KickAss", Color(25, 25, 170, 255), "models/norpo/ArkhamOrigins/Assassins/Deathstroke_ValveBiped.mdl", [[Kickass must protect the civilians of FuzzyRP, you can only use your baton provided, Kickass does not shoot guns.]], {"weapon_crowbar"}, "kickass", 1, 750,0,true,true,function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:IsAdmin() end)
What demote on death script
If you die you get demoted to citizen
This should work, but I haven't tested it, neither did I check if the syntax is right.
[CODE]
TEAM_KICKASS = AddExtraTeam( "KickAss", {
color = Color(25, 25, 170, 255),
model = "models/norpo/ArkhamOrigins/Assassins/Deathstroke_ValveBiped.mdl",
description = [[Kickass must protect the civilians of FuzzyRP, you can only use your baton provided, Kickass does not shoot guns.]],
weapons = {"weapon_crowbar"},
command = "kickass",
max = 1,
salary = 750,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:IsAdmin() end
PlayerDeath = function(ply, weapon, killer)
if( ply:Team() == TEAM_KICKASS ) then
ply:changeTeam( TEAM_CITIZEN, true )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTCENTER, "The Kickass has been killed!" )
end
end
end
})
[/CODE]
Sorry, you need to Log In to post a reply to this thread.