12.02.2011, 15:34
Okay, so the only game text which shows is for second team. For first team game text won't show.
Код:
public OnPlayerRequestClass(playerid, classid) { if (classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 8) { GameTextForPlayer(playerid, "~n~~n~~n~~w~The Northern Neighbor ", 1000, 3); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1497.4258,-699.9155,94.7500); SetPlayerFacingAngle(playerid, 180.9306); SetPlayerCameraPos(playerid, 1497.4098,-703.7816,94.7500); SetPlayerCameraLookAt(playerid, 1497.4258,-699.9155,94.7500); gTeam[playerid] = TEAM_ONE; } else if (classid == 9 || classid == 10 || classid == 11 || classid == 12 || classid == 13 || classid == 14 || classid == 15 || classid == 16) { GameTextForPlayer(playerid, "~n~~n~~n~~w~The Southern Neighbor", 1000, 3); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 1153.9160, -2037.0099, 69.0078); SetPlayerFacingAngle(playerid, 270.6361); SetPlayerCameraPos(playerid, 1157.3175, -2037.2214, 69.0078); SetPlayerCameraLookAt(playerid, 1153.9160, -2037.0099, 69.0078); gTeam[playerid] = TEAM_TWO; } return 1; }