Sziasztok! A segítségeteket szeretném kérni, hogy,hogyan lehetne ezt megoldani,ezt a scriptet,hogy működdjön? Elnézést kérek a rossz spoilerért, nem tudtam megoldani :S }public OnPlayerGiveDamage( playerid, damagedid, Float:amount, weaponid, bodypart ){if( weaponid == 0 ) return 0;if( bodypart == 9 && !IsPlayerInAnyVehicle( damagedid ) ) // HEAD SetPlayerHealth( damagedid, 0 );if( bodypart == 7 || bodypart == 8 ) // LEGS new Float:armour;GetPlayerArmour(damagedid, armour);if(armour <= 0){ new Float:health; GetPlayerHealth(damagedid,health); SetPlayerHealth(damagedid, health-10.0);}}if( bodypart == 3 ) // TORSO/CHEST{ new Float:armour;GetPlayerArmour(damagedid, armour);if(armour <= 0){ new Float:health; GetPlayerHealth(damagedid,health); SetPlayerHealth(damagedid, health-20.0);}}return 1;}public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){if(IsPlayerInRangeOfPoint(issuerid, 5.0, 2984.7747,1535.7643,43.0559) && GetPlayerInterior(issuerid) == 5){if(pInfo[issuerid][pBorton] > 0){ pInfo[issuerid][pBorton] += 60; SendClientMessage(issuerid, PIROS, \"Börtönben/kórházban nem verekszel! +1p\");}}if(amount >= 5){SendClientMessage(playerid, NARANCS, \"(( Megsebeztek! ))\");SendClientMessage(issuerid, NARANCS, \"(( Megsebezted! ))\"); [/quote]
}public OnPlayerGiveDamage( playerid, damagedid, Float:amount, weaponid, bodypart ){if( weaponid == 0 ) return 0;if( bodypart == 9 && !IsPlayerInAnyVehicle( damagedid ) ) // HEAD SetPlayerHealth( damagedid, 0 );if( bodypart == 7 || bodypart == 8 ) // LEGS new Float:armour;GetPlayerArmour(damagedid, armour);if(armour <= 0){ new Float:health; GetPlayerHealth(damagedid,health); SetPlayerHealth(damagedid, health-10.0);}}if( bodypart == 3 ) // TORSO/CHEST{ new Float:armour;GetPlayerArmour(damagedid, armour);if(armour <= 0){ new Float:health; GetPlayerHealth(damagedid,health); SetPlayerHealth(damagedid, health-20.0);}}return 1;}public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){if(IsPlayerInRangeOfPoint(issuerid, 5.0, 2984.7747,1535.7643,43.0559) && GetPlayerInterior(issuerid) == 5){if(pInfo[issuerid][pBorton] > 0){ pInfo[issuerid][pBorton] += 60; SendClientMessage(issuerid, PIROS, \"Börtönben/kórházban nem verekszel! +1p\");}}if(amount >= 5){SendClientMessage(playerid, NARANCS, \"(( Megsebeztek! ))\");SendClientMessage(issuerid, NARANCS, \"(( Megsebezted! ))\");
return 0
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){if(weaponid == 4){new float:HP;GetPlayerHealth(playerid,HP);SetPlayerHealth(playerid,HP-20);}return 0;}
if(weaponid == 4){new float:HP;GetPlayerHealth(playerid,HP);SetPlayerHealth(playerid,HP-random(20));//a 19 lesz a maximum, amit adhatsz a késsel// a random az első 20 szám közt(0-19) fog sorsolni.}