![]() ![]() 2nd Parameter - Message type (print_chat - print in chat | print_console - in console | print_center - like terrorists win) If set to "0", the msg will print out to everyone online 1st Parameter - Index (If set to "id". the msg will print out to the player who typed /hello ![]() Public cmd_hello ( id ) // This is the function that is called when a player types /hello in chatĬlient_print ( id, print_chat, " Hello World!!!" ) // This prints out the message 2nd Parameter - Function called by the command Register_clcmd ( "say /hello", "cmd_hello" ) // We register a command to call the function that prints out the msg Register_plugin ( "Hello World", "1.0", "redivcram" ) // We must register the plugin, there are 3 parameters Public plugin_init () // This function is called when the server starts #include // We must include this library everywhere
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |