How do I kick when player gives damage?
#2

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage

And I can create it for you! :

PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponidbodypart)
{
    new 
string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
    new 
weaponname[24];
    
GetPlayerName(playeridattackersizeof (attacker));
    
GetPlayerName(damagedidvictimsizeof (victim));
    
Kick(attacker);
    return 
1;

Haven't tested it but it may work! :P
Reply


Messages In This Thread
How do I kick when player gives damage? - by Dzordzomordzo - 23.03.2016, 14:41
Re: How do I kick when player gives damage? - by ChristolisTV - 23.03.2016, 14:46
Re: How do I kick when player gives damage? - by ]Rafaellos[ - 23.03.2016, 15:47
Re: How do I kick when player gives damage? - by Dzordzomordzo - 24.03.2016, 10:43
Re: How do I kick when player gives damage? - by NaS - 24.03.2016, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)