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])
}
}
__________________