name	PLives
health	1
mp	1
type	item
subject_to_gravity 0


anim idle
@script
    void self = getlocalvar("self");
    int Life = getentityproperty(self,"health");
    int MP = getentityproperty(self,"mp");

    if(frame==1){
      changeplayerproperty(0, "lives", Life);
      changeplayerproperty(0, "credits", MP);
      changeplayerproperty(1, "lives", Life);
      changeplayerproperty(1, "credits", MP);

      killentity(self); //Suicide!
    }
@end_script
	loop	1
	delay	5
	offset	1 1
	frame	data/chars/misc/empty.gif
	frame	data/chars/misc/empty.gif
