SA-MP Forums Archive
Change clothes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Change clothes (/showthread.php?tid=298194)



Change clothes - Qur - 19.11.2011

Hey.. i'm using GF script.. and..
When player using /changeclothes in his HQ he get to screen with the faction skins and he can write 'next' to next one or 'done' anyway.. for some reason..
it jump to the first skin of the next faction and the first skin of the faction is gone..
anyway..

pawn Код:
case 5: //Mafia SKINS
                {
                    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[25][0]; }
                    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[26][0]; }
                    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[27][0]; }
                    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[28][0]; }
                    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[29][0]; }
                    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[30][0]; }
                }
                case 6: //Triads SKINS
                {
                    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[32][0]; }
                    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[33][0]; }
                    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[34][0]; }
                    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[35][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[35][0]; }
                    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[36][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[36][0]; }
                    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[37][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[37][0]; }
                }
I hope I explained it well.. and someone will give me a good idea how to fix it


Re: Change clothes - Joshb93 - 19.11.2011

Actually, no.. you didnt explain it well. Please re-explain it, and then i will attempt to help you.


Re: Change clothes - Qur - 19.11.2011

Okay.. as you see Joinped 25 is the first and 30 is last.. so when you get to 30 so it jump to 31 and 25 is gone.. then it keep goes like: 26,27,28,29,30,31 and that's it..

now better?


Re: Change clothes - Joshb93 - 19.11.2011

Ahh.. Yes. And i see why.. do you have Skype or MSN?

My skype is josh.beverly
MSN is beverlyj93@hotmail.com


Re: Change clothes - Qur - 19.11.2011

... Cant you just help here?

anyway... anyone? I really need it fast.. thanks


Re: Change clothes - KosmasRego - 19.11.2011

Try using a dialog