Definitive Gaming Damage System! -
Hashish - 23.10.2012
Hello everyone I'm Tony, a new scripter trying to make my name out there this is a little system I made for my Heavy RP server.
Hope you like it!
PHP код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Weapon Damage Script By Hashish ");
print("---------------------------------------n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Weapon Damage Script By Hashish ");
print("----------------------------------\n");
}
#endif
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(weaponid == 7)
SetPlayerHealth(playerid,health-12);
if(weaponid == 8)
SetPlayerHealth(playerid,health-70);
if(weaponid == 4)
SetPlayerHealth(playerid,health-60);
if(weaponid == 3)
SetPlayerHealth(playerid,health-11);
if(weaponid == 5)
SetPlayerHealth(playerid,health-11);
if(weaponid == 23)
SetPlayerHealth(playerid,health-50);
if(weaponid == 24)
SetPlayerHealth(playerid,health-70);
if(weaponid == 22)
SetPlayerHealth(playerid,health-39);
if(weaponid == 25)
SetPlayerHealth(playerid,health-65);
if(weaponid == 26)
SetPlayerHealth(playerid,health-48);
if(weaponid == 27)
SetPlayerHealth(playerid,health-40);
if(weaponid == 28)
SetPlayerHealth(playerid,health-28);
if(weaponid == 29)
SetPlayerHealth(playerid,health-31);
if(weaponid == 30)
SetPlayerHealth(playerid,health-41);
if(weaponid == 31)
SetPlayerHealth(playerid,health-41);
if(weaponid == 32)
SetPlayerHealth(playerid,health-27);
if(weaponid == 33)
SetPlayerHealth(playerid,health-70);
if(weaponid == 34)
SetPlayerHealth(playerid,health-70);
if(weaponid == 33)
SetPlayerHealth(playerid,health-70);
if(weaponid == 33) SetPlayerHealth(playerid,health-70);
}
return 1;
}
Guys if I messed up on anything or if you think I should change anything to make it more RP let me know!
thanks for checking out my FS.
Guys I know this is a kind of newbie thing

but +REP if you think it's good!
-Fixed the unnessicary callbacks thanks for noticing guys i wouldn't of thought to remove them
Re: Definitive Gaming Damage System! -
quagga - 23.10.2012
What's up with all of the unnecessary callbacks?
Re: Definitive Gaming Damage System! -
Hashish - 23.10.2012
I just made it quick lol I didnt think of making it neat and tidy
Re: Definitive Gaming Damage System! -
danilonba - 23.10.2012
Good man keep it up

+1 rep
Re: Definitive Gaming Damage System! -
Hashish - 23.10.2012
Apreciate the REP I return the favour!
Re: Definitive Gaming Damage System! -
DonWade - 24.10.2012
use switching , this way is slower
Re: Definitive Gaming Damage System! -
2KY - 24.10.2012
Use switch statements, and get rid of main(), main does not belong in a filterscript.
Re: Definitive Gaming Damage System! -
Lordzy - 24.10.2012
You could post this on Useful snippets than posting it on Filterscripts.
Not bad though.
Re: Definitive Gaming Damage System! -
tboysamp - 24.10.2012
keep up the good work 5/10
Re: Definitive Gaming Damage System! -
[HK]Ryder[AN] - 24.10.2012
Just changed this a bit
https://sampforum.blast.hk/showthread.php?tid=330005