ez a kaszt választós rész
public OnPlayerRequestClass(playerid, classid)
{
if(gTeam[playerid] == Koreai)
{
SetPlayerPos(playerid,-2070.6001000,-192.8000000,46.1000000);
SetPlayerCameraPos(playerid, -2068.8430, -188.3190, 53.1224);
SetPlayerCameraLookAt(playerid, -2069.2412, -189.2367, 52.1324);
}
else if(gTeam[playerid] == Amcsika)
{
SetPlayerPos(playerid,-1338.3000500,498.6000100,30.7000000);
SetPlayerCameraPos(playerid, -1332.3101, 508.6847, 34.5723);
SetPlayerCameraLookAt(playerid, -1332.7841, 507.8039, 34.2023);
}
if(classid == 0 || classid == 1 || classid == 2)
{
gTeam[playerid] = Amcsika;
}
else if(classid == 3 || classid == 4 || classid == 5)
{
gTeam[playerid] = Koreai;
}
switch(classid)
{
case 0: { GameTextForPlayer( playerid, \"~w~Amerikai~g~ Gyalogos\", 7000, 4 ); }
case 1: { GameTextForPlayer( playerid, \"~w~Amerikai~b~ Pilota\" , 7000, 4 ); }
case 2: { GameTextForPlayer( playerid, \"~w~Amerikai~y~ Mernok\", 7000, 4 ); }
case 3: { GameTextForPlayer( playerid, \"~r~Koreai~g~ Gun-In (Rohamosztagos)\", 7000, 4 ); }
case 4: { GameTextForPlayer( playerid, \"~r~Koreai~b~ Jojongsa (Pilota)\", 7000, 4 ); }
case 5: { GameTextForPlayer( playerid, \"~r~Koreai~y~ Gisa (Mernok)\", 7000, 4 ); }
}
return 1;
}
Amúgy máshol nem néztem mert nincs másik gépem
[mod]Kódoknak CODE taget használj, ne spoilert![/mod]