Hello guys , this is my code for the president dead
function MayorDeath( victim, weapon, killer ) if victim:Team() == TEAM_MAYOR then victim:SetTeam( TEAM_SURVIVOR ) for k, v in pairs(player.GetAll()) do if v:Alive() then v:PrintMessage(HUD_PRINTTALK,"The mayor has been killed by" .. killer:GetName().. ". "); end end end end hook.Add( "PlayerDeath", "MayorDeathCheck", MayorDeath)
there is a way to add something like :
to put the Killer automaticaly wanted with the reason " Murder The President " ?
Thanks , also
is the code right ?