04.01.2011, 21:54
Код:
public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; if(classid == 0 || 1 || 2) { //LVPD SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~b~LVPD",2000,3); SetPlayerColor(playerid, COR_LVPD); } else if(classid == 3 || 4 || 5) { //FBI SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~b~FBI",2000,3); SetPlayerColor(playerid, COR_FBI); } else if(classid == 6 || 7 || 8) { //Mбfia Corelli SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~p~Mafia Corelli",2000,3); SetPlayerColor(playerid, COR_CORELLI); } else if(classid == 9 || 10 || 11) { //Mбfia Yamagury SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~p~Mafia Yamagury",2000,3); SetPlayerColor(playerid, COR_YAMAGURY); } else if(classid == 12 || 13) { //Mбfia do Bozo SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~p~Mafia do Bozo",2000,3); SetPlayerColor(playerid, COR_BOZO); } else if(classid == 14 || 15 || 16) { //Mбfia Champeones SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~p~Mafia Champeones",2000,3); SetPlayerColor(playerid, COR_CHAMPEONES); } else if(classid == 18 || 19) { //Bloods SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~r~Bloods",2000,3); SetPlayerColor(playerid, COR_BLOODS); } else if(classid == 20 || 21) { //Crips SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~b~Crips",2000,3); SetPlayerColor(playerid, COR_CRIPS); } else if(classid == 22 || 23 ||24) { //Florencia SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~g~Florencia",2000,3); SetPlayerColor(playerid, COR_FLORENCIA); } else if(classid == 25 || 26 || 27) { //Golf Club SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~b~Golf Club",2000,3); SetPlayerColor(playerid, COR_GOLF); } else if(classid == 28 || 29 || 30) { //Penelope's Crew SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~p~Penelopes Crew",2000,3); SetPlayerColor(playerid, COR_PENELOPE); } else if(classid == 100 || 247 || 248) { //Infernal Bikers SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); GameTextForPlayer(playerid,"~r~Infernal Bikers",2000,3); SetPlayerColor(playerid, COR_BIKERS); } return 1; }