Easy custom damage + damage sound -
Voxel - 30.09.2013
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;
}
Re: Easy custom damage - Nofear192 - 30.09.2013
you Just Copy this things from My Filter-Script
https://sampforum.blast.hk/showthread.php?tid=466951
Re: Easy custom damage -
Voxel - 30.09.2013
Nope i had this long before you even released it
!
Re: Easy custom damage + damage sound - Nofear192 - 30.09.2013
30/09/2013, 06:45 PM realy Hah I can see ur time/date from up on ur Thread Stop liying
Re: Easy custom damage + damage sound -
Voxel - 30.09.2013
Thats no proof bro, i got it from here:
https://sampforum.blast.hk/showthread.php?tid=330005
Re: Easy custom damage + damage sound -
Team_PRO - 30.09.2013
Quote:
Originally Posted by Voxel
|
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
Re: Easy custom damage + damage sound - Nofear192 - 30.09.2013
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
Re: Easy custom damage + damage sound -
Voxel - 30.09.2013
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.
Re: Easy custom damage + damage sound - Nofear192 - 30.09.2013
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" CUSTOM DAMAGE BY VOXEL");
print("--------------------------------------\n");
return 1;
}
Yes this shows
Re: Easy custom damage + damage sound -
Team_PRO - 30.09.2013
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
Re: Easy custom damage + damage sound -
Voxel - 30.09.2013
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.
Re: Easy custom damage + damage sound -
DaRk_RaiN - 30.09.2013
And what if the damaged player have an armour?
Re: Easy custom damage + damage sound -
Voxel - 30.09.2013
Armour will be ignored or will be taken small amounts of values off.
Re : Easy custom damage + damage sound -
Matnix - 30.09.2013
Nah. The damaged player will lose only health if he had some armours by using your script.
Re: Re : Easy custom damage + damage sound -
Voxel - 30.09.2013
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.