All pastes #627730 Raw Edit

Unnamed

public lua v1 · immutable
·published 2007-07-20 14:06 UTC
rendered paste body
-- SERVER CODEfunction setstuff()for _,ply in pairs(player.GetAll()) doif ply:GetTeam()==1 thenply:SetNetworkedInt("ending",CurTime()+10) -- 10 secondselseply:SetNetworkedInt("ending",CurTime()+5) -- 5 secondsendendend-- CLIENT CODEfunction GM:HudPaint()local endtime=LocalPlayer:GetNetworkedInt("ending,-1) -- if it isn't set, it is -1if endtime~=-1 thenif endtime<CurTime() thenlocal secondsremaining=endtime-CurTime()-- draw your HUD stuff hereelseLocalPlayer:SetNetworkedInt("ending",-1) -- we don't want to use it anymoreendend end