05.01.2015, 04:17
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.
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. |
skinchange[playerid] =1;
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, 1);
TogglePlayerSpectating(playerid, 0);
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;
}