Problem in Score Capping
#7

pawn Код:
// Top of script
new pClass[ MAX_PLAYERS ]; // Adjust accordingly

public OnPlayerRequestSpawn( playerid )
{
   if( pClass[ playerid ] == 6 )
   {
      if( GetPlayerScore( playerid ) < 500 )
      {
         SendClientMessage( playerid, 0xFFFFFFFF, "You have to have at least 500 score to be a police officer!" );
         return 0;
      }
   }
   return 1;
}

public OnPlayerRequestClass( playerid, classid )
{
   pClass[ playerid ] = classid;
   return 1;
}
Reply


Messages In This Thread
Problem in Score Capping - by X35B - 22.12.2010, 05:02
Re: Problem in Score Capping - by Sledge - 22.12.2010, 05:07
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:09
Re: Problem in Score Capping - by Sledge - 22.12.2010, 05:12
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:14
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:16
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:20
Re: Problem in Score Capping - by X35B - 22.12.2010, 05:37
Re: Problem in Score Capping - by Grim_ - 22.12.2010, 05:43

Forum Jump:


Users browsing this thread: 2 Guest(s)