Need Cmd Uninviteall
#3

its work bro, but i want reset all factions

or this commands for all faction kick

PHP код:
CMD:fackick(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pFactionModerator] >= 1)
    {
        new 
string[128], giveplayerid;
        if(
sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /fackick [playerid]");


        if(
IsPlayerConnected(giveplayerid))
        {
            if(
PlayerInfo[giveplayerid][pMember] >= || PlayerInfo[giveplayerid][pLeader] >= 1)
            {
                
format(stringsizeof(string), "You have been faction-kicked, by %s."GetPlayerNameExplayerid ));
                
SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);
                
PlayerInfo[giveplayerid][pTeam] = TEAM_GREEN;
                
gTeam[giveplayerid] = PlayerInfo[giveplayerid][pTeam];
                
PlayerInfo[giveplayerid][pMember] = 0;
                
PlayerInfo[giveplayerid][pRank] = 0;
                
PlayerInfo[giveplayerid][pChar] = 0;
                
PlayerInfo[giveplayerid][pDuty] = 0;
                
PlayerInfo[giveplayerid][pLeader] = 0;
                
PlayerInfo[giveplayerid][pDivision] = 0;
                if(!
IsValidSkin(GetPlayerSkin(giveplayerid)))
                {
                    new 
rand random(sizeof(CIV));
                    
SetPlayerSkin(giveplayerid,CIV[rand]);
                    
PlayerInfo[giveplayerid][pModel] = CIV[rand];
                }
                
player_remove_vip_toys(giveplayerid);
                
pTazer[giveplayerid] = 0;
                
SetPlayerToTeamColor(giveplayerid);
                
format(stringsizeof(string), "You have faction-kicked %s."GetPlayerNameEx(giveplayerid));
                
SendClientMessageEx(playeridCOLOR_WHITEstring);
            }
            else
            {
                
SendClientMessageEx(playeridCOLOR_WHITE"You can't kick someone from a faction if they're not a member.");
            }
        }
        else
        {
            
SendClientMessageEx(playeridCOLOR_GREY"Invalid player specified..");
        }
    }
    return 
1;

Reply


Messages In This Thread
Need Cmd Uninviteall - by DandyCorleone - 01.01.2017, 07:20
Re: Need Cmd Uninviteall - by iLearner - 01.01.2017, 08:22
Re: Need Cmd Uninviteall - by DandyCorleone - 01.01.2017, 08:41

Forum Jump:


Users browsing this thread: 2 Guest(s)