[Ajuda] Mensagem radar!!
#1

eu tenho no meu server o comando /criarradar,mais estou querendo colocar a mensagem q que velociade й permitida ,se alguem puder me ajudar


ta aki o comando

Quote:

COMMAND:criarradar(playerid, params[])
{
// Setup local variables
new Float, 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] >= 6)
{
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;
}
}

// In case all camera-slots are occupied (100 camera's have been created already), let the player know about it
format(Msg, 128, "{FF0000}[BMT] Vocк nгo 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
#2

Posta seu SetupSpeedCamera(CamID, x, y, z, Angle, MaxSpeed), e por favor, se for copiar um gamemode existente, se dк ao menos o trabalho de mudar o nome:

Quote:

format(Msg, 128, "{FF0000}[BMT] Vocк nгo pode criar mais de %i radares.", MAX_CAMERAS);
SendClientMessage(playerid, 0xFFFFFFFF, Msg)

Reply
#3

ta ai no cmd ja
Reply
#4

Quote:
Originally Posted by CesarLuisCM
Посмотреть сообщение
ta ai no cmd ja
Tф falando da funзгo em si, ali sу tб a chamada pra funзгo, procura por stock SetupSpeedCamera que vocк vai encontrar...
Reply
#5

O jeito mesmo й tu subir e criar em cima do radar e criar lб mesmo com umas cores bonitinhas. Se nгo tiver o comando criar3dtextlabel й melhor que vocк crie.
Reply
#6

Код:
O jeito mesmo й tu subir e criar em cima do radar e criar lб mesmo com umas cores bonitinhas. Se nгo tiver o comando criar3dtextlabel й melhor que vocк crie.
Ele jб pegou a GM bem antiga do BMT, e pelo jeito estб plagiando a atual com a label automбtica em cima do radar. Mas fazer o que nй.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)