0 Members and 1 Guest are viewing this topic.
procedure OnPlayerSpeak(ID: Byte; Text: string);beginif Text = '/rules' then begin WriteConsole(ID, '#*********** Server Rules***********#', $3CB371); WriteConsole(ID, 'NO verbal attacks, NO racism, NO whining', $F0E68C); WriteConsole(ID, 'NO spamming or repeating of same taunt', $3CB371); WriteConsole(ID, 'NO default taunts, NO capital lines only', $F0E68C); WriteConsole(ID, 'respect admins and their decisions', $F0E68C); end;
I'm just wondering if someone would be so kind and make me a script that when server admin types "/commands" that it will show admin only commands like:Login System commands (create, login, logout etc.)
LogInSystem provides a help list with all commands by default. Just enter /help in game and a list with all available commands and a short description to each will be displayed.
Quote from: Markus Quär on January 21, 2009, 10:56:57 amLogInSystem provides a help list with all commands by default. Just enter /help in game and a list with all available commands and a short description to each will be displayed.Yeah but I want a script that will show admin commands + login system and other commands as well
@Bonecrusher: You need OnPlayerCommand
procedure OnPlayerCommand(ID: Byte; Text: string);beginif Text = '/rules' then begin WriteConsole(ID, '#*********** Server Rules***********#', $3CB371); WriteConsole(ID, 'NO verbal attacks, NO racism, NO whining', $F0E68C); WriteConsole(ID, 'NO spamming or repeating of same taunt', $3CB371); WriteConsole(ID, 'NO default taunts, NO capital lines only', $F0E68C); WriteConsole(ID, 'respect admins and their decisions', $F0E68C); end;
huh,i havent know that there's sth like 'create the box'. I will use it now thx Markus
Done. Modify or add commands & rules by altering the specific text file. The commands and rules list will be aligned by the script, so no scripting knowledge is required By the way, I implemented my default LogInSystem commands list, I hope you don't mind.
the bad thing is u cannot color each line with diffrent colour
Thanks whole bunch, no I don't mind.Can be "/rules" used by any player and if "/adminhelp" is the code to show commands?