Stepping into the world of CS mods...
Hey all :)
How's it going? First of all, thanx to everyone who's actually doing usefull stuff, such as making AMXMod. So here's my story.... i'm a gr 12 student, computer programming god to be, and casual CS player. So, I got bored and decided well, it's time to start modding CS. So I dug some stuff up, started a dedicated server, downloaded AMX Mod, installed, tested, works fine. Next thing I did, read the Scripting Tutorial. Language is Small, damn, never used that one before. Well it looks close to C++, can't be too hard. So I pulled up the WC3 code and cried. I hate include files with a passion, they make it soo friggin hard to learn a new language. (Functions in different files etc.) So, this is my long term plan. Have a server running (currently on home pc for testing purposes 24.150.172.213:27015). Write a mod for it, get a good player base, form a clan, and buy an actual server. Let's start at the beginning.. got the test server, now I need to write the code. If someone will please be my hero and give me a hand, here's what i'm looking for: a) Any tutorial on the small language, i don't think this is too important because it looks VERY close to C++ so I should be ok b) A list of things I can do, built in functions, whatever e.x. Change_Player_Health. There's gotta be hundreds of them. c) Any nicely written and short source code I can study to learn how things work. d) Any hints, tips, words of advice, things to look out for etc. As for the type of mod I want to make, i'm not too sure, i've heard lots of ideas; but i'm looking for one that's unique. Just for the hell of it, i'm thinking of having a Martial Arts type of mod to begin with. I probably won't keep this unless people really like it, it will be an exp based mod. Sorta like WC3, but everything changed. Any suggestions, ideas, comments etc. would be appreciated. And thanks in adance. ******************************** You've been hit by a Smooth Criminal! ******************************** |
|
a) http://www.compuphase.com/small.htm (there is a PDF manual)
b) See the post above you c) Just look at the source for existing plugins in the Plugins forum d) Don't die |
e) don't give up
|
Ok, thanks guys... getting to work now. Wish me luck.
|
:arrow: Plugin Return Types: http://forums.alliedmods.net/showthread.php?t=10493 :!:
|
The first of many nub questions...
OK, So I decided i'd write a simple script that would tell me (in console) who is playing on my server... This is what I wrote: Code:
//Include Files] 17_Players The following 1337 players are playing now: The following 1337 players are playing now: The following 1337 players are playing now: The following 1337 players are playing now: Unknown command: 17_Players So, can someone give me a hand? I know there is a function for this already, but I want to write my own to learn the language... thought this would be nice and easy to start with, but apparently not. I want the output to look like this: The following 1337 players are playing now: id name steam_id id name steam_id id name steam_id id name steam_id id name steam_id (The following 1337 players are playing now: inside the loop was put in for debug purposes, i know it shouldn't be there) Also, I was wondering how anyone could call this command, i tried removing ADMIN_CHAT but i got errors. Thanx |
Code:
|
Thaks for the help... and I hate to sound like an asshole, but have you even tried that code? I copy and pasted it directly and got four errors :( It's really hard trying to learn something when example code doesn't work!
But a few questions about what you have. Code:
get_user_name(player,strPlayer,31)Code:
client_print (0, print_console, "The following 1337 players are playing now:")Also, what are the % things? I found this: %s - String %f - Floating point number %d - Integer but what is %i? Thanx again |
Ok, so nub error on both of our parts. The variable id hadn't been declared :roll: Although, that slightly confuses me, because it should be declared wherever it is assigned a value.
|
| All times are GMT -4. The time now is 09:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.