Cheking Bad Actions
#2

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;
Reply


Messages In This Thread
Cheking Bad Actions - by ServerScripter - 05.10.2011, 18:50
Re: Cheking Bad Actions - by Kingunit - 05.10.2011, 18:57
Re: Cheking Bad Actions - by ServerScripter - 05.10.2011, 19:27
Re: Cheking Bad Actions - by Zonoya - 05.10.2011, 19:33
Re: Cheking Bad Actions - by Kingunit - 05.10.2011, 21:48
Re: Cheking Bad Actions - by ServerScripter - 05.10.2011, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)