Possible to make guns stronger? ++ - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Possible to make guns stronger? ++ (
/showthread.php?tid=310445)
Possible to make guns stronger? ++ -
legho - 12.01.2012
Hello what i need to do is make it so if someone gets attacked by a knife they die in one? is this possible
and also make bullets stronger?
Thanks in advance!
Re: Possible to make guns stronger? ++ -
lamarr007 - 12.01.2012
I know SetPlayerSkillLevel
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
//This will make player AK47 skill level to max.
return 1;
}
Re: Possible to make guns stronger? ++ -
[HiC]TheKiller - 12.01.2012
Using the weaponid param on
OnPlayerTakeDamage, you can set the players health lower that the damage that is given with the weapon.
Re: Possible to make guns stronger? ++ -
legho - 12.01.2012
HIC i see, what is the user id on the params though?
(playerid, issuerid, Float:amount, weaponid)
Re: Possible to make guns stronger? ++ -
DanL - 12.01.2012
Quote:
Originally Posted by legho
HIC i see, what is the user id on the params though?
(playerid, issuerid, Float:amount, weaponid)
|
issuerid = The ID of the player that caused the damage. INVALID_PLAYER_ID if none.
Refer to the Wiki
here.