AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Will this show everyone? (https://forums.alliedmods.net/showthread.php?t=22739)

Drak 01-02-2006 22:33

Will this show everyone?
 
I guess ill post it here since i cant test with only one person.

Code:
register_concmd("showbook", "book") } public book(id) {     new location[]="book.txt"     show_motd(id,location,"Black Book")     return PLUGIN_HANDLED }

Will this show everyone book.txt on the server? Or will it only show the person who does the command?

SubFive 01-02-2006 22:36

Until someone uses the command nothing will happen.

Drak 01-02-2006 22:37

Thank you

v3x 01-02-2006 22:37

To show it to everyone:
Code:
show_motd(0,location,"Black Book")

Note: You don't need 'id' in the function header for this.


All times are GMT -4. The time now is 16:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.