News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMA (Pawn compiler)

Started by Dark-Skript, April 04, 2010, 08:15:50 AM

Previous topic - Next topic

Dark-Skript

Well. I have only seen this on Vbulletin. And i hate vbulletin and would recomend smf over it anyday. But basically the source files are sma scripts and the outcome is amxx

Here is an online compiler: http://www.amxmodx.org/webcompiler.cgi [nofollow]
Here is an example of a forum that has a plugin to auto compile uploaded sma files: http://forums.alliedmods.net/showthread.php?t=120621 [nofollow]

When you click get plugin: http://www.amxmodx.org/plcompiler_vb.cgi?file_id=62631 [nofollow]
When you click get source: http://forums.alliedmods.net/attachment.php?attachmentid=62631&d=1269969484 [nofollow]

Basically what is happening is only the sma file is being uploaded to server and then when you click get plugin the data is being sent to  http://www.amxmodx.org/plcompiler_vb.cgi [nofollow]? but when you click get source you get the sma (originally uploaded file). I have no experience of coding php but i can pawn code a little. I need this for my community and would very much appreciate a plugin like this for smf.
All this is plugin would do is. Redirect to another server which compiles and then gets the file from that server.


More info AMX Mod X is a versatile Half-Life metamod plugin which is targetted toward server administration.
It has a wide array of scripting capabilities so people can write "plugins", or files which add on to a mod's functionality.
Plugins can take form in administrative services (adding new admin commands), statistics generation (StatsX), fun additions (godmode, etc), gameplay changes (WC3, CSDM), and much, much more!
You can also write modules to expand the functionality of AMX Mod X and add to the scripting language.

AMX Mod X and AMX Mod
AMX Mod X was originally based on AMX Mod, a similar Half-Life modification by OLO. However, AMX Mod began to slip into poor project policies (lack of public input, no open source enforcement, no central source code maintained, and much more).
Due to the dead appearance of the project as all maintainers had disappeared into oblivion, the AMX Mod X project was started.
Since then, the AMX Mod X project has come a long way. Nearly every portion of AMX Mod has been either rewritten from the ground up, cleaned up, or changed to work in a new system.
AMX Mod X is not AMX Mod. And better yet, it's almost fully backward compatible.

Pawn is an embeddable, (almost) typeless, easy to use scripting language that is compiled for a virtual machine. AMX Mod X  uses Pawn to route scripting functions to the Half-Life engine, using the Pawn Virtual Machine and Metamod (Pawn is written in C, Metamod is written in C++). While you write Pawn scripts in a text editor, the scripts must be compiled with a "Compiler", which produces a binary for AMX Mod X. The AMX Mod X team distributes a specially modified Pawn compiler.

Programming scripts in Pawn is relatively easy, and does not have concepts in other languages that are unnecessary for general use, such as pointers, vectors, structs, classes, allocation, et cetera.

Feel free to read: www.wiki.alliedmods.net/Pawn_Tutorial#Introduction [nofollow]

Advertisement: