AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Pawn tutorial ? (https://forums.alliedmods.net/showthread.php?t=295064)

Str4x3D1x 03-15-2017 10:28

Pawn tutorial ?
 
Sorry...i have no idea how to put title. :/

I need someone to learn me about pawning and making plugins for cs 1.6
If someone has a will and free time, i would be really thankful.
I am new into this, and to be honest, i have no idea how to make a simple plugin. I really need help.

edon1337 03-15-2017 10:54

Re: Pawn tutorial ?
 
You should start by reading :

- Tutorials
- Examples
- Other's codes.

We all had no idea how to make a simple plugin when we was new to this.

You could start by reading Emp's Pawn Tutorial and understanding the variables function.

Str4x3D1x 03-15-2017 10:58

Re: Pawn tutorial ?
 
Is there any type of wiki that contains all functions and what they do ? Like FG has one, i used to do some scripts at FG when i was making it, their wiki made all the things a lot easier and i learned it really quickly... Anything similar to this in here ?

HamletEagle 03-15-2017 11:10

Re: Pawn tutorial ?
 
http://amxmodx.org/api
https://forums.alliedmods.net/forumdisplay.php?f=83
https://wiki.alliedmods.net/Category...ng_(AMX_Mod_X)

edon1337 03-15-2017 11:24

Re: Pawn tutorial ?
 
Wiki's arent that helpful. You can learn more by surfing the includes located in amxmodx/scripting/include folder.

Some forwards from amxmodx.inc :
PHP Code:

/* Function is called just after server activation.
* Good place for configuration loading, commands and cvars registration. */
forward plugin_init();

/* Called when the plugin is paused. */
forward plugin_pause();

/* Called when the plugin is unpaused. */
forward plugin_unpause();

/* Called when the mod tries to change the map. */
forward server_changelevel(map[]);

/* Function is called when all plugin_init from plugins
* were called, so all commmands and cvars should be already registered. */
forward plugin_cfg();

/* Function called before plugin unloading (server deactivation) */
forward plugin_end();

/* Called on log message. */
forward plugin_log();

/* Use here model_precache() and sound_precache() functions. */
forward plugin_precache();

/* Whenever player info is changed, this function is called. */
forward client_infochanged(id);

/* Called on client connection. */
forward client_connect(id);

/* Called when client gets valid STEAM id (usually
* between client_connect() and client_putinserver()). */
forward client_authorized(id);

/* Called when client is disconnecting from server. */
forward client_disconnect(id);

/* Called when client is sending command. */
forward client_command(id);

/* Called when client is entering to a game. */
forward client_putinserver(id); 

By the way:

Native - A function that executes another function (Change users speed, health, model, damage etc..)
Forward - A function that gets called on a specific event (When you move, take damage, die etc..)

klippy 03-15-2017 11:33

Re: Pawn tutorial ?
 
Quote:

Originally Posted by edon1337 (Post 2503833)
Wiki's arent that helpful. You can learn more by surfing the includes located in amxmodx/scripting/include folder.

But the documentation on http://amxmodx.org/api is pulled right from those include files.

CreativeTR 03-15-2017 11:58

Re: Pawn tutorial ?
 
Quote:

Originally Posted by Str4x3D1x (Post 2503819)
Sorry...i have no idea how to put title. :/

I need someone to learn me about pawning and making plugins for cs 1.6
If someone has a will and free time, i would be really thankful.
I am new into this, and to be honest, i have no idea how to make a simple plugin. I really need help.

if you know any software language (etc. c#) or anything about functions and definations, you can learn quickly

CrazY. 03-16-2017 19:39

Re: Pawn tutorial ?
 
First you need to know what you want to do, for later study. There's no point in learning something that will not use in any way. All the codes of this forum are open, try to study them, extract only the required. Take a look also includes several commands are with comments explaining what it's for, etc. Good luck!


All times are GMT -4. The time now is 17:53.

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