04-10-2013, 20:35
(This post was last modified: 04-12-2013, 15:38 by CheGuevara.)
Hi, you don't know the code Reset Score Player !!!
onPlayerSpawned()
self thread doResetScore();
PHP Code:
doResetScore()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "N", "+actionslot 1" );
while(true)
{
self waittill("N");
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 iPrintlnBold("TEXT");
wait 1;
}
}
self thread doResetScore();