Jump to content

Question

Posted

Salut, am o problema cu sistemul de heal.

Cand trag in cineva nu ii scade viata, arata ca scade dar creste la loc foarte repede.

5 answers to this question

Recommended Posts

Posted

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)

{

    if(issuerid == INVALID_PLAYER_ID)

    {

RealHealth[playerid] -= amount;

SetPlayerHealthEx(playerid,RealHealth[playerid]);

    }

Posted

Problema vine de la asta?

if(GetPlayerWeapon(i) == 1 && GetPlayerWeapon(i) == 9 && GetPlayerWeapon(i) == 14 && GetPlayerWeapon(i) == 15 && GetPlayerWeapon(i) == 16 && GetPlayerWeapon(i) == 17 && GetPlayerWeapon(i) == 18 && GetPlayerWeapon(i) == 22 && GetPlayerWeapon(i) == 26 && GetPlayerWeapon(i) == 27 &&

GetPlayerWeapon(i) == 28 && GetPlayerWeapon(i) == 32 && GetPlayerWeapon(i) == 35 && GetPlayerWeapon(i) == 36 && GetPlayerWeapon(i) == 37 && GetPlayerWeapon(i) == 39 && GetPlayerWeapon(i) == 40 && GetPlayerWeapon(i) == 41 && GetPlayerWeapon(i) == 42 && GetPlayerWeapon(i) == 45)

{

new plname[64];

new string[128];

new gunname[32];

gPlayerAccount = 1;

GetPlayerName(i, plname, sizeof(plname));

GetWeaponName(i,gunname,sizeof(gunname));

format(string, sizeof(string), "AdmCmd: %s was banned by AdmBot, reason: Ilegal Weapon(%s)", plname, gunname);

SendClientMessageToAll(COLOR_LIGHTRED, string);

Ban(i);

}

}

}

}

Posted

public SetPlayerHealthEx(playerid, Float:health)

{

if(IsPlayerConnected(playerid))

{

RealHealth[playerid] = health;

SetPlayerHealth(playerid,health);

    return 1;

}

return 1;

}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.