15% success rate + whatever percentage of cops are online

This commit is contained in:
Lorenc Pekaj 2018-09-24 23:19:23 +10:00
parent 6810b321df
commit 20487e12af

View File

@ -25611,7 +25611,7 @@ stock BreakPlayerCuffs( playerid, &attempts = 0 )
GetServerPoliceRatio( police_percentage ); GetServerPoliceRatio( police_percentage );
// probability based off some factors // probability based off some factors
new probability = 25 + floatround( police_percentage ); new probability = 20 + floatround( police_percentage, floatround_floor );
// attempt to uncuff // attempt to uncuff
for ( attempts = 1; attempts < p_BobbyPins[ playerid ]; attempts ++ ) for ( attempts = 1; attempts < p_BobbyPins[ playerid ]; attempts ++ )