Faction/Team Help
#1

Well i have this faction thing i have on my gamemode... this is it:
pawn Код:
//My player data
enum PlayerData
{
    pMemberF, //This is the only part you have to focus on
    pMemberG,
    Cash,
    AdminLevel,
    Name[MAX_PLAYER_NAME],
    IP[16],
    Registered,
    Password,
    LoggedIn,
    Autologin,
    Kills,
    Deaths
};
//===============================================
//OnPlayerconnect Part
PlayerInfo[playerid][pMemberF] = dini_Int(file,"Faction");
//OnPlayerDisconnect
dini_IntSet(pfile,"Faction",PlayerInfo[playerid][pMemberF]);
//After i register to m ake sure im in civilian group (0)
PlayerInfo[playerid][pMemberF] = 0;
I wanna know how to make ranks for this, (chat if your nice to figure it out), and im wondering when i add this to my /stats instead of it showing 0 (if im civilian) to it actually saying Civilian (or none on popular scripts) like on good scripts.

So this is practicly what i want:
1)Wondering how i make ranks for each factions (all up to 6)
2)If you can, figure out a way to do /d (department chat) and shit like that for factions.
3)And how to make it show up as "Civilian" if my pMemberF is set to 0 instead of it showing up as 0 on /stats.

PS: this is my /stats command.
pawn Код:
dcmd_stats(playerid,params[])
{
    #pragma unused params
    new string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "{669900}|Account|{FFFFFF} Name: %s | Kills: %d | Deaths: %d | Cash: %d", name, PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], GetPlayerMoney(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)