[Ajuda] Comado para camara
#1

Tou aqui com um problema fiz este comando rapido:

pawn Код:
CMD:camerapolicia(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsACop(playerid) && !IsFBI(playerid) && !IsARES(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not a LEO.");
    {
    SetPlayerCameraPos(playerid, 269.76599, 91.80140, 1002.87347);
    }
    return 0;
}
o player vai para a cordenada da camera mas, eu queria colocar ele poder girar a camera pos lados como faзo?
Reply
#2

Veja isto: InterpolateCameraPos
Reply
#3

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
Hummm dб 26 erros e nem sequer fala nas linhas do comando lool o que que tб mal?

pawn Код:
CMD:camerapolicia(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsACop(playerid) && !IsFBI(playerid) && !IsARES(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not a LEO.");
    {
        if(!CAMERA)
        {
            SetPlayerCameraPos(playerid, 269.76599, 91.80140, 1002.87347);
            SetPlayerCameraLookAt(playerid, 269.76599, 91.80140, 1002.87347);
            InterpolateCameraPos(playerid, 270.0474, 89.6601, 1001.0391, 266.4511, 92.4492, 1001.0391, 10000, CAMERA_MOVE);
            CAMERA = 1;
        }
        else if(CAMERA)
        {
            new Float:x, Float:y, Float:z;
            GetPlayerCameraPos(playerid, x, y, z);
            CAMERA = 0;
        }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)