[Ajuda] Create3DTextLabel no Radar? GM Caminhoneiro!
#1

| Ola pessoal do Forum SA:MP | Create3DTextLabel no radar de um servidor caminhoneiro!!! Help-me!!

PCC_Defines:
pawn Код:
COMMAND:criarradar(playerid, params[])
{
    // Setup local variables
    new Float:x, Float:y, Float:z, Float:Angle, MaxSpeed, file[100], File:PFile, LineForFile[100], Msg[128];

    SendAdminText(playerid, "/criarradar", params);
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            if (sscanf(params, "i", MaxSpeed)) SendClientMessage(playerid, 0xFF0000AA, "Use: /criarradar [Vel.Max]");
            else
            {
                GetPlayerPos(playerid, x, y, z);
                GetPlayerFacingAngle(playerid, Angle);
                z = z - 1.0; // Adjust camera Z-coordinate 1m lower than normal (otherwise the camera floats in the air)
                SetPlayerPos(playerid, x, y + 1.0, z + 1.0);
                for (new CamID; CamID < MAX_CAMERAS; CamID++)
                {
                    if (ACameras[CamID][CamSpeed] == 0)
                    {
                        SetupSpeedCamera(CamID, x, y, z, Angle, MaxSpeed);
                        format(file, sizeof(file), CameraFile, CamID);
                        PFile = fopen(file, io_write);
                        format(LineForFile, 100, "CamX %f\r\n", x);
                        fwrite(PFile, LineForFile);
                        format(LineForFile, 100, "CamY %f\r\n", y);
                        fwrite(PFile, LineForFile);
                        format(LineForFile, 100, "CamZ %f\r\n", z);
                        fwrite(PFile, LineForFile);
                        format(LineForFile, 100, "CamAngle %f\r\n", Angle);
                        fwrite(PFile, LineForFile);
                        format(LineForFile, 100, "CamSpeed %i\r\n", MaxSpeed);
                        fwrite(PFile, LineForFile);
                        fclose(PFile);
                        format(Msg, 128, "Vocк criou o radar ID: %i", CamID);
                        SendClientMessage(playerid, 0x00FF00FF, Msg);
                        return 1;
                    }
                }
Help-me! E Preзiso que o 3DTextLabel fique salvado!!
Reply


Messages In This Thread
Create3DTextLabel no Radar? GM Caminhoneiro! - by TorresPutado - 31.07.2014, 13:10
Respuesta: Create3DTextLabel no Radar? GM Caminhoneiro! - by TorresPutado - 31.07.2014, 13:13
Re: Create3DTextLabel no Radar? GM Caminhoneiro! - by GHLEMES - 31.07.2014, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)