04.07.2017, 13:55
So, none of this code under runs, any ideas why?
PHP код:
else if(Character[hitid][BrutalM] == 0 && playerid != INVALID_PLAYER_ID && IsPlayerInAnyVehicle(hitid))
{
GetPlayerPos(hitid, BMPos[hitid][0], BMPos[hitid][1], BMPos[hitid][2]);
RemovePlayerFromVehicle(hitid);
SetPlayerPos(hitid, BMPos[hitid][0], BMPos[hitid][1], BMPos[hitid][2] + 2);
Character[hitid][BrutalM] = 1;
Character[hitid][CanAccept] = 0;
LegHit[hitid] = 0;
ApplyAnim(hitid);
format(DTextS, sizeof(DTextS), "(( %s is currently injured, type /damages %i for more info. ))", GetName(hitid), hitid);
label[hitid] = Create3DTextLabel(DTextS, COLOR_RED, BMPos[hitid][0], BMPos[hitid][1], BMPos[hitid][2], 10.0, 0);
Attach3DTextLabelToPlayer(label[hitid], hitid, 0, 0, 0.7);
ClearPlayerWeapons(hitid);
format(str, sizeof(str),"%s was brutally wounded by %s.",GetRoleplayName(hitid),GetRoleplayName(playerid));
SetTimerEx("AllowDamage", 1200, false, "i", hitid);
SendAdminsMessage(1, COLOR_RED, str);
if(Character[hitid][Level] <= 10)
{
DeathB = RandomEx(100, 500);
GivePlayerMoney(hitid, -DeathB);
format(DeathS, sizeof(DeathS), "EMT: Your Medical bills are $%i.", DeathB);
SCM(hitid, COLOR_LIGHTPINK, DeathS);
SCM(hitid, COLOR_LIGHTRED, "You were brutally wounded, now if a medic or anyone else doesn't save you, you'll die.");
SCM(hitid, COLOR_LIGHTRED, "To accept death type /acceptdeath");
}
else if(Character[hitid][Level] <= 20 && Character[hitid][Level] > 10)
{
DeathB = RandomEx(100, 750);
GivePlayerMoney(hitid, -DeathB);
format(DeathS, sizeof(DeathS), "EMT: Your Medical bills are $%i.", DeathB);
SCM(hitid, COLOR_LIGHTPINK, DeathS);
SCM(hitid, COLOR_LIGHTRED, "You were brutally wounded, now if a medic or anyone else doesn't save you, you'll die.");
SCM(hitid, COLOR_LIGHTRED, "To accept death type /acceptdeath");
}
else if(Character[hitid][Level] <= 30 && Character[hitid][Level] > 20)
{
DeathB = RandomEx(100, 1250);
GivePlayerMoney(hitid, -DeathB);
format(DeathS, sizeof(DeathS), "EMT: Your Medical bills are $%i.", DeathB);
SCM(hitid, COLOR_LIGHTPINK, DeathS);
SCM(hitid, COLOR_LIGHTRED, "You were brutally wounded, now if a medic or anyone else doesn't save you, you'll die.");
SCM(hitid, COLOR_LIGHTRED, "To accept death type /acceptdeath");
}
else if(Character[hitid][Level] > 30)
{
DeathB = RandomEx(100, 1500);
GivePlayerMoney(hitid, -DeathB);
format(DeathS, sizeof(DeathS), "EMT: Your Medical bills are $%i.", DeathB);
SCM(hitid, COLOR_LIGHTPINK, DeathS);
SCM(hitid, COLOR_LIGHTRED, "You were brutally wounded, now if a medic or anyone else doesn't save you, you'll die.");
SCM(hitid, COLOR_LIGHTRED, "To accept death type /acceptdeath");
}
}
}