adds KillTimer for arrest, forgot to do when re-did branch
This commit is contained in:
parent
7eae2186a5
commit
9bc63471cb
@ -278,6 +278,8 @@ stock ArrestPlayer( victimid, playerid )
|
|||||||
GivePlayerSeasonalXP( victimid, -20.0 );
|
GivePlayerSeasonalXP( victimid, -20.0 );
|
||||||
SendGlobalMessage( -1, ""COL_GOLD"[JAIL]{FFFFFF} %s(%d) has sent %s(%d) to jail for %d seconds!", ReturnPlayerName( playerid ), playerid, ReturnPlayerName( victimid ), victimid, totalSeconds );
|
SendGlobalMessage( -1, ""COL_GOLD"[JAIL]{FFFFFF} %s(%d) has sent %s(%d) to jail for %d seconds!", ReturnPlayerName( playerid ), playerid, ReturnPlayerName( victimid ), victimid, totalSeconds );
|
||||||
JailPlayer( victimid, totalSeconds );
|
JailPlayer( victimid, totalSeconds );
|
||||||
|
KillTimer( p_AwaitingBCAttemptTimer[ victimid ] );
|
||||||
|
p_AwaitingBCAttemptTimer[ playerid ] = SetTimerEx( "BreakPlayerCuffsAttempt", 3000, false, "d", victimid );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else return SendError( playerid, "There are no players around to arrest." );
|
else return SendError( playerid, "There are no players around to arrest." );
|
||||||
|
Loading…
Reference in New Issue
Block a user