07.10.2014, 07:52
Quote:
|
Hello Everybody i want to show you code for Headshot system
Lets startt!!!! One shot to the head to kill with sniper rifle Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
// One shot to the head to kill with sniper rifle
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount)
{
if(issuerid != INVALID_PLAYER_ID )
{
// One Shot to the head to kill with all weapon
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
?What Is Bodyparts ?? What Is Weaponid ?? Answer!!!! Bodyparts - https://sampwiki.blast.hk/wiki/Body_Parts Weaponid - https://sampwiki.blast.hk/wiki/Weapons Find me https://www.********.com/Vahnntech Thank before ... |
you not suppose to have questions in tutorial that's what the scripting section is for isn't it
:O.... please remove this Abomination


