Welcome v1.0
IntroductionBasically all this does, is welcomes users to your server.ConVarssm_Join_Message - Sets the message to display when users join the server.To Do
- Add support for colours.
- Taking Suggestions on what to add/do.
RequirementsSourceMod v1.4.3
InstallationCopy the .SMX file into your plugins directory (./addons/sourcemod/plugins/)
SourceI'm providing the source so users can tell me what needs to be fixed/what can be done better.
Spoiler Code: #include
new Handle:sm_Join_Message = INVALID_HANDLE;public Plugin:myinfo ={ name = "Welcome", author = "Hunter S. Thompson", description = "My First Plugin - Displays a welcome message when the user joins.", version = "1.0.0.0", url = "http://forums.alliedmods.net/showthread.php?t=187975"};public OnPluginStart(){ sm_Join_Message = CreateConVar("sm_join_message", "Welcome %N, to Conflagration Deathrun!", "Default Join Message", FCVAR_NOTIFY) AutoExecConfig(true, "onJoin")}public OnClientPostAdminCheck(client){ new String:name[MAX_NAME_LENGTH] new String:Message[128] GetConVarString(sm_Join_Message, Message, sizeof(Message)) GetClientName(client, name, sizeof(name)) PrintToChat(client, Message, client); } Credits- TheTwistedPanda
- PowerLord
- Mitchell
This is my first plugin, so please feel free to scrutinize, and tell me what needs to be done/what can be done better. Attached Files Get Plugin or Get Source (Welcome.sp - 774 Bytes)
Wyświetl pełny artykuł