Lagging When shoot in player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lagging When shoot in player (
/showthread.php?tid=603854)
Lagging When shoot in player -
iulicxd - 28.03.2016
Samp Version - 0.3e,I have DM Server in 0.3e
There is no OnPlayerTakeDamage
But is
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(PlayerInfo[playerid][Class] == 13)
{
if(playerType[playerid] != playerType[damagedid])
{
if(weaponid == 6) SetPlayerHealth(damagedid, 0);
}
}
return 1;
}
When shoot in player,sometimes HP does not change... (Players Online 10-30)
Sorry for my Bad English..
Re: Lagging When shoot in player -
Slicebook - 28.03.2016
OnPlayerGiveDamagenot always working(script bug) and 0.3e very old version
Re: Lagging When shoot in player -
iulicxd - 28.03.2016
Quote:
Originally Posted by Slicebook
OnPlayerGiveDamagenot always working(script bug) and 0.3e very old version
|
if i change OnPlayerGiveDamage to OnPlayerTakeDamage,it will work better?
Re: Lagging When shoot in player -
Slicebook - 28.03.2016
yes,try it