How can i change this:
#8

Код:
// This callback gets called when the player is selecting a class (but hasn't clicked "Spawn" yet)
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,2);
    SetPlayerPos(playerid,1524.509887,-46.821197,1002.130981);
    SetPlayerFacingAngle(playerid, 145.0);
    SetPlayerCameraPos(playerid,1521.509887,-49.821197,1002.7);
    SetPlayerCameraLookAt(playerid,1523.509887,-47.821197,1002.6);

	// Display a short message to inform the player about the class he's about to choose
	switch (classid)
	{
		case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10: // Classes that will be truckdrivers
		{
			// Display the name of the class
            GameTextForPlayer(playerid, TXT_ClassTrucker, 3000, 4);
			// Store the class for the player (truckdriver)
			APlayerData[playerid][PlayerClass] = ClassTruckDriver;
		}
		case 11, 12, 13: // Classes that will be bus-drivers
		{
			// Display the name of the class
            GameTextForPlayer(playerid, TXT_ClassBusDriver, 3000, 4);
			// Store the class for the player (busdriver)
			APlayerData[playerid][PlayerClass] = ClassBusDriver;
		}
		case 14, 15, 16, 17, 18: // Classes that will be Pilot
		{
			// Display the name of the class
            GameTextForPlayer(playerid, TXT_ClassPilot, 3000, 4);
			// Store the class for the player (pilot)
			APlayerData[playerid][PlayerClass] = ClassPilot;
		}
		case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29: // Classes that will be police
		{
			// Display the name of the class
            GameTextForPlayer(playerid, TXT_ClassPolice, 3000, 4);
			// Store the class for the player (police)
			APlayerData[playerid][PlayerClass] = ClassPolice;
		}
		case 30, 31, 32, 33, 34: // Classes that will be mafia
		{
			// Display the name of the class
			GameTextForPlayer(playerid, TXT_ClassMafia, 3000, 4);
			// Store the class for the player (mafia)
			APlayerData[playerid][PlayerClass] = ClassMafia;
		}
		case 35, 36, 37: // Classes that will be courier
		{
			// Display the name of the class
			GameTextForPlayer(playerid, TXT_ClassCourier, 3000, 4);
			// Store the class for the player (courier)
			APlayerData[playerid][PlayerClass] = ClassCourier;
		}
		case 38, 39, 40, 41, 42: // Classes that will be roadworker
		{
			// Display the name of the class
			GameTextForPlayer(playerid, TXT_ClassRoadWorker, 3000, 4);
			// Store the class for the player (roadworker)
			APlayerData[playerid][PlayerClass] = ClassRoadWorker;
		}
	}

	return 1;
}
Reply


Messages In This Thread
How can i change this: - by Wassimo - 26.03.2015, 22:58
Re: How can i change this: - by maximthepain - 26.03.2015, 23:00
Re : How can i change this: - by Wassimo - 26.03.2015, 23:12
Re: How can i change this: - by maximthepain - 26.03.2015, 23:15
Re: How can i change this: - by Chrillzen - 26.03.2015, 23:16
Re : How can i change this: - by Wassimo - 26.03.2015, 23:42
Re: How can i change this: - by Chrillzen - 27.03.2015, 00:13
Re : How can i change this: - by Wassimo - 27.03.2015, 00:21
Re: How can i change this: - by Chrillzen - 27.03.2015, 00:24
Re : How can i change this: - by Wassimo - 27.03.2015, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)