Raised This Month: $ Target: $400
 0% 

hitting question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 11-12-2005 , 21:09  
Reply With Quote #1

I suck at explaining things, so try this:
Code:
#include <amxmodx> #include <fun> public plugin_init() {   register_event("Damage", "Event_Damage", "b", "2!0");   register_event("CurWeapon", "Event_CurWeapon", "be");   register_event("ResetHUD", "Event_ResetHUD", "b"); } #define MIN_DAMAGE 25 // minimum amount of damage before player slows down #define SLOW_SPEED 200.0 // max speed of injured players new bool:g_bSlow[33] = { false, ... }; public client_connect( id )   g_bSlow[id] = false; public Event_Damage( id ) {   new dmg = read_data(2); // get the damage recieved   // if the damage is greater than or equal to the defined value..   if(dmg >= MIN_DAMAGE)   {     set_user_maxspeed(id, SLOW_SPEED); // set his maxspeed     g_bSlow[id] = true; // set the bool to true   } } public Event_CurWeapon( id ) {   // if the bool is true..   if(g_bSlow[id] == true)     set_user_maxspeed(id, SLOW_SPEED); // set his speed } public Event_ResetHUD( id )   g_bSlow[id] = false; // set the bool to false when the player spawns again
__________________
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
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 00:00.


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