21.05.2017, 11:35 
	
	
	
		i want that when we select spawn class so it must show a skin and text on it, in mine it doesnt show any and we just click >> or << and then we spawn. 
plz help me in this
	
	
	
plz help me in this
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
//]]========: TEAMS :=======[[//
#define TEAM_COP 0
#define TEAM_CIVI 5
#define TEAM_NONE 6
main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("OnPlayerRequestClass");
    AddPlayerClass( 288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Cop
    AddPlayerClass( 311, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Cop
    AddPlayerClass( 310, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Cop
    AddPlayerClass( 176, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Robber
    AddPlayerClass( 177, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Robber
    AddPlayerClass( 293, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0 ); // Robber
    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 ) // This is like a if/elseif statement.
    {
        case 0: // If the classid is 0
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~B~Cops", 3000, 3 );
            SetPlayerTeam( playerid, TEAM_COP ); // Sets the player's team to TEAM_BALLAS
        }
        case 1: // If the classid is 1
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~B~Cops", 3000, 3 );
            SetPlayerTeam( playerid, TEAM_COP ); // Sets the player's team to TEAM_CJ
        }
        case 2: // If the classid is 1
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~B~Cops", 3000, 3 );
            SetPlayerTeam( playerid, TEAM_COP ); // Sets the player's team to TEAM_CJ
        }
        case 3: // If the classid is 2
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~W~Civilian", 3000, 3 );
            SetPlayerTeam( playerid, TEAM_CIVI ); // Sets the player's team to TEAM_CJ
        }
        case 4: // If the classid is 2
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~W~Civilian", 3000, 3 );
            SetPlayerTeam( playerid, TEAM_CIVI ); // Sets the player's team to TEAM_CJ
        }
        case 5: // If the classid is 2
        { // Then
            GameTextForPlayer( playerid, "~Y~Los Santos ~W~Civilian", 3000, 3 );
            // Sends a gametext for player
            // ~g~ is a green color in gametext.
            // Arguments : Player ID, const string[ ], time ( milliseconds ), style
            // Wiki for more info
            SetPlayerTeam( playerid, TEAM_CIVI ); // Sets the player's team to TEAM_CJ
        }
    }
    return 1; // This means the callback is executed succesfully AFAIK.
} 
| Try this it may help you out: PHP код: 
Try reading and understand this tutorial: Click Here |