Jump to content

3D Text System + Update Saving Texts


ShOoBy

Recommended Posts

3D Text System

by ShOoBy

Descriere:

Mai multi nu stau cum sa puna acele texte ce pluteau prin aer sau sa le puna culori....eu m-am decis sa fac un sistem in dialoguri care sa ii ajute pe incepatori sa puna 3D Texts .....sper sa fie util si sa il folositi....acum in V2 textele se si salveaza in fisierul "Texts.txt" din Scriptfiles

Cum il Instalati:

Ca sa il instalati faceti asta:

-downloadati fisierul , datii un nume si puetil in folderul "FilterScripts"....

-compilatil (sageata albastra) si adaugati in "server.cfg" numele sau(fara extensia .amx) la linia "filterscripts"

-puneti fisierul Texts in folderul "Scriptfiles"

Cum il Folositi

Doar uitat-va la poza aceasta ca sa intelegeti cum se foloseste:

34s2hbs.jpg

Imagini:

[img width=500 height=375] qzhyx5.png

Download:

V2(ultimul) - cu sistem de salvare

23mn03d.png - Mediafire (New)

23mn03d.png - zShare

V1 - fara sistem de salvare

23mn03d.png -zShare

23mn03d.png -PasteBin

Credits:

Script facut in intregime de ShOoBy

Note:

-Dialogurile sunt in engleza pt ca asa l-am facut original

-Nu este vreun edit si nu am furati nici o idee de la nimeni

-A fost postat original pe SA-MP.Com tot de catre mn si am decis sa-l pun si aici

-A aparut versiunea V2 Multumita lui Crystyan si stuntman care m-au ajutat....acum toate texturile se salveaza intr-un fisier din scriptfiles numit "Texts"

M2c78.png

Link to comment
Share on other sites

  • Replies 82
  • Created
  • Last Reply

Top Posters In This Topic

Ca sa se salveze putetii pune asa la onplayerdialogresponse, doar ca atat nu poti face sa se salveze textul in ghilimele, dar asta puteti pune voi.

[pawn]

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

{

    if(dialogid == 3335)

{

new File:file;

if (!fexist("SaveText.txt"))

{

file=fopen("SaveText.txt",io_write);

fclose(file);

}

file=fopen("SaveText.txt",io_write);

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

GetPlayerPos(playerid,x,y,z);

new str[256];

if(response)

{

if(color[playerid] == 1)

{

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

format(str, 256, "Create3DTextLabel(%s,COLOR_RED,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);

fwrite(file,str);

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

fclose(file);

}

if(color[playerid] == 2)

                        // etc...[/pawn]

O sa-ti salveze textul in scriptfile intr-un text ...

model salvare:

Create3DTextLabel(Salut,COLOR_RED,854.02, -1519.76, 13.55,30.0,1);

iar voi doar trebe sa pune textul 'Salut' in ghilimele asa :

Create3DTextLabel("Salut",COLOR_RED,854.02, -1519.76, 13.55,30.0,1);

 

Link to comment
Share on other sites

Ca sa se salveze putetii pune asa la onplayerdialogresponse, doar ca atat nu poti face sa se salveze textul in ghilimele, dar asta puteti pune voi.

[pawn]

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

{

    if(dialogid == 3335)

{

new File:file;

if (!fexist("SaveText.txt"))

{

file=fopen("SaveText.txt",io_write);

fclose(file);

}

file=fopen("SaveText.txt",io_write);

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

GetPlayerPos(playerid,x,y,z);

new str[256];

if(response)

{

if(color[playerid] == 1)

{

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

format(str, 256, "Create3DTextLabel(%s,COLOR_RED,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);

fwrite(file,str);

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

fclose(file);

}

if(color[playerid] == 2)

                        // etc...[/pawn]

O sa-ti salveze textul in scriptfile intr-un text ...

model salvare:

iar voi doar trebe sa pune textul 'Salut' in ghilimele asa :

aaaa Christian merci mult ca eu inca nu ma pricep sa folosesc astea :) ....sarumana

M2c78.png

Link to comment
Share on other sites

Modifica tot fs-ul sa se salveze textele!, ca la astia nu le place:))

Ca sa se salveze cu " modifici

[pawn]format(str, 256, "Create3DTextLabel(%s,COLOR_RED,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);[/pawn]

cu asta

[pawn]format(str, 256, "Create3DTextLabel(\"%s\",COLOR_RED,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);[/pawn]

\" e ca si cum ar anula ", doar ca o da in mesaj.

Link to comment
Share on other sites

Mai facui asa....si va pusai la /tcredits da ..... e o problema....voiam sa dau release la v2 cand vazui bugu asta:

nu merge sa se salveze decat 1 ala.....cand se face altu se sterge cel precedent si se pune cel nou in "savetexts".....adik nu mere sa salvez decat 1 text pe 1 line  :cry: .....help !

M2c78.png

Link to comment
Share on other sites

Mai facui asa....si va pusai la /tcredits da ..... e o problema....voiam sa dau release la v2 cand vazui bugu asta:

nu merge sa se salveze decat 1 ala.....cand se face altu se sterge cel precedent si se pune cel nou in "savetexts".....adik nu mere sa salvez decat 1 text pe 1 line  :cry: .....help !

Nu e bug, asa e facut.

 

Link to comment
Share on other sites

Salut,ShOoBy tot respectul pentru munca ta  :azn: dar am o problema.

Am luat noua varianta in care ar trebui sa se salveze textele dar...nu se salveaza!

Am pus totul exact cum ai spus inclusiv acel notepad 'text' in Scriptfiles.

Ma conectez pe server cu RCON-ul,pun textul,totul e bine.

Dar dupa ce inchid si redeschid server-ul textele dispar desi in acel notepad inca exista...putin ajutor te rog  :laugh:

Precizez ca nu am modificat absolut nimic in el,mai ales creditele.

Blog-ul timpului liber! www.blogoffreetime.blogspot.com || Discuti,stiri,etc!Petrece-ti timpul liber in mod relaxant!

Link to comment
Share on other sites

Salut,ShOoBy tot respectul pentru munca ta  :azn: dar am o problema.

Am luat noua varianta in care ar trebui sa se salveze textele dar...nu se salveaza!

Am pus totul exact cum ai spus inclusiv acel notepad 'text' in Scriptfiles.

Ma conectez pe server cu RCON-ul,pun textul,totul e bine.

Dar dupa ce inchid si redeschid server-ul textele dispar desi in acel notepad inca exista...putin ajutor te rog  :laugh:

Precizez ca nu am modificat absolut nimic in el,mai ales creditele.

Trebuie sa pui din textul ala in gamemode:)

 

Link to comment
Share on other sites

Revin cu problema,acum am pus acele salvari din 'Texts' in GM...erau si altele si am pus langa ele,totul exact...am dat save si apoi am compilat,nu mi-a dat nicio eroare,totul a fost bine dar pe server tot nu apar,ce sa fac  :sad: ?

Blog-ul timpului liber! www.blogoffreetime.blogspot.com || Discuti,stiri,etc!Petrece-ti timpul liber in mod relaxant!

Link to comment
Share on other sites

Revin cu problema,acum am pus acele salvari din 'Texts' in GM...erau si altele si am pus langa ele,totul exact...am dat save si apoi am compilat,nu mi-a dat nicio eroare,totul a fost bine dar pe server tot nu apar,ce sa fac  :sad: ?

hmm........unde leai pus?

M2c78.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.