28.10.2016, 18:28
Howdy, so I'm trying to build a system like LS-RP has that once you get a shot in one of your legs, or both of them you will not walk properly, I found it quite useful when I played there, so here is a picture of the error:
http://imgur.com/a/7bvUh
And here is the full code:
What am I missing? could you help me out please?
http://imgur.com/a/7bvUh
And here is the full code:
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID || weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 || weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34 || weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38 && bodypart == 7 || bodypart == 8) { if(pLegBroken[playerid] == false) { pLegBroken[playerid] = true; ApplyAnimation(playerid, "PED", "CLIMB_jump2fall", 4.1, 1, 0, 0, 1, 0); SendClientMessage(playerid, COLOR_LIGHTRED, "-> You've been hit in the leg, you're going to struggle with running and jumping."); } } return 1; } |