FreeWall 3 Odesláno: 24. Srpen, 2008 Share Odesláno: 24. Srpen, 2008 Možná jste viděli v exisu rcon příkazy přez consoli ( eca_help atp.. ) a všimli si pěkné tabulky, teď vám ukážu jak na ní : nahoru do modu : stock duplicatesymbol(symbol,count) { new tempst[2],string[256]; format(tempst,128,"%c",symbol); for (new i=0;istrins(string,tempst,strlen(string),strlen(string)+1+strlen(tempst)); } return string; } public OnRconCommand(cmd[]) { if(strcmp(cmd, "server", true)==0){ printf("\n%c%s%c",218,duplicatesymbol(196,58),191); printf("%c Server %c",179,179); printf("%c On-line hracu %3d %c",179,*neco*,179); printf("%c Administratoru %3d %c",179,*neco*,179); printf("%c V.I.P %3d %c",179,*neco*,179); printf("%c Cars %3d %c",179,*neco*,179); printf("%c%s%c \n \n",192,duplicatesymbol(196,58),217); } return 1; } Popis: printf("%c TEXT_VLASTNI %c",179,*neco*,179); - %c = kus tabulky( čára svisle ) , 179 = definice %c neboli druh tabulky / čáry printf("\n%c%s%c",218,duplicatesymbol(196,58),191); - začátek tabulky ( čára vodorovně, definice podobná jako u prvního popisu printf("%c%s%c \n \n",192,duplicatesymbol(196,58),217); - konec tabulky ( ---------------------||----------------------- ) Drobnost: když máte např. : printf("%c Cars %3d %c",179,*vehicles()*,179); - %3d = pokud budete mít jen %d a na serveru budete mít do 9 aut tabulka se nezmění, pokud např 25 nebo 250 tak se vám tabulka poposune doprava o 3 místa, %3d - toto tomu zabrání, tabulka se neposune a čísla se posunou jakoby doleva Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now