Making a map, but i need some code that say, when you press the button it says "<person> cleared the scores!" Really much needed, a lot of credit will be given.
Thanks, ~Dev.
Moderator: Forum Guards
Longc[A]t wrote:I still think Dae is a russian spambot.
~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.
ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
class ScoreClearSwitch expands Switch2;
function Frob(Actor Frobber, Inventory frobWith)
{
local DeusExPlayer Player;
Broadcastmessage(DeusExPlayer(frobber).playerreplicationinfo.playername$" cleared the scores!");
foreach allactors (class'Deusexplayer',player)
{
Player.PlayerReplicationInfo.Score=0;
Player.PlayerReplicationInfo.Deaths=0;
Player.PlayerReplicationInfo.Streak=0;
}
}
defaultproperties
{
Itemname="Click here to clear the scoreboard"
}