/slapme
this is a little plugin I made to self-slap a player with 0hp
I don't know if it will be usefull to some of you, but it is for me, so it's enough :D
http://www.thebishop.fr/fichiers/plugins/slapme.zip
Nice plugin Bishop ! :]
Nice !
i think its a useful thingie gj :D
[ Edited 08/23/07 - 18:03:07 ]
Haha, nice man! It's definatly useful ^^
test 1 <3
[ Edited 08/23/07 - 20:30:18 ]
Would be better if you:
1. Do it in "Damage" event rather than client command
2. Set hp rather than slap
3. Use AMXx, AMX is crap!
[ Edited 08/24/07 - 00:35:39 ]
fatalis i thought about such a plugin but i didnt know how to detect if the user has shown 0 hp in his hud... is there a way to calculate it or a function for checking the hud outout of ur hp?
Why slap? It's possible to cheat with it. Althow good work anyway. =)
But there is an ezer and more effective way. Dunno obout it - didn't tested it yet.
#include < amxmodx >
#include < amxmisc >
#include < fun >
#define PLUGIN "Kz 0 hp"
#define VERSION "1.0"
#define AUTHOR "NumB"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("kz_zero_hp","1.0");
}
public client_putinserver(id)
{
if (!(get_cvar_float("kz_zero_hp") < 0.1))
set_task(get_cvar_float("kz_zero_hp"), "tskHp", id+122333, "", 0, "b", 0);
else
set_task(1.0, "tskHp", id+122333, "", 0, "b", 0);
}
public tskHp(id)
{
id -= 122333;
if (is_user_alive(id) && get_user_health(id) > 255 && get_cvar_float("kz_zero_hp") > 0)
{
if ((get_user_health(id)%256) == 0)
set_user_health(id, (get_user_health(id)-1));
}
}
public client_disconnect(id)
{
if (task_exists(id+122333, 0))
remove_task(id+122333, 0);
}
[ Edited 08/24/07 - 01:58:56 ]
(get_user_health(id)%256) xD that is how its working :D
yeah ^^
cheating ?? how ?? by slapping to reach a higher block ? You can self-slap only when you have 0 hp :D and only once.
maybe this plugin sucks, but I don't need more ^^.
If that plugin is usefull to anyone else, that's cool, but if it's totally useless I don't care xD
û could use use it instead of an eb xD wait untill u have 0 hp jump down and pree a key on which u have binded "say /slap" xD
==================
i wonder how to cheat with it too numb xD pls explain it to us
By the slap - you can get longer jump distance 4 e.x. =P
so does the NumBs plugin work?
just test it spermis
Use damage event instead of task...
http://fatalis.ampaste.net/80476
[ Edited 08/24/07 - 14:49:05 ]
Please log in to post replies.