All pastes #577171 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-19 20:11 UTC
rendered paste body
void FunctionAdd_addfriend()  //Friend Stuff
{
	int id = cmd.argI(1);
	vPlayers[id].onShitList = true;
}

void FunctionAdd_deletefriend()
{
	int id = cmd.argI(1);
	vPlayers[id].onShitList = false;
}

void FunctionAdd_playerlist()
{
	for(int i=0;i<32;i++)
	{ 
		if(vPlayers[i].getName()[0]!='\\')
		{ 
			char tmp[20];
			bool idfound = gEngfuncs.GetPlayerUniqueID(i,tmp);
			char* id = idfound?tmp:"notfound";
			Con_Echo("#%d: %s ",i,vPlayers[i].getName(),id); 
		}
	}
}