verteich
20.05.2019, 22:29
из за чего не пропадает объект брони, после того как игроку ему пробью (к примеру, диглом)?
stock J_SetPlayerArmour(playerid, Float:armour)
{
if (playerid == INVALID_PLAYER_ID) {
return 0;
}
if (armour > 0.0) {
if (!IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
SetPlayerAttachedObject(playerid, 8, 19142, 1, 0.08, 0.04, 0.00, 0.0, 0.0, -7.4);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
RemovePlayerAttachedObject(playerid, 8);
}
}
AntiCheatOFF[playerid][ARMOUR_HACK] = 2;
PI[playerid][pArmour] = armour;
return SetPlayerArmour(playerid, armour);
}
stock J_SetPlayerArmour(playerid, Float:armour)
{
if (playerid == INVALID_PLAYER_ID) {
return 0;
}
if (armour > 0.0) {
if (!IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
SetPlayerAttachedObject(playerid, 8, 19142, 1, 0.08, 0.04, 0.00, 0.0, 0.0, -7.4);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 8)) {
RemovePlayerAttachedObject(playerid, 8);
}
}
AntiCheatOFF[playerid][ARMOUR_HACK] = 2;
PI[playerid][pArmour] = armour;
return SetPlayerArmour(playerid, armour);
}