Raised This Month: $51 Target: $400
 12% 

Kill Distance


Post New Thread Reply   
 
Thread Tools Display Modes
diamond-optic
Veteran Member
Join Date: May 2005
Old 08-21-2005 , 00:27  
Reply With Quote #11

maybe I missed it.. but does this show the distance right after you kill them

or is it like the stats already in amxx where it shows the distance after youve died...


if it does it right when you kill them, thats tight.. but I'll have to wait till tomorrow to try it out..
__________________
diamond-optic is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-21-2005 , 08:07  
Reply With Quote #12

right after you kill someone
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-21-2005 , 08:58  
Reply With Quote #13

Code:
show_hudmessage( id, "%s have killed %s^nfrom a distance of %d feet",name, name2,floatround( distance/modFeet ) )
Wouldn't it make more sense if you put "You" instead of your name there? After all, you ARE only displaying it to the killer (you).

Also, for the cvar, you should use a switch statement like so:
Code:
switch(get_cvar_num("my_cvar")) {     case 0:     {         // ...     }     case 1:     {         // ...     } }
__________________
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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-21-2005 , 10:15  
Reply With Quote #14

OMG, I never knew you could make a switch case statement like that. I thought it had to be like this:

Code:
switch (var) {      case '1' : server_cmd("quit")      case '2' : client_cmd(0,"kill")      default  : client_cmd(0,"quit") }

Oh well I learned something today.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
diamond-optic
Veteran Member
Join Date: May 2005
Old 08-21-2005 , 14:14  
Reply With Quote #15

alright sweet.. thanks.. I'll check it out today if I get a chance before work
__________________
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 08-21-2005 , 15:54  
Reply With Quote #16

is there anyway to make it only display to the person that made the kill...?

cuase having it covering up the normal chat everytime someone gets killed its too much lol..
__________________
diamond-optic is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 09-15-2005 , 15:33  
Reply With Quote #17

next version i will make a cvar for this
__________________
- Bye bye!
nightscreem is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 09-16-2005 , 14:36  
Reply With Quote #18

*UPDATE*
Added distance_all cvar if 1 it will display the distance text to everyone if 0 only to the killer
__________________
- Bye bye!
nightscreem is offline
Vegetaz
Member
Join Date: Oct 2006
Old 01-15-2007 , 11:17   Re: Kill Distance
Reply With Quote #19

screenshot says everything for me..
[img]http://img77.**************/img77/8053/looooooolnc8.jpg[/img]
Vegetaz is offline
Old 01-15-2007, 15:26
diamond-optic
This message has been deleted by diamond-optic.
Impaler
Member
Join Date: Jun 2007
Location: Twin Peaks, Netherealm
Old 06-11-2007 , 18:31   Re: Kill Distance
Reply With Quote #20

LOL, it would be nicer is it was displayed somewhere in the middle of the screen.
Impaler 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 08:06.


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