SA-MP Forums Archive
[Help] Clothing System - 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: [Help] Clothing System (/showthread.php?tid=554792)



[Help] Clothing System - Arxalan - 05.01.2015

Hello all , i want to add the default clothing system as did in the San andreas single player . IN which player can choose skins by going into clothes shop (binco , zip etc) and choose there clothes inside the room.


Re: [Help] Clothing System - Schneider - 05.01.2015

You can't change player clothes like in singleplayer, just complete skins.
P.s. was the code I gave you in your other topic useful for you?


Re: [Help] Clothing System - Arxalan - 05.01.2015

Yeah i ma talking about the complete skin not only one shirt , pant or hat etc . I want to change the complete skin but i want to do that like single player function . That player needs to enter into the dressing room and a dialog appears and player need to choose the skin and then come out .
I don't know where you sent me the code. So please send it again.


Re: [Help] Clothing System - Lordzy - 05.01.2015

You can use animations and skin functions to do it.


Re: [Help] Clothing System - Banana_Ghost - 05.01.2015

Quote:
Originally Posted by Arxalan
Посмотреть сообщение
Yeah i ma talking about the complete skin not only one shirt , pant or hat etc . I want to change the complete skin but i want to do that like single player function . That player needs to enter into the dressing room and a dialog appears and player need to choose the skin and then come out .
I don't know where you sent me the code. So please send it again.
Force the player to go to class selection using the following code and a variable
pawn Код:
skinchange[playerid] =1;
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, 1);
TogglePlayerSpectating(playerid, 0);
you can make it a command or something.

then use that variable under OnPlayerRequestClass and try something like this
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    //your default class code
    //then
    if(skinchange[playerid] == 1)
    {
        //Change This To The Dressing Room Position, etc.
        SetPlayerPos(playerid,0.00,0.00,0.00);
        SetPlayerFacingAngle(playerid,0.00);
        SetPlayerCameraLookAt(playerid, 0.00,0.00,0.00);
        SetPlayerCameraPos(playerid, 0.00,0.00,0.00);
        SetPlayerInterior(playerid, 0);
    }
    return 1;
}



Re: [Help] Clothing System - Beckett - 05.01.2015

If you want the player to go in and out that wont be easy and will need calculations aswell as knowing of how Menus work.

Related Links:

https://sampwiki.blast.hk/wiki/CreateMenu
https://sampwiki.blast.hk/wiki/Skins:Public
https://sampwiki.blast.hk/wiki/SetPlayerSkin
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/MoveObject
https://sampwiki.blast.hk/wiki/CreateObject


Re: [Help] Clothing System - Arxalan - 07.01.2015

Is there any Object creator and mover (in game) because it is so difficult to make an object in pawn with out having an idea.