Faction Starting
#1

So, I have been working off and on with an RP server from scratch, but I have come to an almost complete halt, I have no idea where I should start on making a faction, or how in that matter, any help will be appreciated, if it is helpful, you can plan for +Rep.

Thanks,
nmader.
Reply
#2

I do not quite understand what's going on. Want to add a fraction of it?
Reply
#3

Not exactly, I am just curious on how I would start on going making one, such as setting faction ranks, and #define'ing the faction itself, I guess right now that I am a bit overwhelmed.
Reply
#4

Quote:
Originally Posted by nmader
Посмотреть сообщение
Not exactly, I am just curious on how I would start on going making one, such as setting faction ranks, and #define'ing the faction itself, I guess right now that I am a bit overwhelmed.
Depends on whether you already have a fraction of the system or not. If this is not some work with it. If you need to see how it is done, because each map has a different system.
Reply
#5

It's not fraction it's faction.

Listen up, create variables for each charge. In the "PlayerInfo", where you host player's infpormation host what faction he belongs to.

I might also suggest you using files for each faction for dynamic creation, deletion, edition of leader and ranks and such.
So a file should look like that :
Filename would be "LSPD.txt"
Text:
Код:
Leader=Name_Name
Rank1=Officer 1
Rank2=Officer 2
Rank3=Officer 3
// ... so on
suggest you make a "Factions" directory if you want it all simpler for your eye.

Then, when you make accesses you can check player's faction then understand what he belongs, and get the ranks or what so ever inofmration from the files..


If you want more help, tell me. "Faction System" is mostly likely the easiest to build.
Reply
#6

This is how MY server has factions;
pawn Код:
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";
                }
            }
            case 2: // fbi
            {
                switch(PlayerInfo[playerid][pRank])
                {
                    case 6: string = "Director";
                    case 5: string = "Assistant Director";
                    case 4: string = "Veteran Agent";
                    case 3: string = "Special Agent in Charge";
                    case 2: string = "Special Agent";
                    case 1: string = "Special Agent Trainee";
                    default: string = "Intern";
                }
            }
Reply
#7

Quote:
Originally Posted by A7X_CEEJAY
Посмотреть сообщение
This is how MY server has factions;
pawn Код:
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";
                }
            }
            case 2: // fbi
            {
                switch(PlayerInfo[playerid][pRank])
                {
                    case 6: string = "Director";
                    case 5: string = "Assistant Director";
                    case 4: string = "Veteran Agent";
                    case 3: string = "Special Agent in Charge";
                    case 2: string = "Special Agent";
                    case 1: string = "Special Agent Trainee";
                    default: string = "Intern";
                }
            }
That would not be factions, that would be ranks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)