adds back /(bc)breakcuffs
This commit is contained in:
parent
d4ec561a8a
commit
64a089e024
@ -306,6 +306,12 @@ CMD:detain( playerid, params[ ] )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CMD:bc( playerid, params[ ] ) return cmd_breakcuffs(playerid, params);
|
||||||
|
CMD:breakcuffs( playerid, params[ ] )
|
||||||
|
{
|
||||||
|
return BreakPlayerCuffs( playerid );
|
||||||
|
}
|
||||||
|
|
||||||
/* ** Functions ** */
|
/* ** Functions ** */
|
||||||
stock AwardArrest( victimid, playerid )
|
stock AwardArrest( victimid, playerid )
|
||||||
{
|
{
|
||||||
@ -369,6 +375,8 @@ stock BreakPlayerCuffs( playerid )
|
|||||||
{
|
{
|
||||||
if ( !IsPlayerConnected( playerid ) || IsPlayerDead( playerid ) ) return false;
|
if ( !IsPlayerConnected( playerid ) || IsPlayerDead( playerid ) ) return false;
|
||||||
|
|
||||||
|
if ( !IsPlayerCuffed( playerid ) ) return SendError( playerid, "You are not cuffed." );
|
||||||
|
|
||||||
if ( p_BobbyPins[ playerid ] < 1 )
|
if ( p_BobbyPins[ playerid ] < 1 )
|
||||||
{
|
{
|
||||||
ShowPlayerHelpDialog( playerid, 4000, "You can buy bobby pins at Supa Save or a 24/7 store to break cuffs." );
|
ShowPlayerHelpDialog( playerid, 4000, "You can buy bobby pins at Supa Save or a 24/7 store to break cuffs." );
|
||||||
@ -406,13 +414,11 @@ stock BreakPlayerCuffs( playerid )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SendServerMessage( playerid, "You have snapped your bobby pin and failed to break out of your cuffs. Re-attempting in 3 seconds." );
|
SendServerMessage( playerid, "You have snapped your bobby pin and failed to break out of your cuffs." );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function BreakPlayerCuffsAttempt( playerid ) return BreakPlayerCuffs( playerid ), 1;
|
|
||||||
|
|
||||||
stock AwardNearestLEO( playerid, reason )
|
stock AwardNearestLEO( playerid, reason )
|
||||||
{
|
{
|
||||||
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 || IsPlayerDead( playerid ) )
|
if ( ! IsPlayerConnected( playerid ) || playerid == INVALID_PLAYER_ID || GetPlayerWantedLevel( playerid ) < 2 || IsPlayerDead( playerid ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user