[Include] [INC] Factions + Ranks System - compatible to ANY mode - 0.1
#1

What is it?

This is an include that holds a system to set ranks for a player.

This can be used for DM, TDM, RPG, FreeRoam, Stunt and most likely ANY other gamemode style.

How to use it?

You have these functions:

Code:
native SetPlayerRank(playerid, pfactionid, prankid);
native ResetPlayerFactionRankl(playerid);
native GetPlayerFaction(playerid);
native GetPlayerRank(playerid);
native RANKS_conncet(playerid);
Here is an explanation for each:

Function: SetPlayerRank

Used for setting the faction and rank of a player

Function: ResetPlayerFactionRank

Used for resetting a players faction and rank to NIL (NIL = -1)

Function: GetPlayerFaction

Used for returning a players faction

Function: GetPlayerRank

Used for returning a players Rank

Function: RANKS_connect

Used to set a players faction an rank to NIL on connection (Use at OnPlayerConnect(playerid))

How to make ranks?

This is a system that uses DEFINES for ID's like so:

pawn Code:
#define FACTION_COP 0
#define FACTION_FBI 1
#define RANK_COP_CADET 0
#define RANK_COP_OFFICER 1
#define RANK_FBI_AGENT 0
#define RANK_FBI_SAGENT 1 //special agent
The system is at your hands, see what you can do with it all.

Download:

Factions + Ranks System 0.1 (Mediafire)

Attached below is the file also if you don't want to download from MediaFire

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)