More help learning
Hello , I am very close to becoming good at making plugins. I just need you guys to maybe tell me a few things that I should know because I'm still a little confused. Maybe you can ask me to make some plugins , make sure they are easy :) And give me tips if possible. I can understand other peoples plugins now , before I was so confused but now it is fun. :)
|
Tips? It's hard to give little tips because a lot of people have thier own style... But I suppose the normal ones are:
1. Write structured using tabs(Or 4 spaces for all the hoes out there) 2. Write lots of comments 3. Don't only code to get women... I know it helps a lot, but you need love for the code Anyhow if you want an easy plugin then try to remake one thats already out, then you'll have source to refer to |
Quote:
|
nice one : ) .......... plugins are FUn!
|
Quote:
If programing would get me babes wouldnt I be off getting laid right now instead of posting this message? :wink: |
Wow lol. This has become a fun fest.
|
i know stick to the topic
peli.... make a plugin that lets you say somthing to a certain player .... ex. amx_say <message> <player> (there already is a psay but try to "remake" it) |
Quote:
|
yeah lol ive made two plugins and published them already
someone can learn alot in just a few days! |
Quote:
|
Quality over quantity
|
Quote:
|
i guess your right, but i havent really "rushed" at all ive just been working on it alot latley just cuz i think its fun. Im not just doing it to make alot, its more of a pleasure to me to know im making plugins. (like a week ago i knew not one thing about programing)
|
Quote:
|
yeah i know what you mean but really spamming doesnt really hurt anyone does it?
|
Quote:
No I wasnt wearing red today, I am just dieing :P |
Spamming does hurt everyone... You can't tell yet because it's only on a small scale... But anyone moving from AMX knows that if it gets out of hand then bad things happen
|
well what red calls spamming i dont think is spamming...
he tells me to quit spamming every time i post a small msg |
dont bother him. he just learned what double posting is.
|
Small messages aren't spam if they really have a message... It is spam if you make a post of "Oh," or "Cool"
If you want to make the same point as saying "Oh," or "Cool," then drag it out: "Oh wow that helped me a lot. I understand now, thanks. I'll tell you if I need anymore help" "Thats pretty cool, I'll have to show that to me friends. Where do you find this stuff?!" EDIT: On topic, please, BTW |
Okay , I will try to do what you said , your name is too complicated so I'm just going to call you "Toxic". I will need help on what I need to do though , I am very confused :(
|
Give us a place to start helping you
|
Any sugguestions on an easy plugin to make? I have never made them so I wouldn't know , your advice please then you guys can help me and explain what everything does.
|
ohhh i thought you made some before...
make one that says hi everyone when you type a command in the console |
Quote:
|
Can you help me a bit more. I think I know how to do it. Would it be like this ?
Code:
Okay , things I didn't understand or know : 1. How would I write the "reset_hud" event? I just guessed sorry... 2. Do I just "set_user_health(500)" ? Or do I have to do more? Okay , if you can please help me... |
Quote:
Code:
I havent tested it but I think it should work :D |
yeah
Yeah basically but, looks like your no-clip plugin :P
hehe |
Re: yeah
Quote:
I like how the no-clip plugin was coded and I make alot of plugins like it. It gets the job done :D |
Quote:
if u read what he asked you would noe what he wanted. 1. you need to register ResetHUD event 2. Yes you need to pass an id parameter. set_user_health(id,500) Code:
|
That is far too complex for him...
Code:
EDIT: The "Far too complicated" was for RED |
word. way to comples. my example or ice's is much better. no need to show off :wink:
|
Quote:
I guess I have been coding so long that I am blurred on what is or isnt complicated to a new comer. Sorry but my way is something to look at in the terms of learning new structures. |
Try and analyze the code line-by-line of mine or Freecode's... Tell us what parts you don't understand is happening... Don't attempt to ask us to get into detail... A lot of the stuff when you begin will be "It works because it does, live with it or don't use it"
|
lol
Looks Good the second one by ice is easier and what i wprolly would have done lol
|
Code:
public cmdSetHealth(id,level,cid) { Code:
new target[50]; |
You guys over do it..
Code:
-__- |
Nice Freecode
Couldn't you also do this?:
Code:
|
Wow , good job guys , both of them were nice. I understood everything but one line on Qwerty's post. What does this mean and what does it do?
Code:
set_user_health(id,get_cvar_num("amx_healthstart")) |
Quote:
|
| All times are GMT -4. The time now is 10:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.