[Help] Clothing System
#1

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.
Reply
#2

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?
Reply
#3

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.
Reply
#4

You can use animations and skin functions to do it.
Reply
#5

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;
}
Reply
#6

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
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)