05.10.2011, 18:57
You need to create something like:
pawn Код:
// Ontop
new Cuffed[ MAX_PLAYERS ],
public OnPlayerDisconnect(playerid, reason)
{
if( Cuffed[ playerid ] == 1 )
{
// Quitjail function.
}
else
{
// Leave messages.
}
return 1;
}
// At your cuff command:
Cuffed[ playerid ] = 1;
// At your uncuff command:
Cuffed[ playerid ] = 0;