[FilterScript] Weapon specifier - Advanced weapon system. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapon specifier - Advanced weapon system. (
/showthread.php?tid=486684)
Weapon specifier - Advanced weapon system. -
Blunt - 09.01.2014
Weapon specifier - The advanced weapon damage and weapon system
This script contains:
- Advanced weapon system.
- Dynamically engineered weapon damage editor.
- Sophisticated designs, visually sleek and smartly designed.
- Weapon information such as damage levels, id of weapon and other information on your current weapon statistics.
COMMANDS
Код:
/weaponspecifier - This command displays the main menu of the system in a sleek dialog box.
/weaponstats - This command displays another information box with all statistics of your current weapon.
The script is using ZCMD for command processing.
ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354
DOWNLOAD
Re: Weapon specifier - Advanced weapon system. -
Sublime - 09.01.2014
Pastebin?
Re: Weapon specifier - Advanced weapon system. -
Blunt - 09.01.2014
Quote:
Originally Posted by Sublime
Pastebin?
|
Added a pastebin.
Respuesta: Weapon specifier - Advanced weapon system. -
MugiwaraNoLuffy - 10.01.2014
What is this? I don't understand.
Re: Weapon specifier - Advanced weapon system. -
amirab - 10.01.2014
Nice !!! +REP
Re: Weapon specifier - Advanced weapon system. -
Lordzy - 10.01.2014
I don't understand why you've switched to many cases. Why not like this?
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
//As you've declared it from 0-100 :
new Float:damagingvar;
if(DAMAGE[playerid] <= 0) damagingvar = 0.0;
else if(DAMAGE[playerid] >= 100) damagingvar = 100.0;
else damagingvar = DAMAGE[playerid];
new Float:hp;
GetPlayerHealth(damagedid, hp);
SetPlayerHealth(damagedid, hp-damagingvar);
return 1;
}
The rest all seems good, but however, you could make this filterscript much more better.
• It'd also effect the players who are paused.
• It only reduces health, would improve more if it's like normal damages happening.
Re: Weapon specifier - Advanced weapon system. -
Voxel - 10.01.2014
Lol you sure know how to "sell" your script", I like it good job!
Re: Weapon specifier - Advanced weapon system. -
Blunt - 10.01.2014
Quote:
Originally Posted by Lordz™
I don't understand why you've switched to many cases. Why not like this?
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) { //As you've declared it from 0-100 : new Float:damagingvar; if(DAMAGE[playerid] <= 0) damagingvar = 0.0; else if(DAMAGE[playerid] >= 100) damagingvar = 100.0; else damagingvar = DAMAGE[playerid]; new Float:hp; GetPlayerHealth(damagedid, hp); SetPlayerHealth(damagedid, hp-damagingvar); return 1; }
The rest all seems good, but however, but you could make this filterscript much more better.
• It'd also effect the players who are paused.
• It only reduces health, would improve more if it's like normal damages happening.
|
Thanks for the suggestions, you can improve it if you like as im already working on something else now. And thank you for the positive comments, this could come in useful if you needed it.
Re: Weapon specifier - Advanced weapon system. -
ViciousRoleplay123 - 10.01.2014
9/10, u got a rep!
Re: Weapon specifier - Advanced weapon system. -
Blunt - 10.01.2014
Quote:
Originally Posted by ViciousRoleplay123
9/10, u got a rep!
|
Appreciated