AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [USEFUL] Function list (update) (https://forums.alliedmods.net/showthread.php?t=58753)

Nican 08-01-2007 19:40

[USEFUL] Function list (update)
 
I have made a basic script listing all Source Mod functions, like AMXX has...

http://sm.nican132.com/

It is a pretty simple script, I programmed everything today, but it might be useful for some people

Change log (August 9, 2007):
-Added that new Code Highligher, with may help people that are starting SM and they are learning from other scripts
-Fixed some bugs in the inc reader, and some other stuff...

pRED* 08-01-2007 19:55

Re: [USEFUL] Function list
 
Awesome how it updates as you type. I know its on BAIL's list to have something like this on the sourcemod website at some point. This could definately save him some time.

If you're willing to share the source code, I reckon you should place a feature request for it on the bugs site and attach your code.

Nican 08-01-2007 20:49

Re: [USEFUL] Function list
 
Hm.. Excuse to ask, but where do you want me to submit it? I did not understand D:

And, It is actually pretty easy to do the auto-refreshing feature
Good place to learn AJAX:
http://w3schools.com/php/php_ajax_suggest.asp

pRED* 08-01-2007 20:53

Re: [USEFUL] Function list
 
submit it as a feature request

Nican 08-02-2007 00:03

Re: [USEFUL] Function list
 
I think I will finish the whole script, and the .inc reader before I submit this unfinished work.

omghax 08-02-2007 04:05

Re: [USEFUL] Function list
 
I love you Nican... :D

Nican 08-02-2007 12:57

Re: [USEFUL] Function list
 
There...
Now it is a little more complete...

A few more modifications and it will be good to go...

BAILOPAN 08-02-2007 17:14

Re: [USEFUL] Function list
 
That is an awesome idea. If you're interested in sharing it with us, we can integrate it into our site and give you credit. Please PM me at your convenience :)

Nican 08-03-2007 01:50

Re: [USEFUL] Function list
 
Ok...

Source code:

http://sm.nican132.com/sm.zip

dubbeh 08-03-2007 13:11

Re: [USEFUL] Function list
 
Thanks for this Nican

really helpful tool

The-Killer 08-04-2007 01:54

Re: [USEFUL] Function list
 
HOLY SHIT I love you nican!

sskillz 08-04-2007 22:03

Re: [USEFUL] Function list
 
Great work!

Nican 08-05-2007 22:25

Re: [USEFUL] Function list
 
I just re-wrote the whole inc-reader

Information should be better now...

Please, if you find any bugs report here

^BuGs^ 08-06-2007 01:26

Re: [USEFUL] Function list
 
A+!

Nican 08-09-2007 00:46

Re: [USEFUL] Function list (update)
 
UPDATE!

I added that new Code Highligher, with may help people that are starting SM and they are learning from other scripts

Fixed some bugs in the inc reader, and some other stuff...

bl4nk 08-09-2007 21:20

Re: [USEFUL] Function list (update)
 
The code highlighter is having some problems with quotes (single and double).

Nican 08-09-2007 21:29

Re: [USEFUL] Function list (update)
 
Can you show me the code you put in there?


EDIT:
Do you think I should add a comment system?

bl4nk 08-10-2007 15:49

Re: [USEFUL] Function list (update)
 
I just pasted the code from my namechanger plugin into it, so:

PHP Code:

/**
* namechanger.sp by bl4nk
* Allows an admin with the 'f' flag to change a player's name.
*
* Thanks to:
*   Extreme_One for requesting the plugin.
*   ferret for his easy-to-copy "client checker" code.
*   theY4Kman for a fix with the single quote bug.
*
* Changelog at http://forums.alliedmods.net/showthread.php?t=58825
*/

#pragma semicolon 1

#include <sourcemod>

#define PLUGIN_VERSION "1.2"

public Plugin:myinfo 
{
    
name "Name Changer",
    
author "bl4nk",
    
description "Change the name of a player",
    
version PLUGIN_VERSION,
    
url "http://forums.alliedmods.net"
};

public 
OnPluginStart()
{
    
LoadTranslations("common.phrases");
    
LoadTranslations("namechanger.phrases");
    
    
CreateConVar("sm_namechanger_version"PLUGIN_VERSION"Name Changer Version"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
RegAdminCmd("sm_name"Command_NameADMFLAG_SLAY"sm_name <user> <name>");
}

public 
Action:Command_Name(clientargs)
{

    if (
args 2)
    {
        
ReplyToCommand(client"[SM] Usage: sm_name <user> <name>");
        return 
Plugin_Handled;
    }

    new 
String:target[64];
    
GetCmdArg(1targetsizeof(target));

    new 
String:name[64];
    
GetCmdArg(2namesizeof(name));

    
ReplaceString(namesizeof(name), " ' ""'");

    new 
clients[2];
    new 
numClients SearchForClients(targetclients2);
    
    if (
numClients == 0)
    {
        
ReplyToCommand(client"[SM] %t""No matching client");
        return 
Plugin_Handled;
    }
    else if (
numClients 1)
    {
        
ReplyToCommand(client"[SM] %t""More than one client matches");
        return 
Plugin_Handled;
    }
    else if (!
CanUserTarget(clientclients[0]))
    {
        
ReplyToCommand(client"[SM] %t""Unable to target");
        return 
Plugin_Handled;
    }
    else if (
IsFakeClient(clients[0]))
    {
        
ReplyToCommand(client"[SM] %t""Cannot target bot");
        return 
Plugin_Handled;
    }

    new 
player clients[0];

    
PrintToChat(player"[SM] %t""Name Changed");
    
ClientCommand(player"name \"%s\""name);

    return 
Plugin_Handled;



Nican 08-10-2007 16:34

Re: [USEFUL] Function list (update)
 
Hmm... Funny
Fixed...

The code worked perfectly on my home server...

Well, sorry for the mix up, now it is fixed...

pRED* 08-10-2007 17:54

Re: [USEFUL] Function list (update)
 
Wow that's crazily awesome. Code highlighter rocks. <3

bl4nk 08-10-2007 20:29

Re: [USEFUL] Function list (update)
 
Works great now, good job.

Nican 08-17-2007 00:39

Re: [USEFUL] Function list (update)
 
Since I am bored and the alliedmodders people are quite busy updating SM ( :D! ), i am going to make a nicer interface...

I am already thinking to add:
- Posting system
- A side bar like Windows Help Files, with will show
- - Search Results
- - Functions related to the one you are looking at
- Colors!

Any more suggestions?
And if you want to help me, just PM me...

dubbeh 08-17-2007 05:06

Re: [USEFUL] Function list (update)
 
Nice nican - got another idea to maybe add an event refrence for quick lookup ;)

Nican 08-18-2007 02:12

Re: [USEFUL] Function list (update)
 
1 Attachment(s)
What do you think of the theme?

I used the colors of the SM website... I think it looks pretty nice...

dubbeh 08-18-2007 06:00

Re: [USEFUL] Function list (update)
 
Looks a lot nicer, gj

Fredd 08-19-2007 08:15

Re: [USEFUL] Function list (update)
 
man im going to use this, it's so usefull like in amxx i can't live without the function page on the site.. ehehe

Nican 08-19-2007 16:49

Re: [USEFUL] Function list (update)
 
Major update :D

What do you guys think

Peoples Army 08-19-2007 17:20

Re: [USEFUL] Function list (update)
 
fukin awsome ! Bailopn should make this a sticky or add it to the sourcemod website or both !

i was just in the middle of looking up a function 15 mins ago , and noticed soemthing weird going on , thought it was broken . now its done and i love it ! gj
:up:

Nican 08-23-2007 00:52

Re: [USEFUL] Function list (update)
 
Another update...

Now people can post their ideas, experiences and bla bla bla in every page

Deception5 08-24-2007 16:53

Re: [USEFUL] Function list (update)
 
Just wanted to say thanks for this, it's been very helpful!

HO!NO! 08-24-2007 23:03

Re: [USEFUL] Function list (update)
 
i try your link http://sm.nican132.com/
and i got this message

Warning: Missing argument 2 for db_query(), called in /home/nican132/public_html/sm/index.php on line 32 and defined in /home/nican132/public_html/forum/Sources/Subs.php on line 238

Warning: Missing argument 3 for db_query(), called in /home/nican132/public_html/sm/index.php on line 32 and defined in /home/nican132/public_html/forum/Sources/Subs.php on line 238

any idea?

Nican 08-24-2007 23:30

Re: [USEFUL] Function list (update)
 
Fixed..

Nican 10-02-2007 23:00

Re: [USEFUL] Function list (update)
 
I updated the SM function list...

Now there is 755 functions

Woohoo!


All times are GMT -4. The time now is 18:49.

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