Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================//
- /*
- ================================================================================
- ((==Dinamicni sistem kreiranja 3D Textova==))
- ((==Napravio Skriptu: ArMa[Ja]==))
- ((==Credits: Ja & Kembor[za boje]==)) "Bilo mi mrsko definisati svoje a ne zelim kopirati iz druge skripte :D"
- ((==INFO: Boje su uzete iz skripte od Kambora !!! | NISU PREVEDENE==))
- //============================================================================//
- */
- //============================================================================//
- #include <a_samp>
- #include <core>
- #include <zcmd>
- //============================================================================//
- #define BOJA % %
- //============================================================================//
- #define BOJA_CRVENA 0xFF0000AA
- #define BOJA_GREY 0xAFAFAFAA
- #define BOJA_GREEN 0x33AA33AA
- #define BOJA_BRIGHTRED 0xFF0000AA
- #define BOJA_YELLOW 0xFFFF00AA
- #define BOJA_PINK 0xFF66FFAA
- #define BOJA_BLUE 0x3A47DEFF
- #define BOJA_TAN 0xBDB76BAA
- #define BOJA_PURPLE 0x800080AA
- #define BOJA_WHITE 0xFFFFFFAA
- #define BOJA_LIGHTBLUE 0x33CCFFAA
- #define BOJA_ORANGE 0xFF9900AA
- #define BOJA_INDIGO 0x4B00B0AA
- #define BOJA_BLACK 0x00000000
- #define BOJA_DARKGREY 0x696969FF
- //============================================================================//
- new BOJAA[MAX_PLAYERS];
- //============================================================================//
- #define DIALOG_3334 3334
- #define DIALOG_5555 5555
- #define DIALOG_5556 5556
- //============================================================================//
- public OnFilterScriptInit()
- {
- print("\n------------------------------------------");
- print(" ((==Dinamicni sistem kreiranja 3D Textova==)) ");
- print(" ((==Napravio Skriptu: ArMA[Ja]==)) ");
- print(" ((==Credits: Ja & Kembor[za boje]==))");
- print("------------------------------------------\n");
- return 1;
- }
- //============================================================================//
- CMD:kreirajtext(playerid, params[])
- {
- if(IsPlayerAdmin(playerid)) {
- ShowPlayerDialog(playerid,5555,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamicno Kreiranje 3DTexta","Zelite li kreirati \n3D Text ovde?","Da","Ne");
- }
- else
- {
- SendClientMessage(playerid,BOJA_CRVENA,"Niste ulogovani kao RCON Admin!.");
- }
- return 1;
- }
- //============================================================================//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 5556)
- {
- if(response)
- {
- if(BOJAA[playerid] == 1)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- Create3DTextLabel(inputtext,BOJA_CRVENA,x,y,z,30.0,0,1);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xFF0000AA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 2)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0x3A47DEFF,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_BLUE,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 3)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0x66CC00FF,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_GREEN,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 4)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xFFFF00AA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_YELLOW,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 5)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xFF9900AA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_ORANGE,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 6)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xFF66FFFF,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_PINK,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 7)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xAFAFAFAA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_GREY,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- if(BOJAA[playerid] == 8)
- {
- new File:file,str[256];
- file=fopen("Textovi.txt",io_append);
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0x4B00B0AA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
- Create3DTextLabel(inputtext,BOJA_INDIGO,x,y,z,30.0,0,1);
- fwrite(file,str);
- fwrite(file,"\r\n");
- fclose(file);
- }
- }
- }
- //============================================================================//
- if(dialogid == 5555)
- {
- if(response) return ShowPlayerDialog(playerid,3334,DIALOG_STYLE_LIST,"Dinamicno Kreiranje 3D Texta BOJA","{FA0404}CRVENA\n{0704FA}Plava\n{2CF11A}Zelena\n{E2FF09}Zuta\n{FF4101}Narandzasta\n{E97AFD}Roza\n{7A7A7A}Siva\n{330099}Indigo","Odaberi","Otkazi");
- else SendClientMessage(playerid,BOJA_BLUE,"Text nije kreiran !");
- }
- //============================================================================//
- if(dialogid == 3334)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- BOJAA[playerid] = 1;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 1:
- {
- BOJAA[playerid]=2;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 2:
- {
- BOJAA[playerid]=3;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 3:
- {
- BOJAA[playerid]=4;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 4:
- {
- BOJAA[playerid]=5;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 5:
- {
- BOJAA[playerid]=6;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 6:
- {
- BOJAA[playerid]=7;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 7:
- {
- BOJAA[playerid]=8;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- case 8:
- {
- BOJAA[playerid]=9;
- ShowPlayerDialog(playerid,5556,DIALOG_STYLE_INPUT,"{F8FC04}DinamicnoKreiranje3DTexta","{04FC8C}Molimo unesite {F8FC04}Text{04FC8C}\nkoji zelite da kreirate ovde","Kreiraj","");
- }
- }
- }
- }
- return 1;
- }
- //============================================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement