03.01.2012, 01:45
hi,
as the title says, it always shows me Godmode message also if im not on infinite health and my health goes down after expllosion. Why?
runing this in a timer 1 second true and in a loop (foreach)
as the title says, it always shows me Godmode message also if im not on infinite health and my health goes down after expllosion. Why?
pawn Код:
new Float:pHealthtmp[MAX_PLAYERS];
GetPlayerHealth(i,pHealthtmp[i]);
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
CreateExplosion(x, y, z, 12, 5.0);
new Float:hhh[MAX_PLAYERS];
GetPlayerHealth(i,hhh[i]);
if(pHealthtmp[i]>=hhh[i])SendClientMessageToAll(0xFF0000FF,"GodMode!!!");
else SetPlayerHealth(i,pHealthtmp[i]);