Skins don't appear in class selection
#1

Hello everyone, how can I make skinds appear in class selection? This is my code:

Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Basic Team Deathmatch");
	//----------------|| COPS ||-------------------------
	//(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
	AddPlayerClass(280, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
	// Homeless
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	switch(classid)
	{
	    case 0:
	 	{
	 	    SetPlayerTeam(playerid, Cops);
	 	    GameTextForPlayer(playerid, "~b~Cops", 1000, 3);
	 	}
		case 1:
		{
		    SetPlayerTeam(playerid, Homeless);
		    GameTextForPlayer(playerid, "~r~Homeless", 1000, 3);
		}
	}
	return 1;
}
For some reason, I can only see the game text but not the actual skins. Am I doing it wrong?
Reply
#2

I didn't see any where you set skin..
Reply
#3

Do it like this:

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746),SetPlayerFacingAngle(playerid,269.15-90.0);
    
SetPlayerCameraPos(playerid1958.37831340.015.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    switch(
classid)
    {
        case 
0:
        {
             
SetPlayerTeam(playeridCops);
             
GameTextForPlayer(playerid"~b~Cops"10003);
        }
        case 
1:
        {
            
SetPlayerTeam(playeridHomeless);
            
GameTextForPlayer(playerid"~r~Homeless"10003);
        }
    }
    return 
1;

Reply
#4

Well, uh, how can I do that?
Reply
#5

Quote:
Originally Posted by Rudey
Посмотреть сообщение
Well, uh, how can I do that?
Just read my post...

AddPlayerClass sets the skin automatically
Reply
#6

I see, my post was accidental as I was referring to fuckingcruse

Thank you Kaliber. However, it only shows a part of the skin's "body", do you have any other co-ordinates that could work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)