08.06.2016, 10:33
Health bar makes me annoying, Is there any way to remove it?
Whenever I try to spawn, it's saying like that.
[08:45:04] (wc) InflictDamage(0, 0.0000, 65535, 55, 0) length = 0.000000 [08:45:04] (wc) OnPlayerDamageDone(65535 did 0.000000 to 0 with 55 on bodypart 0) And killing me. |
I have spawn protection(FLOAT_INFINITY), when player spawned. But I deleted it and test it nothing changed
|
return 0;
..which conditions?
If you modified the include, you will run into problems in some cases. |
new Float:get;
SetPlayerHealthEx(playerid, get);
new rank = GetPlayerRank(playerid);
if (get < gRank[rank][rankHealth])
{
SetPlayerHealth(playerid, gRank[rank][rankHealth]);
}
GetPlayerArmour(playerid, get);
if (get < gRank[rank][rankArmour])
{
SetPlayerArmour(playerid, gRank[rank][rankArmour]);
}
That code is not from weapon-config - I asked if you modified weapon-config.
Also, what is SetPlayerHealthEx and why do you set the player's health to 0? That kills the player. |
I don't know if you are aware about this. I reported this on SFR forums once. The thing is that when you shoot a car without driver but with a passenger, vehicles with guns can't damage them as I show in this video.
https://www.youtube.com/watch?v=H3nkyjEZyTs |
I don't know if you are aware about this. I reported this on SFR forums once. The thing is that when you shoot a car without driver but with a passenger, vehicles with guns can't damage them as I show in this video.
https://www.youtube.com/watch?v=H3nkyjEZyTs |
public OnGameModeInit() { EnableVehicleFriendlyFire(); return 1; }