[Ajuda] Ajuda no Label do Radar
#3

Consegui!! Agora aparece o Label Deleta Tambem Sу tem Um Plobema!!! O Objeto nгo esta aparecendo!! Alguem ai Pode me Ajudar?


COMMAND:testeradar(playerid, params[])
{
new xRL [ 50 ];
// Setup local variables
new Float, Float:y, Float:z, Float:Angle, MaxSpeed, file[100], File:PFile, LineForFile[100], Msg[128];

// Send the command to all admins so they can see it
SendAdminText(playerid, "/criarradar", params);

// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 5
if (APlayerData[playerid][PlayerLevel] >= 5)
{
if (sscanf(params, "i", MaxSpeed)) SendClientMessage(playerid, 0xFF0000AA, "Digite: \"/criarradar <Velocidade>\"");
else
{
// Get player's position and facing angle
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, Angle);
format(xRL, sizeof(xRL), "{089AFC}Radar devagar \n{0029FF}Velocidade Mбxima\n{FFFFFF} %i kmh", MaxSpeed);
Create3DTextLabel(xRL, 0xFFFFFFFF, x, y, z, 150.0, 0, 0);
z = z - 1.0; // Adjust camera Z-coordinate 1m lower than normal (otherwise the camera floats in the air)

// Move the player a bit, otherwise he could get stuck inside the camera-object
SetPlayerPos(playerid, x, y + 1.0, z + 1.0);

// Save the camera to a file
for (new CamID; CamID < MAX_CAMERAS; CamID++)
{
// Check if this index is free
if (ACameras[CamID][CamSpeed] == 0)
{
// Setup this camera (create the objects and store the data)
SetupSpeedCamera(CamID, x, y, z, Angle, MaxSpeed);

// Save the file
format(file, sizeof(file), CameraFile, CamID); // Construct the complete filename for this camera-file

PFile = fopen(file, io_write); // Open the camera-file for writing

format(LineForFile, 100, "CamX %f\r\n", x);
fwrite(PFile, LineForFile); // And save it to the file
format(LineForFile, 100, "CamY %f\r\n", y);
fwrite(PFile, LineForFile); // And save it to the file
format(LineForFile, 100, "CamZ %f\r\n", z);
fwrite(PFile, LineForFile); // And save it to the file
format(LineForFile, 100, "CamAngle %f\r\n", Angle);
fwrite(PFile, LineForFile); // And save it to the file
format(LineForFile, 100, "CamSpeed %i\r\n", MaxSpeed);
fwrite(PFile, LineForFile); // And save it to the file

fclose(PFile); // Close the file

// Let the player know he created a new camera
format(Msg, 128, "Voce Criou o Radar de ID: %i", CamID);
SendClientMessage(playerid, 0x00FF00FF, Msg);

// Exit the function
return 1;
}
}

// In case all camera-slots are occupied (100 camera's have been created already), let the player know about it
format(Msg, 128, "{FF0000}Voce nao Pode Criar mais de %i Radares", MAX_CAMERAS);
SendClientMessage(playerid, 0xFFFFFFFF, Msg);
}
}
else
return 0;
}
else
return 0;

// Let the server know that this was a valid command
return 1;
}
Reply


Messages In This Thread
Ajuda no Label do Radar - by #Luca[S]. - 22.05.2014, 05:27
Re: Ajuda no Label do Radar - by MultiKill - 22.05.2014, 15:19
Re: Ajuda no Label do Radar - by #Luca[S]. - 22.05.2014, 16:54
Re: Ajuda no Label do Radar - by MultiKill - 22.05.2014, 18:38
Re: Ajuda no Label do Radar - by #Luca[S]. - 22.05.2014, 18:48
Re: Ajuda no Label do Radar - by MultiKill - 22.05.2014, 18:53
Re: Ajuda no Label do Radar - by #Luca[S]. - 22.05.2014, 19:02
Re: Ajuda no Label do Radar - by GHLEMES - 22.05.2014, 19:06
Re: Ajuda no Label do Radar - by #Luca[S]. - 22.05.2014, 19:34
Re: Ajuda no Label do Radar - by GHLEMES - 23.05.2014, 02:01
Re: Ajuda no Label do Radar - by #Luca[S]. - 23.05.2014, 23:44
Re: Ajuda no Label do Radar - by GHLEMES - 24.05.2014, 02:13
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 19:28
Re: Ajuda no Label do Radar - by GHLEMES - 26.05.2014, 19:50
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 20:10
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 20:45
Re: Ajuda no Label do Radar - by GHLEMES - 26.05.2014, 20:51
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 21:01
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 21:07
Re: Ajuda no Label do Radar - by #Luca[S]. - 26.05.2014, 22:54
Re: Ajuda no Label do Radar - by #Luca[S]. - 27.05.2014, 01:55

Forum Jump:


Users browsing this thread: 3 Guest(s)