09.03.2014, 09:00
this correct ??
pawn Код:
public SetPlayerJoinCam(playerid)
{
new randcamera = Random(1,4);
switch(randcamera)
{
case 1: // Gym
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,2229.4968,-1722.0701,13.5625);
SetPlayerPos(playerid,2211.1460,-1748.3909,-10.0);
SetPlayerCameraPos(playerid,2211.1460,-1748.3909,29.3744);
SetPlayerCameraLookAt(playerid,2229.4968,-1722.0701,13.5625);
}
case 2: // LSPD
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1554.3381,-1675.5692,16.1953);
SetPlayerPos(playerid,1514.7783,-1700.2913,-10.0);
SetPlayerCameraPos(playerid,1514.7783,-1700.2913,36.7506);
SetPlayerCameraLookAt(playerid,1554.3381,-1675.5692,16.1953);
}
case 3: // All Saints
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1175.5581,-1324.7922,18.1610);
SetPlayerPos(playerid, 1188.4574,-1309.2242,-10.0);
SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
}
case 4: // Unity
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
}
}
return 1;
}