19.09.2014, 21:50
Is it possible that player don't get damage with sniper but gets damage with other weapons ?
http://*********/vVK2MLOSaGo
http://*********/vVK2MLOSaGo
If you mean can you do this with your script yes:
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage If you mean is this a valid hack, yes it is. The player can decide which weapon to have God Mode on. Is it an SAMP Bug no. |
If you mean can you do this with your script yes:
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage If you mean is this a valid hack, yes it is. The player can decide which weapon to have God Mode on. Is it an SAMP Bug no. |
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, fX, fY, fZ)
{
if(hittype == BULLET_HIT_TYPE_PLAYER && hitid != INVALID_PLAYER_ID && weaponid == WEAPON_SNIPER)
{
if(SniperGod[playerid] == true) return 0;
}
return true;
}
I believe OnPlayerWeaponShot gets called before the player would die, how-ever I am not entirely sure. In that case, OnPlayerWeaponShot could be substitued. Example,
pawn Код:
|