-K-ing 0 Odesláno: 27. Květen, 2012 Share Odesláno: 27. Květen, 2012 Mam problem s teamamy. Ked ich sprawim a hodim na server, tak v class selection mi nepise po USA ze aky tim su... Neviete preco? Pawno: #include < a_samp > #define TEAM_RUSSIA ( 0 ) // Defines TEAM_BALLAS as team ID 0 #define TEAM_USA ( 1 ) // Defines TEAM_CJ as team ID 1 #define TEAM_CHINA ( 2 ) // definy ore cinu id 2 #define TEAM_AFGANISTAN ( 3 ) #define TEAM_GERMANY ( 4 ) public OnGameModeInit( ) { AddPlayerClass(125,344.9047,2023.7461,22.6406,111.9761,31,250,29,150,24,50); // RussianSpawn AddPlayerClass(287,-118.5791,1035.8478,19.7422,2.7585,30,250,29,150,24,50); // American Spawn // Multiply the classid + 1, so this class is classid 1. AddPlayerClass(122,-249.1797,2585.9741,63.5703,228.6695,31,250,29,150,24,50); // Chineese Soldier AddPlayerClass(30,-729.8787,1534.3965,40.1808,92.3812,30,250,29,150,24,50); // AfganistanSpawn AddPlayerClass(285,-1395.5115,2641.6504,55.8645,90.7408,31,250,29,150,24,50); // GermanSpawn A: public OnPlayerRequestClass( playerid, classid ) // This is called when a player is on class selection { SetPlayerInterior(playerid,0); SetPlayerPos( playerid, -1309.6177,2551.5730,90.3281); SetPlayerFacingAngle (playerid, 218.4951); SetPlayerCameraPos( playerid, -1306.3782, 2546.7903,90.6248); SetPlayerCameraLookAt( playerid, -1309.6177,2551.5730,90.3281); switch ( classid ) // This is like a if/elseif statement. { case 0: // If the classid is 0 { // Then SetPlayerTeam( playerid, TEAM_RUSSIA ); } case 1: // If the classid is 1 { // Then GameTextForPlayer( playerid, " ~b~ USA", 500, 3 ); SetPlayerTeam( playerid, TEAM_USA ); } case 2: // If the classid is 2 { // Then GameTextForPlayer( playerid, " ~y~ CHINA ", 500, 3 ); SetPlayerTeam( playerid, TEAM_CHINA ); } case 3: // If the classid is 2 { // Then GameTextForPlayer( playerid, " ~l~ AFGANISTAN ", 500, 3 ); SetPlayerTeam( playerid, TEAM_AFGANISTAN ): } case 4: // If the classid is 2 { // Then GameTextForPlayer( playerid, " ~g~ GERMANY ", 500, 3 ); SetPlayerTeam( playerid, TEAM_GERMANY ); } } return 1; A nehadze to ziadne errory len to neukazuje Ako sa volaju timi v class selection... dik za pomoc Link to comment Share on other sites More sharing options...
iFailGamer 25 Odesláno: 27. Květen, 2012 Share Odesláno: 27. Květen, 2012 1. Topic neobsahuje TAG 2. Code je neprehladný Link to comment Share on other sites More sharing options...
Sweet 7 Odesláno: 27. Květen, 2012 Share Odesláno: 27. Květen, 2012 zkus dat nakonec jeste jednu } v publicu OnPlayerRequestClass Link to comment Share on other sites More sharing options...
Recommended Posts