Making a Police Officer Ranking System
#1

Hello SA-MP User's.


I'm Currently Working on my Police Catching System to Arrest Criminals.
I'm Wanting to After a Certain Amount of a Arrests maybe Using something like
Код:
SetPVarInt(playerid, "Arrests", 0);
Now If The Arrests == Somthing like 5 They Reach Level One; Officer - In Trainning,
How Would i go About Doing this?

If Someone Could help me Script the Function give me some Guidlines ect, I Would Most Appreciate it.


Cheers!
Reply
#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
#3

i want a police system for example when you type /911 i want to appear "call police""call medic" for arrest and suff and medic someone and for that i want this system,, because i have make a reallife server but i dont have police and medic system ,,please help me contact with me at mitsos-1997-221@hotmail.com
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)