[Ajuda] ajuda colete
#9

Deve funcionar:

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) {

    if(IsACop(playerid)) {
        static Float: coleteChecar;
        GetPlayerArmour(playerid, coleteChecar);
   
        if(coleteChecar > 0.0) {
            SetPlayerAttachedObject(x, 4, 19142, 1, 0.1, 0.05, 0.0, 0.0, 0.0, 0.0);
        }
        else {
            RemovePlayerAttachedObject(playerid, 4);
        }
    }
   
    return 1;
}
Reply


Messages In This Thread
ajuda colete - by FenixBorn - 20.09.2012, 15:27
Re: ajuda colete - by Petrick™ - 20.09.2012, 16:03
Re: ajuda colete - by FenixBorn - 20.09.2012, 21:01
Re: ajuda colete - by Douglas_prt - 20.09.2012, 21:08
Re: ajuda colete - by FenixBorn - 20.09.2012, 21:43
Re: ajuda colete - by YourLord - 20.09.2012, 21:55
Re: ajuda colete - by FenixBorn - 21.09.2012, 01:45
Re: ajuda colete - by rjjj - 21.09.2012, 04:38
Re: ajuda colete - by Jason` - 21.09.2012, 05:23
Re: ajuda colete - by FenixBorn - 21.09.2012, 12:57

Forum Jump:


Users browsing this thread: 5 Guest(s)