AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   {Off Topic}: What is a good source for learning small? (https://forums.alliedmods.net/showthread.php?t=2850)

StealthMode 06-18-2004 20:14

{Off Topic}: What is a good source for learning small?
 
:idea:

I am tired of sitting on my butt and just editing plugins, etc. I want to learn the language that is used, so I can get a more thorough understanding of it, and possibly be of some use to the community.

Any and all help in this matter is greatly appreciated.

kingpin 06-18-2004 21:02

this question gets answered every week try the search feature once in a while.

Peli 06-18-2004 21:11

Search : Tutorial , and you'll find a lot of stuff.

StealthMode 06-19-2004 00:00

Sorry for my ignorance. I should have thought of that since I point it out to people on the steam forums so much. Again my apologies.

Peli 06-19-2004 00:49

No problem.

Dygear 06-19-2004 22:42

By looking at code.

Code:
/******************************************************************************** * Plugin name: Log stuff * Made by: Dygear * Modules required: Engine * Warranties : This file is provided as is (no warranties). ********************************************************************************/ //These are include files, they take informaion from // the include forlder and to find the syntax of that command. // #include <%name%> will read from %name%.inc. For example, // if you include amxmodx then it will read from amxmodx.inc #include <amxmodx> #include <engine> public plugin_init() {   //Function is called just after server activation.   // This only registers the plugin with the server.   register_plugin("ServerUpTime","0.6a","Dygear") } public client_connect(id) {   //This is called when the client connects.   // This is going to log : Username and authid also   // get the Hour Minute and Second that the client connects.   new dyname[32], dyauthid[32], dyhours[6], dymins[6], dysecs[6]   get_user_name(id,dyname,31)   get_user_authid(id,dyauthid,31)   get_time("%H",dyhours,5)   get_time("%M",dymins,5)   get_time("%S",dysecs,5)   log_amx("Client : %s(%s) Connected on %H:%M:%S",dyname,dyauthid,dyhours,dymins,dysecs)   return PLUGIN_HANDLED } public plugin_end() {   //Function called before plugin unloading (server deactivation)   // The float dy_time get the time the server has been up SSS.SSSS   // This will not log the time if the server crashes.   new Float:dy_time = halflife_time();   log_amx("Server ended at : %f", dy_time);   return PLUGIN_HANDLED }

Peli 06-19-2004 22:46

Very nice Dygear , that will help.

Dygear 06-29-2004 22:47

Yes I am a noob at scripting but I am very good at explaining stuff. :D.


All times are GMT -4. The time now is 14:48.

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