03.09.2017, 11:06
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { new float:health; GetPlayerHealth(damagedid, health); if(damagedid != INVALID_PLAYER_ID) { if(PlayerInfo[damagedid][pFreezeTime] != 0) { SendClientMessage(playerid, -1, "This player is frozen, you can't shoot him."); SetPlayerHealth(damagedid, health); amount = 0; return 0; } } return 1; }
just try, if it didn't work just let me know