Lower Wanted Level
#7

Quote:
Originally Posted by WrathOfGenesis
pawn Код:
public LWantedLevel ( )
{
  for ( new playerid = 0; playerid < MAX_PLAYERS; playerid ++ )
  {
    if ( IsPlayerConnected ( playerid ) )
    {
      if ( GetPlayerWantedLevel ( playerid ) > 1 && GetPlayerWantedLevel ( playerid ) < 6 )
      {
        SetPlayerWantedLevel ( playerid , GetPlayerWantedLevel ( playerid ) - 1 );
      }
    }
  }
}
If you put this as your timer and it will work for all people with wanted levels. Saves making 200 timers if you have 200 players.
I would make like this:
pawn Код:
public LWantedLevel ()
{
  for (new playerid = 0; playerid<MAX_PLAYERS; playerid++)
  {
    if (IsPlayerConnected(playerid))
    {
      if (GetPlayerWantedLevel(playerid)=>1 && GetPlayerWantedLevel(playerid)=<6)
      {
        SetPlayerWantedLevel (playerid,GetPlayerWantedLevel(playerid)-1);
      }
    }
  }
}
or it would ignore players with 1 and 6 wanted lvl :P
Reply


Messages In This Thread
Lower Wanted Level - by Kodman262 - 10.08.2009, 08:25
Re: Lower Wanted Level - by RSX - 10.08.2009, 08:36
Re: Lower Wanted Level - by Kodman262 - 10.08.2009, 08:38
Re: Lower Wanted Level - by Dark_Kostas - 10.08.2009, 08:41
Re: Lower Wanted Level - by WrathOfGenesis - 10.08.2009, 08:42
Re: Lower Wanted Level - by Kodman262 - 10.08.2009, 08:45
Re: Lower Wanted Level - by RSX - 10.08.2009, 08:46
Re: Lower Wanted Level - by WrathOfGenesis - 10.08.2009, 08:47
Re: Lower Wanted Level - by RSX - 10.08.2009, 08:49
Re: Lower Wanted Level - by Kodman262 - 10.08.2009, 08:51

Forum Jump:


Users browsing this thread: 1 Guest(s)