(2021-05-29, 08:40 PM)Snow Wrote:The op clearly opened 3 threads on 3 different languages (he didn't mention that he didn't want to use WC, quite the opposite in other ones) and sent me PMs of asking how to install SKY too.(2021-05-29, 11:18 AM)Pinch Wrote: You can use the weapon-config
https://github.com/oscar-broman/samp-weapon-config
The op clearly mentioned he does not want to use any includes/fs.
You can modify the damage under OnPlayerTakeDamage & OnPlayerGiveDamage. Like this
This will remove 60% of the player's health. Use issuer/player id accordingly to the callback.Code:if(weaponid == 26)
{
SetPlayerHealth(playerid/issuerid, -60.0);
}
But I'd still recommend you to use the weapon-config as that's pretty much better than configuring each and everything on your own.
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.