Automatic ResetScore (hvh servers)

trollfaceman5

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 1, 2020
Messages
5
Reaction score
0
This will reset your score automatically as soon as you die.
Put this in your FireGameEvent hook.
C++:
if (!strcmp(name, "player_death"))
    {
        const auto attacker = g_pEngine->GetPlayerForUserID(event->GetInt("attacker"));
        const auto userid = g_pEngine->GetPlayerForUserID(event->GetInt("userid"));

        
            if (c_config::get().misc_autors)
            {
                auto victim = g_pEntityList->GetClientEntity(g_pEngine->GetPlayerForUserID(event->GetInt("userid")));
                if (!victim)
                    return;

                if (victim != Globals::LocalPlayer)
                    return;

                g_pEngine->ExecuteClientCmd("rs");
            }

and add this as your listener.
C++:
        g_pEventManager->AddListener(this, "player_death", false);
 

Khainaaeh

кто прочитал тот здохнет
User
кто прочитал тот здохнет
User
Status
Offline
Joined
Jul 14, 2019
Messages
51
Reaction score
18
useless shit
 

trollfaceman5

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 1, 2020
Messages
5
Reaction score
0
like you :DDDDDDDDDDDDDDDDDDDDDDDDDDD
keep pasting bro im not releasing anything of worth here
 

trollfaceman5

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 1, 2020
Messages
5
Reaction score
0
Go learn how to code, instead of lurking here waiting for spoonfed doubletap release.
 

memory

User
User
User
User
Status
Offline
Joined
Jun 25, 2019
Messages
55
Reaction score
25
acc useless for example what if ur 15-0 and u die once then u rs? also only dumb pasters still use xy0/stick
 

trollfaceman5

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 1, 2020
Messages
5
Reaction score
0
ok
 

0x01

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 1, 2020
Messages
27
Reaction score
181
acc useless for example what if ur 15-0 and u die once then u rs? also only dumb pasters still use xy0/stick
bro imagine dying in hvh tho? 1998 ayywe user smh

//ontopic
check the kills netvar and the deaths netvar, and if you get to a certain kd you execute rs cmd
or just rs if your kills is less than a certain value
or both
 
Top