12.09.2015, 23:30
Hello sanamalik400,
I've got this code for you,
For the "OnPlayerShootPlayer", it has an include, you have to download it : https://sampforum.blast.hk/showthread.php?pid=937824#pid937824
- KillerDVX.
I've got this code for you,
PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if (IsPlayerInRangeOfPoint(Target, 2.0, the x pos of the player spawn points, y, z))
{
new Float:health;
GetPlayerHealth(Shooter,health);
SetPlayerHealth(Shooter, health-5); // It will decrease 5 hp at each shoot
return 1;
}
- KillerDVX.