16.07.2013, 16:34
Hello!I wanted to ask you how i can make that player can choose my skins when he chooses hes gender - onplayerrequestclass.
I already made gender selection.
I already made gender selection.
public OnGameModeInit()
{
AddPlayerClass(2,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
forward SetupPlayerForClassSelection(playerid);
public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetPlayerFacingAngle(playerid, 270.0);
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
if(PlayerInfo[playerid][Gender] == Male)
{
AddPlayerClass( ...) etc?