Is there something wrong in this command?
#8

Код:
CMD:fdelete(playerid, params[]) 
{ 
    if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 1 || PlayerInfo[playerid][pAdmin] >= 3) 
    { 
        if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5) 
              return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); 

        new family; 
        if(sscanf(params, "d", family)) 
            return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fdelete [familyid]"); 

        if(family < 1 || family > 10)
        	return SendClientMessage(playerid, COLOR_GREY, "Gang slot can't be below 1 or above!");

        if(FamilyInfo[family-1][FamilyTaken != 1])
        	return SendClientMessage(playerid, COLOR_GREY, "   That Gang Slot isn't taken!"); 

        ClearFamily(family); 
        SaveGangs(); 
        for(new i=0; i < MAX_POINTS; i++) 
        { 
            if(Points[i][OwnerTeam] == family) 
            { 
                Points[i][OwnerTeam] = 0; 
            } 
        } 
    } 
    return 1; 
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)