13.06.2016, 20:11
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid) {
case 0:
{
SetPlayerPos(playerid,1628.6528,-2290.0068,94.1270);
SetPlayerCameraPos(playerid, 1628.6528,-2290.0068,94.1270);
SetPlayerCameraLookAt(playerid,1628.6528,-2290.0068,94.1270);
}
case 1:
{
SetPlayerPos(playerid,1210.7349,-2036.7631,69.0078);
SetPlayerCameraPos(playerid, 1210.7349,-2036.7631,69.0078);
SetPlayerCameraLookAt(playerid,1210.7349,-2036.7631,69.0078);
}
case 2:
{
SetPlayerPos(playerid,2111.3210,1258.4351,10.8203);
SetPlayerCameraPos(playerid,2111.3210,1258.4351,10.8203);
SetPlayerCameraLookAt(playerid,2111.3210,1258.4351,10.8203);
}
case 3:
{
SetPlayerPos(playerid,2112.4336,1152.0609,13.5166);
SetPlayerCameraPos(playerid,2112.4336,1152.0609,13.5166);
SetPlayerCameraLookAt(playerid,2112.4336,1152.0609,13.5166);
}
case 4:
{
SetPlayerPos(playerid,-1383.6305,680.5055,84.0078 );
SetPlayerCameraPos(playerid, -1383.6305,680.5055,84.0078);
SetPlayerCameraLookAt(playerid,-1383.6305,680.5055,84.0078);
}
case 5:
{
SetPlayerPos(playerid,-1544.6187,699.6717,148.2734);
SetPlayerCameraPos(playerid,-1544.6187,699.6717,148.2734);
SetPlayerCameraLookAt(playerid,-1544.6187,699.6717,148.2734);
}
case 6:
{
SetPlayerPos(playerid,-1544.6187,699.6717,148.2734);
SetPlayerCameraPos(playerid,-1544.6187,699.6717,148.2734);
SetPlayerCameraLookAt(playerid, -1544.6187,699.6717,148.2734);
}
case 7:
{
SetPlayerPos(playerid,2230.8042,-2460.3716,61.6104);
SetPlayerCameraPos(playerid,2230.8042,-2460.3716,61.6104);
SetPlayerCameraLookAt(playerid, 2230.8042,-2460.3716,61.6104);
}
case 8:
{
SetPlayerPos(playerid,1472.3932,-2286.8137,42.0187);
SetPlayerCameraPos(playerid,1472.3932,-2286.8137,42.0187);
SetPlayerCameraLookAt(playerid, 1472.3932,-2286.8137,42.0187);
}
case 9:
{
SetPlayerPos(playerid,1822.1333,-1682.5481,13.3828);
SetPlayerCameraPos(playerid,1822.1333,-1682.5481,13.3828);
SetPlayerCameraLookAt(playerid, 1822.1333,-1682.5481,13.3828);
}
}
return true;
}