OnPlayerRequest class, Class Select doesn't appears
#1

The code I got is this:

Код:
public OnGameModeInit( )
{
	SetGameModeText (GameMode); // Le pone nombre al GameMode.
    AddPlayerClassEx( 0, 230, 1958.3783, 1343.1572, 15.3746, 269.1425, 24, 10000, 25, 10000, 34, 10000 ); // HOMELESS.
    AddPlayerClassEx( 1, 137, 1958.3783, 1343.1572, 15.3746, 269.1425, 24, 10000, 25, 10000, 34, 10000 ); // HOMELESS 2.

    return 1;
}

public OnPlayerRequestClass( playerid, classid )
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerInterior(playerid, 0);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	
    switch ( classid )
    {
        case 0:
        {
            GameTextForPlayer( playerid, "~r~TEAM ALPHA", 1000, 3 );
            // ~r~ es el color rojo entonces "TEAM ALPHA" va a estar escrito en color rojo.
            SetPlayerTeam( playerid, TEAM_HOMELESS );
        }

        case 1:
        {
            GameTextForPlayer( playerid, "~b~TEAM BETA", 100, 3 );
            // ~b~ es el color azul entonces "TEAM BETA" va a estar escrito en color azul.
            SetPlayerTeam( playerid, TEAM_HOMELESS_2 );
        }

    }
    return 1;
}
The problem i got is this:



The Player skin doesn't appears, pls help :S
Help me fastly, as i need this urgently ,

REGARDS, migu3x
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)