AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   where do u learn to script? (https://forums.alliedmods.net/showthread.php?t=1025)

KoTeX 04-10-2004 22:22

where do u learn to script?
 
where do u learn to script? i have this kool idea 4 a plugin i wanna make!

KoTeX 04-10-2004 23:33

cmon tell me plz

Peli 04-10-2004 23:35

You don't learn to script from reading one thing and just saying "Oh I know how to script now!" and go and make a Warcraft 3 plugin lol. You have to learn your own way , just because someone did something and learned doesn't mean it will work for you. You could try reading the Scripting Tutorial made by Bail. Here it is -> Scripting Tutorial

QwertyAccess 04-10-2004 23:39

Learning small can be done in 2 days Mastering small can take much longer.. Its good to start with a simple plugin like just putting a small text on the screen. Just really curious how old are you?

KoTeX 04-10-2004 23:40

just turned 13 today

IceMouse[WrG] 04-10-2004 23:52

Happy birthday... While BAILOPAN's tutorial is good... He doesn't explain certain things well enough, I feel

Its still good if you can understand it

KoTeX 04-10-2004 23:56

yea thx 4 saying taht no 1 has said happ b day to me today :(

IceMouse[WrG] 04-11-2004 00:05

You should have mentioned it in Off-Topic

KoTeX 04-11-2004 00:15

ill keep that in mind

QwertyAccess 04-11-2004 00:17

Don't forget posts dont count to your post count number and rank in off topic if your thinking bout that. And Happy Birthday...

Ph3oNix 04-11-2004 09:39

I also want to learn to script. Im 16 and am doing A Level Computing so i know a few of the basics to programming.

Curious..whats different in AMX X to AMX? I have AMX and all seems to be ok.

Anyway, i want to learn to script. Wondered if anybody had any suggestions to how to get started? Easy plugin tasks, etc?

xeroblood 04-11-2004 11:06

Reading the documentation to the "Small" language by Compuphase helped me long ago.. Look for "The Language" under Documentation here..

KoTeX 04-11-2004 12:44

hey this is the first time querty has been nice
8)

and for this link it is really useful :D

QwertyAccess 04-11-2004 12:57

Even i Fear the small documentation :o

KoTeX 04-11-2004 13:29

do u have to post every where i post? :(

IceMouse[WrG] 04-11-2004 14:56

We post wherever theres a topic

Peli 04-11-2004 14:59

Any advice on what sections to read in the small manual? Its more than one hundred pages :( I can't sit there for hours :(

QwertyAccess 04-11-2004 14:59

we post whenever there is a useless post.
just reading the small doc wont teach ya how to amx mod x code but its a good manual.

KoTeX 04-11-2004 15:06

ok then what will help a noob like me learn how to script?

QwertyAccess 04-11-2004 15:29

by not being a noob.

KoTeX 04-11-2004 15:33

no seriously man how?

IceMouse[WrG] 04-11-2004 16:44

When you make a serious effort to learn

KoTeX 04-11-2004 23:08

i wanna learn bad ! gimme some links

QwertyAccess 04-11-2004 23:46

here is some useful links that will certainly be the place youll find help...
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com
www.google.com

INFaMouS 04-12-2004 04:33

Quote:

Originally Posted by KoTeX
just turned 13 today

Lol happy b-day dude. I remember my 13th b-day because my dad woke me up and said, "Happy birthday. This does NOT mean you can watch porn." Nice to see that ppl are trying to learn small at younger ages now. I'm almost 16 n i'm trying to learn this shyt.
Quote:

Originally Posted by IceMouse
You should have mentioned it in Off-Topic

Lol, amx off-topic forums are riddled with my idiotic threads. Thank god for them :) What is your favorite food...Fave Music...How Old are you...I'm leaving...I'm baack....Useless thread...Lol

QwertyAccess 04-12-2004 04:45

which is why exactly posts dont count to your post count in off topic..

INFaMouS 04-12-2004 04:50

That's smart...My OVERALL post count is somewher around 300-400

xeroblood 04-12-2004 09:06

The link I posted for Small is a good link; read "The Language" it should at least teach you proper syntax/structure of Small.. If you learn/understand the language, you can then read the Include files that come with AMXX, familiarize yourself with the functions/natives used in AMXX.. After that, looking at other peoples code should help, if not: get the HLSDK and study more!! If you really wanna learn, don't learn half of it, learn it all !! :D

Dygear 04-12-2004 10:10

KoTeX, happy birthday.

Quote:

Originally Posted by INFaMouS
I remember my 13th b-day because my dad woke me up and said, "Happy birthday. This does NOT mean you can watch porn."

LMAO.

KoTeX 04-12-2004 11:04

lol thx but can any1 give me links to sites that teach you how to script? :D

Neo 04-13-2004 18:01

here is not real way to "teach" someone, you learn by watching

i learned by messing around with test plugins and stuff and by looking at other peoples plugins and code examples. The best way to learn is by teaching yourself.

you take your idea and try to make it, getting help along the way

overwall post count? as in on AMX and here? that would make mine almost 2000 lol

QwertyAccess 04-13-2004 21:30

If you go to the plugin forums and study a plugin for a while you should be able to get familiar with small first by looking at some plugins and knowing how they work.

KoTeX 04-15-2004 19:39

alright gimme some simple plugins plz 8)

Peli 04-15-2004 20:01

You can't ask him to make you a plugin how are you going to learn? I learned by first thinking of an idea of a plugin then I thought "are there any plugins like mine?" Then I searched!!! And I found alot so I looked at the code and if I was confused about anything I would ask them and I did , they helped me and I many small plugins on my own I just don't post them yet , only when they are really good :)

