Raised This Month: $ Target: $400
 0% 

Pawn tutorial ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-15-2017 , 11:24   Re: Pawn tutorial ?
Reply With Quote #1

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..)
__________________
edon1337 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-15-2017 , 11:33   Re: Pawn tutorial ?
Reply With Quote #2

Quote:
Originally Posted by edon1337 View Post
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.

Last edited by klippy; 03-15-2017 at 11:33.
klippy 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 17:53.


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