Armor goes up to 250 when it's ment to become 0.
#2

Issue solved thanks to a guy on the sa-mp discord. If anyone else has this issue, put this at the top of the code:

PHP Code:
my_SetPlayerArmour(playeridFloat:amount)
{
    if(
amount 0.0)
    {
        
amount 0.0;
    }

    return 
SetPlayerArmour(playeridamount);
}

#if defined _ALS_SetPlayerArmour
    #undef SetPlayerArmour
#else
    #define _ALS_SetPlayerArmour
#endif
#define SetPlayerArmour my_SetPlayerArmour 
Reply


Messages In This Thread
Armor goes up to 250 when it's ment to become 0. - by Stefhan - 10.03.2019, 15:54
Re: Armor goes up to 250 when it's ment to become 0. - by Stefhan - 10.03.2019, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)