Made class menus and a class data dump console command.

This commit is contained in:
richard
2009-04-15 23:40:45 +02:00
parent b2d4b9b4ad
commit b481546dc4
14 changed files with 445 additions and 94 deletions

View File

@ -183,6 +183,23 @@ stock ZR_ReplyToCommand(client, any:...)
ReplyToCommand(client, phrase);
}
/**
* Adds support for printing long strings.
*/
stock ZR_ReplyToCommandLong(client, const String:text[])
{
decl String:partbuffer[1000];
new pos;
new cellswritten = 1; // Initialize for the loop.
while (cellswritten)
{
cellswritten = strcopy(partbuffer, sizeof(partbuffer), text[pos]);
ReplyToCommand(client, partbuffer);
pos += cellswritten;
}
}
stock ZR_PrintToAdminChat(String:message[])
{
decl String:buffer[256];