SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 22/02/2014, 08:01 PM   #1
MorreJaa
Big Clucker
 
MorreJaa's Avatar
 
Join Date: Aug 2013
Posts: 146
Reputation: 0
Default Comado para camara

Tou aqui com um problema fiz este comando rapido:

pawn Code:
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?
MorreJaa is offline   Reply With Quote
Old 22/02/2014, 08:03 PM   #2
.FuneraL.
High-roller
 
.FuneraL.'s Avatar
 
Join Date: Feb 2012
Location: Pawno.exe
Posts: 2,078
Reputation: 146
Default Re: Comado para camara

Veja isto: InterpolateCameraPos
.FuneraL. is offline   Reply With Quote
Old 22/02/2014, 08:17 PM   #3
MorreJaa
Big Clucker
 
MorreJaa's Avatar
 
Join Date: Aug 2013
Posts: 146
Reputation: 0
Default Re: Comado para camara

Quote:
Originally Posted by .FuneraL. View Post
Hummm dá 26 erros e nem sequer fala nas linhas do comando lool o que que tá mal?

pawn Code:
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;
}
MorreJaa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Comado Somente Para Uma Prof. JamesDiasBWJ Português/Portuguese 15 16/04/2013 10:53 PM
[Ajuda] comado /registrar DOF2 vitorvlv Português/Portuguese 3 24/02/2013 09:39 PM
[Ajuda] Como simplificar comado? smd_murilo Português/Portuguese 3 21/09/2010 09:04 PM


All times are GMT. The time now is 10:08 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.