[AJUDA] Bug no GM
#4

Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    new Float:health, Float:armour;
    GetPlayerHealth(Target,health);
    GetPlayerArmour(Target,armour);
    if(ArmourLost > 0.0) SetPlayerArmour(Target,floatadd(armour,ArmourLost));
    if(HealthLost > 0.0) SetPlayerHealth(Target,floatadd(health,HealthLost));
    new Damage;
    switch(GetPlayerWeapon(Shooter)) {
        case 24: Damage = DEAGLEDANO;
        case 31: Damage = M4DANO
        case 28: Damage = SMGDANO
        case 29: Damage = MP5DANO
        case 0: Damage = SOCODANO
        case 22: Damage = NOVEDANO
        case 23: Damage = SILENCEDDANO
        case 5,3,6,7,2: Damage = 1
        case 4: Damage = FACADANO
        case 25: Damage = SHOTGUNDANO
        case 26: Damage = SAWNDANO
        case 30: Damage = AK47DANO
        case 33,34: Damage = COUNTRYDANO
    }
    armour = armour - Damage;
    if(armour < 0.0) {
        health += armour;
        if(health <= 0.0) {
            health = 0.0;
        }
        armour = 0.0;
    }
    SetPlayerHealth(Target, health);
    SetPlayerArmour(Target, armour);
    return 1;
}
Tem sim este bug, acho que acontece depois que vocк coloca um anuncio off.
Uso esta versгo: https://sampforum.blast.hk/showthread.php?tid=287015
Reply


Messages In This Thread
[AJUDA] Bug no GM - by felipe360 - 27.10.2011, 01:36
Re: [AJUDA] Bug no GM - by iansinho - 27.10.2011, 01:47
Re: [AJUDA] Bug no GM - by Ghost_ - 27.10.2011, 01:48
Re: [AJUDA] Bug no GM - by felipe360 - 27.10.2011, 01:56
Re: [AJUDA] Bug no GM - by Ghost_ - 27.10.2011, 02:00
Re: [AJUDA] Bug no GM - by felipe360 - 27.10.2011, 02:03
Re: [AJUDA] Bug no GM - by iansinho - 27.10.2011, 02:19
Re: [AJUDA] Bug no GM - by Ghost_ - 27.10.2011, 02:23
Re: [AJUDA] Bug no GM - by iansinho - 27.10.2011, 02:24
Re: [AJUDA] Bug no GM - by felipe360 - 27.10.2011, 02:26

Forum Jump:


Users browsing this thread: 2 Guest(s)