AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved client_death are not called (https://forums.alliedmods.net/showthread.php?t=329704)

Receiver 01-04-2021 09:17

client_death are not called
 
Hello, everybody! client_death are not called when i killing podbots, but it is triggered when i suicide. did not find analogs, with getting the hitplace. help solve the problem or find an alternative, pls
plugin for tests:
PHP Code:

#include <amxmodx>
#include <csx>

public plugin_init()
{
    
register_plugin("unk""0x999""unk");
}

public 
client_death(killervictimweaponhittk)
{
    new 
killer_name[32], victim_name[32];
    
get_user_name(killerkiller_name32);
    
get_user_name(victimvictim_name32);

    
server_print("%s kill %s"killer_namevictim_name);



Natsheh 01-04-2021 09:20

Re: client_death are not called
 
show meta list output

Receiver 01-04-2021 09:22

Re: client_death are not called
 
https://imgur.com/PakPAyK.png

Receiver 01-04-2021 09:25

Re: client_death are not called
 
ahahah, omg, i'm idiot, and added cstrike & csx in metamod plugins.ini file. when i removed it problem solved. thank you bro, if you hadn't asked to see the meta list, I wouldn't have guessed

Natsheh 01-04-2021 09:34

Re: client_death are not called
 
change the cvar csstats_rankbots => 1


Quote:

Originally Posted by Receiver (Post 2731290)
ahahah, omg, i'm idiot, and added cstrike & csx in metamod plugins.ini file. when i removed it problem solved. thank you bro, if you hadn't asked to see the meta list, I wouldn't have guessed



that's not the problem...!

you need to change csstats_rankbots to 1 inorder for the CSX functions/forwards to work for bots.


All times are GMT -4. The time now is 14:07.

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