05.02.2014, 10:10
(
Последний раз редактировалось Lloyde; 05.02.2014 в 10:46.
)
How to take a one shot for sniper but i want to make a scope for buying and if you buy scope your sniper will take a one shot.
But this scope one shot is for only player that buy a scope and this is a script
But this scope one shot is for only player that buy a scope and this is a script
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
{
// One shot to kill with sniper rifle
if(PlayerInfo[issuerid][pScope] >= 1)
{
SetPlayerHealth(playerid, 0.0);
}
else
{
SetPlayerHealth(playerid, 0, 30);
}
}
return 1;
}