Skin problems
#7

Here, Change the comments to your desired skins
pawn Code:
if(dialogid == DCLASS)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    ResetPlayerWeapons(playerid);
                    gClass[playerid] = ASSAULT;
                    GivePlayerWeapon(playerid,27,193);
                    GivePlayerWeapon(playerid,31,210);
                    GivePlayerWeapon(playerid,24,300);
                   
                    //SetPlayerSkin(playerid, ASSAULT_SKIN);
                    SendClientMessage(playerid,COLOR_PINK,"[INFO]:You have selected assault class for your class");
                }
                case 1:
                {
                    ResetPlayerWeapons(playerid);
                    gClass[playerid] = SNIPER;
                    GivePlayerWeapon(playerid,24,250);
                    GivePlayerWeapon(playerid,25,20);
                    GivePlayerWeapon(playerid,29,300);
                   
                    //SetPlayerSkin(playerid, SNIPER_SKIN);
                    SendClientMessage(playerid,COLOR_PINK,"[INFO]:You have selected Sniper class for your class");
                }
                case 2:
                {
                    if(GetPlayerScore(playerid) > 1500)
                    {
                        ResetPlayerWeapons(playerid);
                        SendClientMessage(playerid,COLOR_PINK,"[INFO]:You have selected Engineer for your class");
                        GivePlayerWeapon(playerid,27,450);
                        GivePlayerWeapon(playerid,24,450);
                        GivePlayerWeapon(playerid,31,500);
                        GivePlayerWeapon(playerid,35,10);
                        gClass[playerid] = ENGINEER;
                       
                        //SetPlayerSkin(playerid, ENGINEER_SKIN);
                    }
                    else
                    {
                        SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:1500 Scores required for this class!");
                        ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
                    }
                }
                case 3:
                {
                    if(GetPlayerScore(playerid)>1200)
                    {
                        ResetPlayerWeapons(playerid);
                        SendClientMessage(playerid,COLOR_PINK,"[INFO]:You have selected Pilot for your class");
                        GivePlayerWeapon(playerid,16,10);
                        GivePlayerWeapon(playerid,27,300);
                        GivePlayerWeapon(playerid,24,350);
                        gClass[playerid] = PILOT;
                       
                        //SetPlayerSkin(playerid, PILOT_SKIN);
                    }
                    else
                    {
                        SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:1200 Scores required for this class!");
                        ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
                    }
                }
                case 4:
                {
                    if(PlayerInfo[playerid][pVip]>0)
                    {
                        ResetPlayerWeapons(playerid);
                        SendClientMessage(playerid,COLOR_PINK,"[INFO]:You have selected Medic for your class");
                        GivePlayerWeapon(playerid,27,450);
                        GivePlayerWeapon(playerid,24,450);
                        GivePlayerWeapon(playerid,31,500);
                        GivePlayerWeapon(playerid,35,30);
                        GivePlayerWeapon(playerid,29,600);
                        gClass[playerid] = MEDIC;
                       
                        //SetPlayerSkin(playerid, MEDIC_SKIN);
                    }
                    else
                    {
                        ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
                        return 0;
                    }
                }
                case 5:
                {
                    if(GetPlayerScore(playerid)>=1800)
                    {
                        ResetPlayerWeapons(playerid);
                        SendClientMessage(playerid,COLOR_PINK,"[INFO]:You Have selected bomber for your class!");
                        GivePlayerWeapon(playerid,27,450);
                        GivePlayerWeapon(playerid,35,10);
                        GivePlayerWeapon(playerid,24,450);
                        GivePlayerWeapon(playerid,16,10);
                        SendClientMessage(playerid,COLOR_GREEN,"This class is able to plant bomb anywhere you want using /plantbomb. Usable 5 times per death.Also can use /abomb to plant bomb to nearest player");
                        gClass[playerid] = DONOR;
                       
                        //SetPlayerSkin(playerid, DONOR_SKIN);
                    }
                    else
                    {
                        SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:This class is required 1800 scores!");
                        ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
                        return 0;
                    }
                }
                case 6:
                {
                    if(GetPlayerScore(playerid)>=1500)
                    {
                        ResetPlayerWeapons(playerid);
                        SendClientMessage(playerid,COLOR_PINK,"[INFO]:You Have selected bomber for your class!");
                        GivePlayerWeapon(playerid,27,450);
                        GivePlayerWeapon(playerid,35,10);
                        GivePlayerWeapon(playerid,24,450);
                        GivePlayerWeapon(playerid,29,450);
                        GivePlayerWeapon(playerid,25,30);
                        gClass[playerid] = SUPPORTER;
                       
                        //SetPlayerSkin(playerid, SUPPORTER_SKIN);
                    }
                    else
                    {
                        SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:This class is required 1500 scores!");
                        ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
                        return 0;
                    }
                }
            }
        }
        if(!response)
        {
            SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You must choose your class!");
            ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Select your class","Assault - Score 0\nSniper - Score 0\nEngineer - Score 1500\nPilot - Score 1200\nCaptain - Score 2500\nDonor - Only for donators\nBomber - Score 1800\nSupporter - Score 1500","Select","");
            return 0;
        }
    }
Reply


Messages In This Thread
Skin problems - by TheSnaKe - 31.12.2013, 22:09
Re: Skin problems - by Excelize - 31.12.2013, 22:21
Re: Skin problems - by TheSnaKe - 31.12.2013, 22:25
Re: Skin problems - by TheSnaKe - 31.12.2013, 22:56
Re: Skin problems - by Type-R - 31.12.2013, 23:07
Re: Skin problems - by TheSnaKe - 31.12.2013, 23:26
Re: Skin problems - by xVIP3Rx - 31.12.2013, 23:41
Re: Skin problems - by TheSnaKe - 31.12.2013, 23:56
Re: Skin problems - by xVIP3Rx - 01.01.2014, 00:02
Re: Skin problems - by TheSnaKe - 01.01.2014, 00:05

Forum Jump:


Users browsing this thread: 2 Guest(s)