Raised This Month: $32 Target: $400
 8% 

Move, or not to move


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
poiuy_qwert
Junior Member
Join Date: Mar 2004
Old 03-27-2004 , 20:33   Move, or not to move
Reply With Quote #1

How can i find if someone is moving or not moving. Doesn't matter if they are in spawn or turning, but if the person is in the same place for at least a second. I know in AMX there is get_user_velocity but i couldn't seem to find it in AMXX.
__________________
[p_q]poiuy_qwert[z_p]
poiuy_qwert is offline
BAILOPAN
Join Date: Jan 2004
Old 03-27-2004 , 20:51  
Reply With Quote #2

Code:
new Float:Velocity[3] entity_get_vector(id, EV_VEC_velocity, Velocity)
__________________
egg
BAILOPAN is offline
poiuy_qwert
Junior Member
Join Date: Mar 2004
Old 03-27-2004 , 21:28  
Reply With Quote #3

could you write an example script that if someone was in the same place for 3 seconds, //add script here, and then when they moved, //add script here
__________________
[p_q]poiuy_qwert[z_p]
poiuy_qwert is offline
BAILOPAN
Join Date: Jan 2004
Old 03-27-2004 , 21:42  
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> new Vectors[33][3] public plugin_init() {     //Camper detection is incredibly stupid     //whoever uses this I hope you get awped 20 times     register_plugin("Idiotic Camper Detection", "1.0", "BAILOPAN")     set_task(3.0, "find_campers", 1337, 0, "", "b") } public find_campers(data[]) {     new TVec1[3]     new players[32], mPlayers, pv     get_players(players, mPlayers, "a")     for (new i=0; i<mPlayers; i++) {         pv = players[i]         get_user_origin(pv, TVec1)         if (get_distance(TVec1, Vectors[pv])<5) {             give_item("weapon_awp") //this is if they have not moved             client_print(pv, print_chat, "You get awp for standing still")         }         get_user_origin(Vectors[pv])     } }
__________________
egg
BAILOPAN is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 03-27-2004 , 23:23  
Reply With Quote #5

Quote:
Originally Posted by BAILOPAN
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> new Vectors[33][3] public plugin_init() {     //Camper detection is incredibly stupid     //whoever uses this I hope you get awped 20 times     register_plugin("Idiotic Camper Detection", "1.0", "BAILOPAN")     set_task(3.0, "find_campers", 1337, 0, "", "b") } public find_campers(data[]) {     new TVec1[3]     new players[32], mPlayers, pv     get_players(players, mPlayers, "a")     for (new i=0; i<mPlayers; i++) {         pv = players[i]         get_user_origin(pv, TVec1)         if (get_distance(TVec1, Vectors[pv])<5) {             give_item("weapon_awp") //this is if they have not moved             client_print(pv, print_chat, "You get awp for standing still")         }         get_user_origin(Vectors[pv])     } }
OMG .. Idiotic Camper Detection ROFL!!! haha "You get awp for standing still"
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-28-2004 , 15:43  
Reply With Quote #6

Hook the radar event and check users origin, would be better than setting a task.
T(+)rget is offline
Reply


Thread Tools
Display Modes

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 19:53.


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