Making a Police Officer Ranking System
#2

pawn Код:
new
   PlayerArrests[500];  //at the top of the script

// under your arrest command
PlayerArrests[playerid]++;
SetPlayerLevelFromArrests(playerid, PlayerArrests[playeird] );



//somewhere in the script
forward SetPlayerLevelFromArrests( playerid, arrests )
public SetPlayerLevelFromArrests( playerid, arrests )
{
        switch( arrests )
        {
              case 5 : { SetPlayerScore(playerid, 1 ); }
              case (Number of arrests): SetPlayerScore(playerid, (The score you Want ) );
              case (Number of arrests): SetPlayerScore(playerid, (The score you Want ) );
              ...... and so on
        }
     return 1;
}

I made a quick one
Reply


Messages In This Thread
Making a Police Officer Ranking System - by iiKyle - 13.08.2011, 06:34
Re: Making a Police Officer Ranking System - by TouR - 13.08.2011, 08:46
Re: Making a Police Officer Ranking System - by jimis - 13.08.2011, 11:13

Forum Jump:


Users browsing this thread: 2 Guest(s)