13.08.2011, 08:46
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