Need help with comand
#3

pawn Код:
new FactionChat = 1;

    if(strcmp(cmd,"/fchat",true) == 0)
    {
        if(PlayerInfo[playerid][tier]>1) return SendClientError(playerid,"You cannot use this command");
        if(FactionChat == 0)
        {
            switch(PlayerInfo[playerid][playerteam])
            {
                case CORLEONE: corleonechat=true;
                case TATTAGLIA: tattagliachat=true;
                case STRACCI: straccichat=true;
                case CUNEO: cuneochat=true;
                case BARZINI: barzinichat=true;
                case SICILIONE: sicilionechat=true;
                case TRIAD: triadchat=true;
                case COPS: copschat=true;
                case HITMAN: hitmanchat=true;
                case SASF: sasfchat=true;
                case POLITIC: politicchat=true;
                case SDC: sdcchat=true;
                case CDC: cdcchat=true;
                case LATINKINGS: latinchat=true;
                case DOWNTOWNKINGS: dtkingschat=true;
                case FBI: fbichat=true;
            }
            SendClientMessageToTeam(PlayerInfo[playerid][playerteam],".: Faction: Faction chat has been enabled :.",COLOR_LIGHTBLUE);
            FactionChat = 1;
            return 1;
        }
        else if(FactionChat == 1)
        {
            switch(PlayerInfo[playerid][playerteam])
            {
                case CORLEONE: corleonechat=false;
                case TATTAGLIA: tattagliachat=false;
                case STRACCI: straccichat=false;
                case CUNEO: cuneochat=false;
                case BARZINI: barzinichat=false;
                case SICILIONE: sicilionechat=false;
                case TRIAD: triadchat=false;
                case COPS: copschat=false;
                case HITMAN: hitmanchat=false;
                case SASF: sasfchat=false;
                case POLITIC: politicchat=false;
                case SDC: sdcchat=false;
                case CDC: cdcchat=false;
                case LATINKINGS: latinchat=false;
                case DOWNTOWNKINGS: dtkingschat=false;
                case FBI: fbichat=false;
            }
            SendClientMessageToTeam(PlayerInfo[playerid][playerteam],".: Faction: Faction chat has been disabled :.",COLOR_LIGHTBLUE);
            FactionChat = 0;                
            return 1;
        }
    }
Reply


Messages In This Thread
Need help with comand - by MadafakaPro - 25.07.2012, 12:26
Re: Need help with comand - by MadafakaPro - 25.07.2012, 17:07
Re : Need help with comand - by lelemaster - 25.07.2012, 17:48
Re: Need help with comand - by MadafakaPro - 26.07.2012, 21:31
Re: Need help with comand - by Marlon_Lorran - 26.07.2012, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)