Raised This Month: $51 Target: $400
 12% 

I need to know how to change this code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pekpeping290939
Junior Member
Join Date: Mar 2019
Old 03-19-2021 , 12:52   I need to know how to change this code
Reply With Quote #1

I have some problem about this code in the plugin.

I need to change "ForcePlayerSuicide()" to be the event attacker who killed who died.

Thank you for every answer me

Credit : This plugin is Franc1sco

PHP Code:
public Action:ByeZM(Handle:timerany:client)
{
 if (
IsClientInGame(client) && IsPlayerAlive(client) && ZR_IsClientZombie(client) && g_ZombieExplode[client])
 {
                        
g_ZombieExplode[client] = false;

                    new 
Float:iVec];
                
GetClientAbsOriginclientFloat:iVec );

            
TE_SetupExplosioniVecg_ExplosionSprite5.0105040iNormal );
            
TE_SendToAll();
            
            
TE_SetupSmokeiVecg_SmokeSprite10.0);
            
TE_SendToAll();
    
            
EmitAmbientSoundEXPLODE_SOUNDiVecclientSNDLEVEL_NORMAL );

                        
ForcePlayerSuicide(client);
 }


Last edited by pekpeping290939; 03-19-2021 at 12:53.
pekpeping290939 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-22-2021 , 19:47   Re: I need to know how to change this code
Reply With Quote #2

Use https://github.com/alliedmodders/sou...hooks.inc#L428
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
pekpeping290939
Junior Member
Join Date: Mar 2019
Old 03-23-2021 , 03:52   Re: I need to know how to change this code
Reply With Quote #3

Quote:
Originally Posted by Franc1sco View Post
Thank You Frans1sco
I will try it.
pekpeping290939 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:53.


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