Making faction system more than 1 faction
#7

Quote:
Originally Posted by Mugala
Посмотреть сообщение
no, you must first get the faction ID.
Something like this? And what I need to do about cmd:f ?

And how can I set that, at makeleader, if value is 1 rank to be 15. if value is 2, rank to be 17 ?

PHP код:
stock GetRankName(playerid)
{
    new 
rankname[256];
    switch(
pInfo[playerid][pFaction])
    {
        case 
1:
        {
            switch(
pInfo[playerid][pRank])
            {
                case 
1rankname "Suspended Employee";
                case 
2rankname "Academy Student";
                case 
3rankname "Police Officer I";
                case 
4rankname "Police Officer II";
                case 
5rankname "Police Officer III";
                case 
6rankname "Police Officer III+1";
                case 
7rankname "Sergeant I";
                case 
8rankname "Sergeant II";
                case 
9rankname "Lieutenant I";
                case 
10rankname "Lieutenant II";
                case 
11rankname "Police Captain";
                case 
12rankname "Police Commander";
                case 
13rankname "Deputy Chief of Police";
                case 
14rankname "Assistant Chief of Police";
                case 
15rankname "Chief of Police";
            }
        }
           case 
2:
        {
            switch(
pInfo[playerid][pRank])
            {
                case 
1rankname "Suspended Employee";
                case 
2rankname "Academy Student";
                case 
3rankname "Probationary Firefighter";
                case 
4rankname "Firefighter I";
                case 
5rankname "Firefighter II";
                case 
6rankname "Paramedic";
                case 
7rankname "EMT";
                case 
8rankname "First Responder";
                case 
9rankname "Attending Physician";
                case 
10rankname "Chief Of Medicine";
                case 
11rankname "Lieutenant";
                case 
12rankname "Lieutenant II";
                case 
13rankname "Captain";
                case 
14rankname "Battalion Chief";
                case 
15rankname "Division Chief";
                case 
16rankname "Deputy Commissioner";
                case 
17rankname "Commissioner";
            }
        }
}
    return 
rankname;

Reply


Messages In This Thread
Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 20:58
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:14
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 21:15
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:25
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 21:28
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 21:42
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 22:03
Re: Making faction system more than 1 faction - by Zeus666 - 15.04.2018, 22:36
Re: Making faction system more than 1 faction - by Mugala - 15.04.2018, 22:43
Re: Making faction system more than 1 faction - by Zeus666 - 16.04.2018, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)