/slapme

Started by ThEBiShOp mapper
23/08/2007 17:22
Page 1 of 1
ThEBiShOp mapper23/08/2007 17:22

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

beuhnoix23/08/2007 17:50

Nice plugin Bishop ! :]

koyumu23/08/2007 17:59

Nice !

colix mapper23/08/2007 18:03

i think its a useful thingie gj :D
[ Edited 08/23/07 - 18:03:07 ]

puppetz mapper23/08/2007 18:38

Haha, nice man! It's definatly useful ^^

beuhnoix23/08/2007 20:29

test 1 <3
[ Edited 08/23/07 - 20:30:18 ]

Fatalis24/08/2007 00:34

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 ]

SchlumPF24/08/2007 01:29

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?

NumB24/08/2007 01:55

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 ]

SchlumPF24/08/2007 02:29

(get_user_health(id)%256) xD that is how its working :D

ThEBiShOp mapper24/08/2007 02:33

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

SchlumPF24/08/2007 03:03

û 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

NumB24/08/2007 03:05

By the slap - you can get longer jump distance 4 e.x. =P

spermis24/08/2007 11:52

so does the NumBs plugin work?

SchlumPF24/08/2007 12:30

just test it spermis

Fatalis24/08/2007 14:38

Use damage event instead of task...

http://fatalis.ampaste.net/80476

[ Edited 08/24/07 - 14:49:05 ]

Page 1 of 1

Please log in to post replies.