Raised This Month: $51 Target: $400
 12% 

Where TO Start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yoloro0
Junior Member
Join Date: Apr 2020
Location: Universe
Old 04-30-2020 , 14:01   Where TO Start
Reply With Quote #1

I'm new in SourceMod and I don't know where can I start learning to code, I have some basic knowledge in programming (javascript). just need to know where to start.
yoloro0 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-30-2020 , 14:09   Re: Where TO Start
Reply With Quote #2

https://wiki.alliedmods.net/Category...eMod_Scripting

here your first code

PHP Code:


public void OnPluginStart()
{
    
RegConsoleCmd("sm_test"test);
}

public 
Action test(int clientint args)
{

    if(
client != 0)
    {
        
PrintToChatAll("(client index %i) (client #userid %i) client name %N"clientGetClientUserId(client), client);
    }
    else
    {
        
PrintToServer("(client index %i) Command used from server console"client);
    }


    return 
Plugin_Handled;

__________________
Do not Private Message @me
Bacardi is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-02-2020 , 14:39   Re: Where TO Start
Reply With Quote #3

[TUT] SourcePawn Scripting - Tips, Basics to Advanced
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:30.


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