have problem withe code
doResetScore()
{
self endon ( "disconnect" );
//self endon ( "death" );
self notifyOnPlayerCommand( "reset", "+resetscore" );
for(;;)
{
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!"); break;
wait 1;
}
}
i have double text.The text should be displayed once
doResetScore()
{
self endon ( "disconnect" );
//self endon ( "death" );
self notifyOnPlayerCommand( "reset", "+resetscore" );
for(;;)
{
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!"); break;
wait 1;
}
}
i have double text.The text should be displayed once
(11-07-2013, 15:41)Low_BoB Wrote: have problem withe code
doResetScore()
{
self endon ( "disconnect" );
//self endon ( "death" );
self notifyOnPlayerCommand( "reset", "+resetscore" );
for(;;)
{
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!"); break;
wait 1;
}
}
and i add this code to onPlayerSpawned()
i have double text.The text should be displayed once