Originally Posted By: TheLiam
Code:
action coin()
{
	while(me)
	{
		c_scan(my.x,my.pan,vector(360,360,75),IGNORE_ME);
		if(you == player)
		{
			coins += 1;
			ent_remove(me);
		}
		wait(1);
	}
}



Just take this as action an add it to the coin, coins is the variable vor the coins that the player have, c_scan scans for the player, type in the script of your player
Code:
player = me;



For further questions ask laugh
I wouldn't use c_scan for each coin, it'd be better on FPS using
vec_dist(my.x, player.x)
and also in the action have a
while(!player){wait(1);}
otherwise you'll be having a few errors along the way