[Help] Suicide experience
Hello, someone could help me because when they commit suicide either slay, kill and lasermine gain experience?
PHP Code:
|
Re: [Help] Suicide experience
PHP Code:
|
Re: [Help] Suicide experience
Hi, thanks I tried it but instead of that gain experience gives me two bone frags, I duplicated the experience
|
Re: [Help] Suicide experience
PHP Code:
PHP Code:
|
Re: [Help] Suicide experience
Quote:
PHP Code:
|
Re: [Help] Suicide experience
@wEEK & @Blizzard_87 you cannot use get_user_weapon() with grenades in this case ... that function returns the weapon that the player is holding ... meaning that if the player was killed by a grenade, the attacker would not still be holding one.
You should use DeathMsg instead, and read data 4, or use client_death() with CSX module which gives you the CSW_* constant. The rest of your code could also be simplified. Quote:
|
Re: [Help] Suicide experience
Quote:
i only added the if(victim == attacker) check.. rest of code was his.... i know the get_user_weapon wouldnt work but that was not the question he asked. |
All times are GMT -4. The time now is 08:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.