Some players appear afk,but there are not!
#7

pawn Код:
CMD:afk ( playerid, params[] )
{
      if ( PlayerInfo[ playerid ][ isafk ] == 1 )
        Announce( playerid, "~r~ERROR!: ~y~You are already in AFK mode!", 4000, 4 );
      PlayerInfo[ playerid ][ isafk] = 1;
      TogglePlayerControllable( playerid, 0 );
      // You can add all those GameTexts here..
      return 1;
}
pawn Код:
CMD:back ( playerid, params[] )
{
      if ( PlayerInfo[ playerid ][ isafk ] == 0 )
        Announce( playerid, "~r~ERROR!: ~y~You are not ~r~AFK ~y~or ~r~BRB.", 4000, 4 );
      PlayerInfo[ playerid ][ isafk ] = 0;
      TogglePlayerControllable( playerid, 1 );
      // You can add all those GameTexts here..
      return 1;
}
Sorry, but I don't know how those timers work..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)