Thread: [Ajuda] Comado para camara
View Single Post
Old 22/02/2014, 07: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