KoTeX 04-15-2004 23:54

not askin i just wanna see a simple plugins CODE :(

QwertyAccess 04-16-2004 02:35

Do you understand this simple plugin?
Code:

#include <amxmod>

public start_health(id) {
        set_user_health(id,get_cvar_num("amx_start_health"))
        return PLUGIN_CONTINUE
}

public plugin_init() {
        register_plugin("Start Health","1.0","QwertyAccess")
        register_event("ResetHUD", "start_health", "b")
        register_cvar("amx_start_health","100")
        return PLUGIN_CONTINUE
}


Dygear 04-17-2004 03:42

Quote:

Originally Posted by QwertyAccess
Do you understand this simple plugin?
Code:

#include <amxmod>

public start_health(id) {
        set_user_health(id,get_cvar_num("amx_start_health"))
        return PLUGIN_CONTINUE
}

public plugin_init() {
        register_plugin("Start Health","1.0","QwertyAccess")
        register_event("ResetHUD", "start_health", "b")
        register_cvar("amx_start_health","100")
        return PLUGIN_CONTINUE
}


Qustion:

Code:

register_cvar("amx_start_health","100")
why did you do that, to tell it that by defult amx_start_health is 100.

QwertyAccess 04-17-2004 04:49

well 100 is a default health number for most mods... 100%

Viki 04-17-2004 14:10

I'm writing tutorial these days... So, when I finish it, you'le bee the first who should find out. :D

Here is an example of an bad plugin, tell all the mistake you see (it was mine second plugin, really bad try :lol: ):
Code:

#include <amxmod>
#include <amxmisc>
#include <Vexd_utilities>

public m_change()

{

cs_SetModel(index, fool.mdl[])

}

public PLUGIN_CONTINUE

public plugin_precache()

{

model_precache(models/player/fools/fool.mdl)

}

public PLUGIN_CONTINUE

public plugin_init()

{

register_plugin("Model change","bad version","Viki")
register_clcmd("model_change","m_change")

}

public PLUGIN_CONTINUE

BTW, it's for norm AMX... :twisted:

QwertyAccess 04-17-2004 14:46

those natives wouldnt work anless u rename em to amx mod x version of those natives :P


All times are GMT -4. The time now is 13:21.

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