[FilterScript] Easy custom damage + damage sound
#1

Custom Damage + Damage Sound

Hello everyone,

I have a simple custom damage system i have, thought id just share it with you guys because why not!
original code creator in here:
https://sampforum.blast.hk/showthread.php?tid=330005

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" CUSTOM DAMAGE BY VOXEL");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif
//CUSTOM DAMAGE
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(weaponid == 24) SetPlayerHealth(playerid, HP-51);//DesertEagle
    if(weaponid == 22) SetPlayerHealth(playerid, HP-35);//Colt45
    if(weaponid == 23) SetPlayerHealth(playerid, HP-30);//SilencedColt
    if(weaponid == 31) SetPlayerHealth(playerid, HP-25);//M4
    if(weaponid == 30) SetPlayerHealth(playerid, HP-35);//AK
    if(weaponid == 29) SetPlayerHealth(playerid, HP-30);//MP5
    if(weaponid == 34) SetPlayerHealth(playerid, HP-100);//SniperRifle
    if(weaponid == 33) SetPlayerHealth(playerid, HP-50);//CountryRifle
    if(weaponid == 25) SetPlayerHealth(playerid, HP-40);//PumpShotgun
    if(weaponid == 27) SetPlayerHealth(playerid, HP-25);//Spaz12
    //SOUND
    if(issuerid != INVALID_PLAYER_ID) PlayerPlaySound(issuerid,17802,0.0,0.0,0.0), PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
    return 1;
}
Reply
#2

you Just Copy this things from My Filter-Script

https://sampforum.blast.hk/showthread.php?tid=466951
Reply
#3

Nope i had this long before you even released it !
Reply
#4

30/09/2013, 06:45 PM realy Hah I can see ur time/date from up on ur Thread Stop liying
Reply
#5

Thats no proof bro, i got it from here: https://sampforum.blast.hk/showthread.php?tid=330005
Reply
#6

Quote:
Originally Posted by Voxel
Посмотреть сообщение
Thats no proof bro, i got it from here: https://sampforum.blast.hk/showthread.php?tid=330005
well its seem the link u post have the same script this is steal remove it before admins warn you, its for own good, only the sound line is your work
Reply
#7

Quote:
Originally Posted by Team_PRO
Посмотреть сообщение
well its seem the link u post have the same script this is steal remove it before admins warn you, its for own good, only the sound line is your work
Yes if u keep stealing scripts nd doing like this u will get a ban hammer
Reply
#8

added real creators link in there. im just adding the custom damage there so it can help more people since that older threat might be over looked. i dont wait to steal anything, all content belongs to the respected owner.
Reply
#9

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" CUSTOM DAMAGE BY VOXEL");
print("--------------------------------------\n");
return 1;
}

Yes this shows
Reply
#10

Quote:
Originally Posted by Voxel
Посмотреть сообщение
added real creators link in there. im just adding the custom damage there so it can help more people since that older threat might be over looked. i dont wait to steal anything, all content belongs to the respected owner.
i sure that i will respect that, well good luck
Reply
#11

Quote:
Originally Posted by Nofear192
Посмотреть сообщение
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" CUSTOM DAMAGE BY VOXEL");
print("--------------------------------------\n");
return 1;
}

Yes this shows
Mind your own business, im just sharing this and im trying to help. i dont mean to steal anything or take any credit. i already put in my thread that the damage is not completly mine, i just edited the damage and added the hit sound.

discussion closed.
Reply
#12

And what if the damaged player have an armour?
Reply
#13

Armour will be ignored or will be taken small amounts of values off.
Reply
#14

Nah. The damaged player will lose only health if he had some armours by using your script.
Reply
#15

Quote:
Originally Posted by Matnix
Посмотреть сообщение
Nah. The damaged player will lose only health if he had some armours by using your script.
nope. i tested it, some armour will be lost aswell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)