Family Rank 0 help
#1

alright i am trying to make a rank 0 in the family system i added all the other stuff such as that you can set family rank 0 name but i now i need to when you invite the player in the family he gets rank 1 not 0 i dont know what to edit so the player gets rank 0 when he gets invited in the family here is some of the /adjust invite system


Quote:

}
GivePlayerCash(playerid, -50000);
GetPlayerPos(playerid, FamilyInfo[family][FamilySafe][0],FamilyInfo[family][FamilySafe][1],FamilyInfo[family][FamilySafe][2]);
FamilyInfo[family][FamilyCash] = 0;
FamilyInfo[family][FamilyMats] = 0;
FamilyInfo[family][FamilyPot] = 0;
FamilyInfo[family][FamilyCrack] = 0;
if(FamilyInfo[family][FamilyUSafe]) DestroyDynamicPickup(FamilyInfo[family][FamilyPickup]);
FamilyInfo[family][FamilyUSafe] = 1;
FamilyInfo[family][FamilyPickup] = CreateDynamicPickup(1239, 23, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2]);
SaveFamilies();
SendClientMessageEx(playerid, COLOR_WHITE, "You've adjusted your family's Safe.");
format(string, sizeof(string), "%s adjusted family %d's safe", GetPlayerNameEx(playerid), family+0);
Log("logs/family.log", string);
}
else if(strcmp(choice,"invite",true) == 0)
{
if(!strlen(opstring))
{
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /adjust invite [playerid]");
return 1;
}
new giveplayerid = ReturnUser(opstring);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (PlayerInfo[giveplayerid][pFMember] == 255)
{
// No more of this shit, our system is not designed for this
/*if(PlayerInfo[giveplayerid][pLeader] == 2 || PlayerInfo[giveplayerid][pMember] == 2 && PlayerInfo[giveplayerid][pDivision] == 2)
{
if(PlayerInfo[giveplayerid][pGangWarn] >= 3)
{
SendClientMessageEx(playerid, COLOR_WHITE, "That player can not be invited. They are banned from being in a gang.");
return 1;
}
format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
InviteFaction[giveplayerid] = 0;
InviteOffer[giveplayerid] = playerid;
InviteFamily[giveplayerid] = family;
}*/
if(PlayerInfo[giveplayerid][pLeader] == 0 && PlayerInfo[giveplayerid][pMember] == 0)
{
if(PlayerInfo[giveplayerid][pGangWarn] >= 3)
{
SendClientMessageEx(playerid, COLOR_WHITE, "That player can not be invited. They are banned from being in a gang.");
return 1;
}
format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
InviteFaction[giveplayerid] = 0;
InviteOffer[giveplayerid] = playerid;
InviteFamily[giveplayerid] = family;
format(string, sizeof(string), "%s invited %s to family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+0);
Log("logs/family.log", string);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "That player is already in a family/faction.");
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "That player is already in a family/faction.");
}
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.");
return 1;
}
}

Reply


Messages In This Thread
Family Rank 0 help - by TonyNames - 03.11.2013, 14:16
Re: Family Rank 0 help - by TonyNames - 03.11.2013, 15:45
Re: Family Rank 0 help - by EliteApple - 03.11.2013, 18:02
Re: Family Rank 0 help - by TonyNames - 03.11.2013, 18:05
Re: Family Rank 0 help - by EliteApple - 03.11.2013, 18:06
Re: Family Rank 0 help - by Brandon_More - 03.11.2013, 18:09
Re: Family Rank 0 help - by EliteApple - 03.11.2013, 18:10
Re: Family Rank 0 help - by TonyNames - 03.11.2013, 18:25
Re: Family Rank 0 help - by EliteApple - 03.11.2013, 18:27
Re: Family Rank 0 help - by Brandon_More - 03.11.2013, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)