PDA

View Full Version : Possible to make guns stronger? ++


legho
12/01/2012, 11:17 AM
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!

lamarr007
12/01/2012, 11:24 AM
I know SetPlayerSkillLevel
public OnPlayerSpawn(playerid)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
//This will make player AK47 skill level to max.
return 1;
}

[HiC]TheKiller
12/01/2012, 11:24 AM
Using the weaponid param on OnPlayerTakeDamage (http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage), you can set the players health lower that the damage that is given with the weapon.

legho
12/01/2012, 11:28 AM
HIC i see, what is the user id on the params though?
(playerid, issuerid, Float:amount, weaponid)

DanL
12/01/2012, 11:36 AM
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 (http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage).