SA-MP Forums Archive
[Pedido] camera random para logar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] camera random para logar (/showthread.php?tid=477389)



camera random para logar - MichelScripter - 23.11.2013

gostaria de colocar camera que troca-se em cada 1h na tela de login, agradece qm quiser ajudar!


Re: camera random para logar - Kuddy - 23.11.2013

Apenas variбveis e arrays, nada mais.

https://sampforum.blast.hk/showthread.php?tid=235924


Re: camera random para logar - VivendoVirtual - 23.11.2013

Tipo Isso...
pawn Код:
public OnPlayerRequestClass(playerid, classid)
pawn Код:
new previsao = random(3);
    if(previsao == 1){
        SetPlayerCameraPos(playerid, -1837.31, -581.86, 19.83);
        SetPlayerCameraLookAt(playerid, -1831.33, -581.92, 19.43);
    }
    else if(previsao == 2){
        SetPlayerCameraPos(playerid, -1553.41, 704.04, 12.14);
        SetPlayerCameraLookAt(playerid, -1552.95, 710.02, 12.33);
    }
    else if(previsao == 3){
        SetPlayerCameraPos(playerid, -2032.98, -262.77, 47.79);
        SetPlayerCameraLookAt(playerid, -2032.88, -256.95, 46.32);
    }