Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 5373 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

Sveiki pas mane kazkodel nesaugo sukurtu 3D text labels... jie atsiranda scirptfiles aplanke tekstiniame dokumente... nukopijuoju kordinates ir ikeliu i gamemode po eilute ongamemodeinit bet vistiek neislenka... stai fs:

#define FILTERSCRIPT

#include

#if defined FILTERSCRIPT

new color[ MAX_PLAYERS ];

public OnFilterScriptInit()

{

print("\n------------------------------------");

print(" Text sistema ");

print("------------------------------------\n");

return 1;

}

public OnFilterScriptExit()

{

return 1;

}

#else

main()

{

print("\n---------------------------------");

print(" by not me ");

print("---------------------------------\n");

}

#endif

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/text", cmdtext, true, 10) == 0)

{

if(IsPlayerAdmin(playerid))

{

ShowPlayerDialog(playerid, 3333, DIALOG_STYLE_MSGBOX, "{666600}[Real Life E-N-G] - Text creator ","{ffffff}Do you want to create a text right here?", "Yes", "No");

}

else

{

SendClientMessage(playerid, 0xFFFFFFAA,"{666600}[Real Life E-N-G] - {ffffff}You must be logged in as an admin.");

}

return 1;

}

return 0;

}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if(dialogid == 3335)

{

if(response)

{

if(color[playerid] == 1)

{

new File:file, str[ 256 ];

file = fopen("Texts.txt", io_append);

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x,y,z);

Create3DTextLabel(inputtext, 0xAA3333AA, x,y,z, 30.0,0,1);

format(str, 256, "\r\nCreate3DTextLabel(\"%s\", 0xFFFFFFAA, %.2f, %.2f, %.2f, 30.0,1);", inputtext, x, y, z);

fwrite(file, str);

fwrite(file, "\r\n");

fclose(file);

}

if(color[playerid] == 2)

{

new File:file, str[ 256 ];

file = fopen("Texts.txt", io_append);

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x,y,z);

format(str, 256, "\r\nCreate3DTextLabel(\"%s\", 0xFFFFFFAA, %.2f, %.2f, %.2f, 30.0,1);", inputtext, x, y, z);

Create3DTextLabel(inputtext, 0xFFFF00AA, x,y,z, 30.0,0,1);

fwrite(file, str);

fwrite(file, "\r\n");

fclose(file);

}

if(color[playerid] == 3)

{

new File:file,str[256];

file = fopen("Texts.txt", io_append);

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x,y,z);

format(str, 256, "\r\nCreate3DTextLabel(\"%s\", 0xFFFFFFAA, %.2f, %.2f, %.2f, 30.0,1);", inputtext, x, y, z);

Create3DTextLabel(inputtext, 0xFFFFFFAA, x,y,z, 30.0,0,1);

fwrite(file, str);

fwrite(file, "\r\n");

fclose(file);

}

}

}

if(dialogid == 3333)

{

if(response) return ShowPlayerDialog(playerid, 3334, DIALOG_STYLE_LIST, "{666600}[Real Life E-N-G] - {ffffff}Text colors","{ffffff}Red\n{ffffff}Yellow\n{ffffff}White", "Choose", "Cancel");

}

if(dialogid == 3334)

{

if(response)

{

switch(listitem)

{

case 0:

{

color[playerid] = 1;

ShowPlayerDialog(playerid, 3335, DIALOG_STYLE_INPUT, "{666600}[Real Life E-N-G] - {ffffff}Text"," write something in this window.","Choose","Cancel");

}

case 1:

{

color[playerid]=2;

ShowPlayerDialog(playerid, 3335, DIALOG_STYLE_INPUT, "{666600}[Real Life E-N-G] - {ffffff}Text"," write something in this window.","Choose","Cancel");

}

case 2:

{

color[playerid]=3;

ShowPlayerDialog(playerid, 3335, DIALOG_STYLE_INPUT, "{666600}[Real Life E-N-G] - {ffffff}Text"," write something in this window.","Choose","Cancel");

}

}

}

}

return 1;

}

prasau padekite :( duosiu ir +rep ir flt...

-- Papildyta --

tai ar padesite?

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 5373 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...