public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; switch (classid) { case 0: { gTeam[playerid] = TEAM_VAGOS; GameTextForPlayer(playerid, "~COLOR_YELLOW~TEAM_GANG", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 1: { gTeam[playerid] = TEAM_POICE; GameTextForPlayer(playerid, "~COLOR_BLUE~TEAM_POLICE", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 2: { gTeam[playerid] = TEAM_HITMAN; GameTextForPlayer(playerid, "~COLOR_BLACK~TEAM_HITMAN", 1000, 6); SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016); SetPlayerFacingAngle(playerid, 272.9949); SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669); SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016); } return 1; }
new gPlayerClass[MAX_PLAYERS];
static gPlayerClass[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid switch (classid) { case 0: { gTeam[playerid] = TEAM_VAGOS; GameTextForPlayer(playerid, "~COLOR_YELLOW~TEAM_GANG", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 1: { gTeam[playerid] = TEAM_POICE; GameTextForPlayer(playerid, "~COLOR_BLUE~TEAM_POLICE", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 2: { gTeam[playerid] = TEAM_HITMAN; GameTextForPlayer(playerid, "~COLOR_BLACK~TEAM_HITMAN", 1000, 6); SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016); SetPlayerFacingAngle(playerid, 272.9949); SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669); SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016); } return 1; }
public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; switch (classid) { case 1: { gTeam[playerid] = 1; GameTextForPlayer(playerid, "Vagos", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 2: { gTeam[playerid] = 2; GameTextForPlayer(playerid, "Hitman", 1000, 6); SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016); SetPlayerFacingAngle(playerid, 272.9949); SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669); SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016); } case 3: { gTeam[playerid] = 3; GameTextForPlayer(playerid, "Police", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } return 1; }
public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; switch (classid) { case 1: { gTeam[playerid] = 1; GameTextForPlayer(playerid, "Vagos", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 2: { gTeam[playerid] = 2; GameTextForPlayer(playerid, "Hitman", 1000, 6); SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016); SetPlayerFacingAngle(playerid, 272.9949); SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669); SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016); } case 3: { gTeam[playerid] = 3; GameTextForPlayer(playerid, "Police", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } return 1; }
Код:
public OnPlayerRequestClass(playerid, classid) { gPlayerClass[playerid] = classid; switch (classid) { case 1: { gTeam[playerid] = 1; GameTextForPlayer(playerid, "Vagos", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } case 2: { gTeam[playerid] = 2; GameTextForPlayer(playerid, "Hitman", 1000, 6); SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016); SetPlayerFacingAngle(playerid, 272.9949); SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669); SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016); } case 3: { gTeam[playerid] = 3; GameTextForPlayer(playerid, "Police", 1000, 6); SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645); SetPlayerFacingAngle(playerid, 270.1391); SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300); SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645); } return 1; } |
public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 1:
{
gTeam[playerid] = 1;
GameTextForPlayer(playerid, "Vagos", 1000, 6);
SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645);
SetPlayerFacingAngle(playerid, 270.1391);
SetPlayerCameraPos(playerid, -2487.8013,2474.5752,20.0180);
SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645);
}
case 2:
{
gTeam[playerid] = 2;
GameTextForPlayer(playerid, "Hitman", 1000, 6);
SetPlayerPos(playerid, -2625.9885,2283.4905,8.3016);
SetPlayerFacingAngle(playerid, 272.9949);
SetPlayerCameraPos(playerid, -2620.0159,2265.4395,8.1669);
SetPlayerCameraLookAt(playerid, -2625.9885,2283.4905,8.3016);
}
case 3:
{
gTeam[playerid] = 3;
GameTextForPlayer(playerid, "Police", 1000, 6);
SetPlayerPos(playerid, -2281.2253,2288.4021,4.9645);
SetPlayerFacingAngle(playerid, 270.1391);
SetPlayerCameraPos(playerid, -2478.9282,2488.5732,18.2300);
SetPlayerCameraLookAt(playerid, -2281.2253,2288.4021,4.9645);
}
}
return 1;