God Father Faction Ranks Editing - 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: God Father Faction Ranks Editing (
/showthread.php?tid=255333)
God Father Faction Ranks Editing -
seanny - 15.05.2011
How Do i edit the GF faction ranks?
Here is the script I need help with
Код:
case 1: // police
{
switch(PlayerInfo[playerid][pRank])
{
case 6: string = "Chief";
case 5: string = "Deputy Chief";
case 4: string = "Captain";
case 3: string = "Sergeant";
case 2: string = "Senior Officer";
case 1: string = "Officer";
default: string = "Cadet";
}
}
I want:
12.Chief
11.Deputy Chief
10.Commander
9.Captain II
8.Captain I
7.Sargent II
6.Sargent I
5.Lead Officer
4.Senior Officer
3.Officer II
2.Officer I
1.Cadet
Re: God Father Faction Ranks Editing -
seanny - 15.05.2011
BUMP - Urgent
Re: God Father Faction Ranks Editing -
TheGarfield - 15.05.2011
use stock's!
pawn Код:
stock GetPlayerRank(playerid)
{
static iStr[100];
if(PlayerInfo[playerid][pRank] == 12) iStr = "Chief";
if(PlayerInfo[playerid][pRank] == 11) iStr = "Deputy Chief";
if(PlayerInfo[playerid][pRank] == 10) iStr = "Commander";
if(PlayerInfo[playerid][pRank] == 9) iStr = "Captain II";
if(PlayerInfo[playerid][pRank] == 8) iStr = "Captain I";
if(PlayerInfo[playerid][pRank] == 7) iStr = "Sargent II";
if(PlayerInfo[playerid][pRank] == 6) iStr = "Sargent I";
if(PlayerInfo[playerid][pRank] == 5) iStr = "Lead Officer";
if(PlayerInfo[playerid][pRank] == 4) iStr = "Senior Officer";
if(PlayerInfo[playerid][pRank] == 3) iStr = "Officer II";
if(PlayerInfo[playerid][pRank] == 2) iStr = "Officer I";
if(PlayerInfo[playerid][pRank] == 1) iStr = "Cadet";
return iStr;
}
Re: God Father Faction Ranks Editing -
KeyWay - 15.05.2011
People are still using GF edits? O.o I mean, there is lot of better GM's out there... GF times are old...