15.01.2015, 14:40
Hello,
I have a little weird problem, i used class selection maker it always works but now it's the same, maybe it's the codes problem.
I see only the sea
I have a little weird problem, i used class selection maker it always works but now it's the same, maybe it's the codes problem.
I see only the sea
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
if(GetPlayerSkin(playerid))
{
if(GetPlayerTeam(playerid) == TEAM_BALLAS)
{
SetPlayerPos(playerid, 1980.3785, -1197.6845, 27.2536);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 87.6159);
SetPlayerCameraPos(playerid, 1976.8785, -1193.6845, 28.7536);
SetPlayerCameraLookAt(playerid, 1980.3785, -1197.6845, 27.2536);
return 1;
}
if(GetPlayerTeam(playerid) == TEAM_CHINESE)
{
SetPlayerPos(playerid, 1171.9240, -1442.2540, 45.3524);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 87.4755);
SetPlayerCameraPos(playerid, 1168.4240, -1438.2540, 46.8524);
SetPlayerCameraLookAt(playerid, 1171.9240, -1442.2540, 45.3524);
return 1;
}
if(GetPlayerTeam(playerid) == TEAM_COPS)
{
SetPlayerPos(playerid, 1540.3800, -1627.4621, 13.3828);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 91.3813);
SetPlayerCameraPos(playerid, 1536.8800, -1623.4621, 14.8828);
SetPlayerCameraLookAt(playerid, 1540.3800, -1627.4621, 13.3828);
return 1;
}
if(GetPlayerTeam(playerid) == TEAM_GROVE)
{
SetPlayerPos(playerid, 2494.4997, -1686.3710, 13.5131);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 0.6305);
SetPlayerCameraPos(playerid, 2490.9997, -1682.3710, 15.0131);
SetPlayerCameraLookAt(playerid, 2494.4997, -1686.3710, 13.5131);
return 1;
}
if(GetPlayerTeam(playerid) == TEAM_HOBOS)
{
SetPlayerPos(playerid, 1117.9002, -2036.9073, 78.7500);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 89.8325);
SetPlayerCameraPos(playerid, 1114.4002, -2032.9073, 80.2500);
SetPlayerCameraLookAt(playerid, 1117.9002, -2036.9073, 78.7500);
return 1;
}
if(GetPlayerTeam(playerid) == TEAM_VAGOS)
{
SetPlayerPos(playerid, 2575.4946, -1042.1601, 69.5781);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 353.5356);
SetPlayerCameraPos(playerid, 2571.9946, -1038.1601, 71.0781);
SetPlayerCameraLookAt(playerid, 2575.4946, -1042.1601, 69.5781);
return 1;
}
}
return 1;
}