/hbadge
#3

Try this one


pawn Код:
CMD:hbadge(playerid, params[]) {
    if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4) {
        if(isnull(params)) {
            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hbadge [faction]");
            SendClientMessage(playerid, COLOR_GRAD3, "|0 Normal |1 LSPD |2 FBI |3 LSFMD ");
        }
        else switch(strval(params)) {
            case 0: {
                SendClientMessage(playerid, COLOR_WHITE, "You have set your badge back to normal.");
                SetPlayerColor(playerid,TEAM_HIT_COLOR);
            }
            case 1: {
                SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to LSPD.");
                SetPlayerColor(playerid,TEAM_BLUE_COLOR);
            }
            case 2: {
                SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to FBI.");
                SetPlayerColor(playerid,TEAM_FBI_COLOR);
            }
            case 3: {
                SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to LSFMD.");
                SetPlayerColor(playerid, TEAM_MED_COLOR);
            }
            default: SendClientMessage(playerid, COLOR_GREY, "Invalid faction specified.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
/hbadge - by MaDsON - 05.04.2014, 02:22
Re: /hbadge - by Spydah - 05.04.2014, 02:28
Re: /hbadge - by Lloyde - 05.04.2014, 05:44
Re: /hbadge - by Parallex - 05.04.2014, 05:45
Re: /hbadge - by Flake. - 05.04.2014, 05:51
Re: /hbadge - by Lloyde - 05.04.2014, 05:54
Re: /hbadge - by Parallex - 05.04.2014, 05:56

Forum Jump:


Users browsing this thread: 3 Guest(s)