29.02.2012, 18:13
I'm pretty sure I messed up on this... Anyone ?
pawn Код:
CMD:joingang(playerid,params[])
{
if( PlayerInfo[playerid][pMember] >= 3 || PlayerInfo[playerid][pFMember] != 255 || PlayerInfo[playerid][pLeader] >= 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pDivision] >= 3 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pDivision] == 1)
{
SendClientMessageEx(playerid, COLOR_WHITE, "You can't accept this invite as you're already in a family/faction.");
}
if (PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You must be at least level 2.");
}
if(IsPlayerInRangeOfPoint(playerid,3.0,2489.9746,-1691.7869,14.7656)) //Grove Street
{
PlayerInfo[playerid][pFMember] = 0;
PlayerInfo[playerid][pRank] = 1;
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"You have successfully joined Grove Street Families (Public Gang)! Remember this is a public gang!");
SaveFamilies();
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "Your not in range of a gang point to join!");
}
}
return 1;
}