Is there a quicker way?
#7

Quote:
Originally Posted by Lz
Посмотреть сообщение
Thank you
Also maybe you will know whats wrong here?

pawn Код:
case 0: // PCSO // nothing
                {
                    if(FacInfo[playerid][fRank1] != 1) return 0;
                    SetPlayerSkin(playerid, 71);
                    format(string, sizeof(string), "* %s puts on their community support clothing.", RPN(playerid));
                    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
                }
                case 1: // Warrented Officer // Baton + Spray
                {
                    if(FacInfo[playerid][fRank1] >= 1) return SendClientMessage(playerid, COLOR_GREY, "You're not a high enough rank!");
                    GiveZaiatWeapon(playerid, 3, 1);
                    GiveZaiatWeapon(playerid, 41, 1000);
                    SetPlayerSkin(playerid, 280);
                    format(string, sizeof(string), "* %s grabs a Baton and CS Spray from their locker.", RPN(playerid));
                    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
                }
It sets them a warrented officer skin(280), However it doesn't set them the PCSO skin? (71)
pawn Код:
case 0: // PCSO // nothing
                {
                    if(FacInfo[playerid][fRank1] != 1) return 0; //You didn't return before.
                    SetPlayerSkin(playerid, 71);
                    format(string, sizeof(string), "* %s puts on their community support clothing.", RPN(playerid));
                    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
                }
                case 1: // Warrented Officer // Baton + Spray
                {
                    if(FacInfo[playerid][fRank1] >= 1) return SendClientMessage(playerid, COLOR_GREY, "You're not a high enough rank!");
                    GiveZaiatWeapon(playerid, 3, 1);
                    GiveZaiatWeapon(playerid, 41, 1000);
                    SetPlayerSkin(playerid, 280);
                    format(string, sizeof(string), "* %s grabs a Baton and CS Spray from their locker.", RPN(playerid));
                    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
                }
1:to do that easily, you can switch skin id's.
pawn Код:
switch(skin)
{
 case 251,252,181,255: return 0; //Etc.
Reply


Messages In This Thread
Is there a quicker way? - by Lz - 24.12.2012, 11:38
Re: Is there a quicker way? - by Mike_Peterson - 24.12.2012, 11:44
Re: Is there a quicker way? - by Lz - 24.12.2012, 11:48
Re: Is there a quicker way? - by SKAzini - 24.12.2012, 11:55
Re: Is there a quicker way? - by DaRk_RaiN - 24.12.2012, 11:55
Re: Is there a quicker way? - by Mike_Peterson - 24.12.2012, 11:55
Re: Is there a quicker way? - by Lordzy - 24.12.2012, 11:56
Re: Is there a quicker way? - by Lz - 24.12.2012, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)