Making a Police Officer Ranking System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making a Police Officer Ranking System (
/showthread.php?tid=276264)
Making a Police Officer Ranking System -
iiKyle - 13.08.2011
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!
Re: Making a Police Officer Ranking System -
TouR - 13.08.2011
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
Re: Making a Police Officer Ranking System -
jimis - 13.08.2011
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