Skins Questions
#1

Hi..I have 2 questions:
1: How can I change the skins to families by rank?
2: How can I change skins from the beginning?(F4 + Kill)
If you need a line or something please tell me.
Thanks!
Reply
#2

for 1 we need to see some more of your script

for 2; ForceClassSelection(playerid);
Reply
#3

pawn Код:
if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
                    else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
                    else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
                    else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
                    else if(PlayerInfo[playerid][pMember] == 5) { ChosenSkin[playerid] = 117; SetPlayerSkin(playerid, 117); }
                    else if(PlayerInfo[playerid][pMember] == 6) { ChosenSkin[playerid] = 111; SetPlayerSkin(playerid, 111); }
                    else if(PlayerInfo[playerid][pMember] == 8) { ChosenSkin[playerid] = 249; SetPlayerSkin(playerid, 249); }
                    else if(PlayerInfo[playerid][pMember] == 9) { ChosenSkin[playerid] = 148; SetPlayerSkin(playerid, 148); }
                    //else if(PlayerInfo[playerid][pJob] == 13) { ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
                    //else if(PlayerInfo[playerid][pMember] == 11) { ChosenSkin[playerid] = 59; SetPlayerSkin(playerid, 59); }
                    else if(PlayerInfo[playerid][pMember] == 14) { ChosenSkin[playerid] = 169; SetPlayerSkin(playerid, 169); }
                    else if(PlayerInfo[playerid][pMember] == 15) { ChosenSkin[playerid] = 127; SetPlayerSkin(playerid, 127); }
                    else if(PlayerInfo[playerid][pMember] == 16) { ChosenSkin[playerid] = 184; SetPlayerSkin(playerid, 184); }
Reply
#4

1. Change the SetPlayerSkin ID to some other skin: SetPlayerSkin(playerid, skinid)
2. In strcmp:
pawn Код:
if(strcmp("/changeskin", cmdtext, true, 11) == 0)
{
    ForceClassSelection(playerid);
    return SetPlayerHealth(playerid, 0.0);
}
But you should better use ZCMD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)