Im trying to get it so when the mayor dies he respawns as a citizen.
This is help hostage situations and assassinations of the mayor.
[CODE]PlayerDeath = function(ply, weapon, killer)
if( ply:Team() == TEAM_MAYOR ) then
ply:ChangeTeam( TEAM_CITIZEN, true )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed! We need a new mayor!" )
end
end
end[/CODE]
Try that
thanks.
Sorry, you need to Log In to post a reply to this thread.