colored pj
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4298 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -72,6 +72,14 @@ char *colorping(int ping)
|
||||
return cping;
|
||||
}
|
||||
|
||||
char *colorpj(int pj)
|
||||
{
|
||||
static string cpj;
|
||||
if(multiplayer(false)) s_sprintf(cpj)("\fs\f%d%d\fr", pj <= 90 ? 0 : pj <= 170 ? 2 : 3, pj);
|
||||
else s_sprintf(cpj)("%d", pj);
|
||||
return cpj;
|
||||
}
|
||||
|
||||
void newname(const char *name)
|
||||
{
|
||||
if(name[0])
|
||||
|
||||
Reference in New Issue
Block a user