24.05.2014, 09:49
help please 1error!!
(0.3z)
(0.3z)
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) <<ERROR { if(bodypart == BODY_PART_LEFT_LEG) { if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid)) { SendClientMessage(playerid, COLOR_LIGHTRED, "Bal Lбbon lőtted, ezйrt nem tud mozogni!"); TogglePlayerControllable(damagedid, false); SetPlayerDrunkLevel(damagedid, 50000); ApplyAnimation(damagedid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); SetPlayerArmedWeapon(damagedid, 0); SendClientMessage(damagedid, COLOR_LIGHTRED, "Bal Lбbon lőttek, ezйrt nem bнrsz mozogni!"); } } else if(bodypart == BODY_PART_RIGHT_LEG) { if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid)) { SendClientMessage(playerid, COLOR_LIGHTRED, "Jobb lбbon lőtted, ezйrt nem tud mozogni!"); TogglePlayerControllable(damagedid, false); SetPlayerDrunkLevel(damagedid, 50000); ApplyAnimation(damagedid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0); SetPlayerArmedWeapon(damagedid, 0); SendClientMessage(damagedid, COLOR_LIGHTRED, "Jobb Lбbon lőttek, ezйrt nem bнrsz mozogni!"); } } else if(bodypart == BODY_PART_HEAD) { if(damagedid != INVALID_PLAYER_ID && IsPlayerConnected(damagedid)) { SendClientMessage(playerid, COLOR_LIGHTRED, "Fejenlőtted, ezйrt sъlyosan megsйrьlt йs kуrhбzba kerьlt!"); SendClientMessage(damagedid, COLOR_LIGHTRED, "Fejenlőttek, ezйrt sъlyosan megsйrьltйl!"); SetPlayerHealth(damagedid,0); } } return 1; }