Code:
PANEL* testPNL = {
	flags = SHOW;
	digits(0,0,6.4,*,1,player.skill1);
	digits(0,10,6.4,*,1,player.skill98);
	digits(0,20,6.4,*,1,dplay_id);
	digits(0,30,6.4,*,1,player.client_id);
}

void fPlayer()
{
	set(my,TRANSLUCENT);
	
	while(my == NULL){wait(1);beep();}
	
	player = my;
	
	if(connection == 1 || connection == 3)
	{
		my.skill1 = 100;
	}
	
	if(connection == 2)
	{
		my.skill = 50;
	}
	
	while(my.skill1 == 50)
	{
		wait(-2);
		if(connection == 2 && my.skill1 == 50)
		{
			my.skill98 = dplay_id;
			send_skill(my.skill98,0);
			beep();
		}
	}

	wait(-0.5);

	reset(my,TRANSLUCENT);

	if(connection == 2)
	{
		my.skill1 = 25;
	}

	while(1)
	{
		wait(1);
		
		if(connection == 2 && my.skill1 == 25)
		{
			my.skill98 = dplay_id;
			send_skill(my.skill98,0);
			while(my.skill1 != 1000)
			{
				wait(1);
			}
		}
		
		if(my.skill98 != 0 && (connection == 1 || connection == 3))
		{
			wait(-1);
			my.skill1 = 1000;
			beep();
			send_skill_id(my.skill98,my.skill1,0);
			beep();
			my.skill98 = 0;
		}
	}
}

void main()
{
	dplay_localfunction = 2;		//run actions on both server and client
	
	while(dplay_status < 2) wait(1);
	
	level_load("valiance.wmb");
	
	while(dplay_status < 6) wait(1);
	
	#ifdef server						//if we defined this game as a server
		while(connection == 0) {wait(1);}	// wait until we have a connection
	#endif

	#ifdef client						//if we defined this game as a client
		while(connection == 0) {wait(1);}	// wait until we have a connection
	#endif
	
	if(connection == 1 || connection == 3)
	{
		player = ent_create("testing.mdl",vector(100,0,0),fPlayer);
	}
}



Okay I made the modification you told me to make and nothing.... Check it out.

Also this line of code:
Code:
while(!my.client_id) wait(1);



just causes an endless loop. If you would have read my code you would of seen that the entity is being created on the server. ALSO WHICH TUTORIAL ARE YOU TALKING ABOUT? I've looked through all of the tutorial and not one of them talks about send_skill_id. All I want to do is send a skill to a specific client. If it's so simple why is there no example out there? Why can't someone just modify the code I've provided to let it do just that??

Last edited by PrenceOfDarkness; 12/13/10 00:55.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.