Faction un drift server
#1

Hi

How can i create a gang like a faction in drift/stunts server?

With rank,base,leader.

Can you help me please?
Reply
#2

You'll need to rip off a faction system of a roleplay gamemode and put it in your server, define enums, use a saving .ini system...
Reply
#3

Quote:
Originally Posted by Darnell
View Post
You'll need to rip off a faction system of a roleplay gamemode and put it in your server, define enums, use a saving .ini system...
What are you even talking about?

PHP Code:
#define pTeam[MAX_PLAYERS];
#define pRank[MAX_PLAYERS]; 
This is all you need.
Reply
#4

PHP Code:
#define pTeam[MAX_PLAYERS];
#define pRank[MAX_PLAYERS]; 
This is all you need.[/QUOTE]

After i can add a faction?
Reply
#5

Quote:
Originally Posted by lucianmemo
View Post
PHP Code:
#define pTeam[MAX_PLAYERS];
#define pRank[MAX_PLAYERS]; 
This is all you need.
After i can add a faction?[/QUOTE]

PHP Code:
#define gTeam     [MAX_PLAYERS];
#define gRank   [MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
    if(
gTeam[playerid] = 0)
    {
        
SendClientMessage(playerid, -1"You are not part of any team!");
    }
    else if(
gTeam[playerid] = 1)
    {
        
SendClientMessage(playerid, -1"You are part of Team 1");
    }
    return 
1;
}
YCMD:getspecialweapon(playeridparams[], help)
{
    
#pragma unused help
    #pragma unused params
    
if(gTeam[playerid] = 0)
    {
        
SendClientMessage(playerid, -1"You don't get a weapon cause your not part of any team!");
    }
    else if(
gTeam[playerid] = 1)
    {
        if(
gRank[playerid] == 1) { GivePlayerWeapon(playerid2450); }
        if(
gRank[playerid] == 2) { GivePlayerWeapon(playerid3850); }
    }
    return 
1;

Couple examples of how it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)