[Help] Clothing System
#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


Messages In This Thread
[Help] Clothing System - by Arxalan - 05.01.2015, 04:17
Re: [Help] Clothing System - by Schneider - 05.01.2015, 04:32
Re: [Help] Clothing System - by Arxalan - 05.01.2015, 06:21
Re: [Help] Clothing System - by Lordzy - 05.01.2015, 07:17
Re: [Help] Clothing System - by Banana_Ghost - 05.01.2015, 07:28
Re: [Help] Clothing System - by DaniceMcHarley - 05.01.2015, 07:36
Re: [Help] Clothing System - by Arxalan - 07.01.2015, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)