Raised This Month: $ Target: $400
 0% 

Lead me in the right direction..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
|2eM!x
Member
Join Date: Mar 2005
Old 03-19-2005 , 14:42   Lead me in the right direction..
Reply With Quote #1

I finally figured out how to install this stuff, and the compiler actually works.

Can you just give me some easy stuff to make? Like how to make a tsay type thing, or when admin enters server a tsay pops up, or something that tells your health, or moves your health...anything..
I really appreciate it
|2eM!x is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 03-19-2005 , 14:55  
Reply With Quote #2

Well , you can first start off by reading the tutorials... one on the Amxmodx.org/doc page , and you can search for more here... plus you can read other peoples plugins. Ones that have to do with messages , like the kinds you want to know about and look at their code after you read some basic tutorials , then you can practice and see how they did it.
Peli is offline
Send a message via MSN to Peli
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-19-2005 , 14:55  
Reply With Quote #3

Something simple like this should work for getting a users health in chat:
Code:
#include <amxmodx> public plugin_init() {     // Registers your plugin <Plugin name | Version | Author>     register_plugin("Say Health","1.0","John Doe")     // Registers the command. "say /health" is the command     // and "sayHealth" is the function it's linked to     register_clcmd("say /myhp","sayHealth") } // Make the function public sayHealth(id) {     // Checks if the user is alive     if(!is_user_alive(id)) {         // If he isn't alive then print this message         client_print(id,print_chat,"[AMXX] Your health is 0 =]")     }     // Else.. (if he is alive)     else {         // Get his health         new hp = get_user_health(id)         // Print his health in chat         client_print(id,print_chat,"[AMXX] Your health is %d",hp)     }     return PLUGIN_HANDLED }

Just say /myhp in chat.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
|2eM!x
Member
Join Date: Mar 2005
Old 03-19-2005 , 15:19  
Reply With Quote #4

great so ive read the whole tutorial and learned nothing...
ill look at your code, but can you add comments so i can see what you did? Also could you show me how id whisper another person? something like you type |2eM!x - Hello buddy

and only i would get it?
|2eM!x is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-19-2005 , 15:30  
Reply With Quote #5

I commented it a little bit.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
|2eM!x
Member
Join Date: Mar 2005
Old 03-19-2005 , 23:50  
Reply With Quote #6

thanks for your help, but it doesnt work...
Ive tried typing everything in that code in the chat,(the stuff that applies)

and none work. /myhp does not work as well...please help?
|2eM!x is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-20-2005 , 00:16  
Reply With Quote #7

Woops, my bad.. Try it now..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
|2eM!x
Member
Join Date: Mar 2005
Old 03-20-2005 , 00:29  
Reply With Quote #8

nice man it works. Now if you could point me in the direction of a tsay type thing thatd be nice : )
|2eM!x is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-20-2005 , 00:30  
Reply With Quote #9

Like what?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
|2eM!x
Member
Join Date: Mar 2005
Old 03-20-2005 , 00:41  
Reply With Quote #10

just like in game type //say "text"
something like that..
im sorry if im buggin you by the way, there are no real good tutorials on this stuff here, on vb at least i had stuff to work with.

One last question, how would i get the users health, and make it down to 50, then up to 200, and they cant move until they press space witch kills the timer?

I dunno if thats hard or anything. Maybe i should start off easier
|2eM!x 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 14:16.


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