Well then, Ekteds and Nexus are right. You can try to sendPublic("*scorereset"); to use p->score.losses, and since this only resets those in the arena, lock it, and make sure to only check those in-ships. If a spectator enters with 30deaths he may be royaly screwed. Also, if you just want a death count for this one plugin, use player tags. ITs already in merv plugins, and they reset as players leave and such, to prevent it from getting too big. set_tag(Player *p, int TagNumber, int Value);
//stores info to a player tag for retrieval.
get_tag(Player *p, int TagNUmber);
//Retruns the value of Value for the tag number. If the player doesnt exist, there is no tag !@#$%^&*igned that number, or there is no value stored, it returns 0 ie: EVENT_PlayerDeath
{
set_tag(p,1,get_tag(p,1)+1);
if(get_tag(p,1)>=5)
{
.....
//eliminated.
}
};
break;