/* +++++++++++++++++++++++++++++++++++++++++++++++++++++ # SSSSS SS SS SSSS SSSS SSSSSS SS SS # # SS SS SS SS SS SS SS SS SS SS SS SS # # SS SS SS SS SS SS SS SS SS SS SS # # SS SSSSSS SS SS SS SS SSSS SSSS # # SSSSSS SS SS SS SS SS SS SS SS SS # # SS SS SS SS SS SS SS SS SS SS # # SS SS SS SS SS SS SS SS SS SS SS # # SSSSS SS SS SSSS SSSS SSSSS SSSS # #:::::::::::::::::::::::::::::::::::::::::::::::::::# +++++++++++++++++++++++++++++++++++++++++++++++++++++ Star Minigame by ShOoBy. Don\'t change any Credits. ShOoBy\'s Scripts™ © 2011 Honosította: R3volutionDrifter A.k.a Three*///--------------------------------------------------------------------------------------------------------------#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPT//--------------------------------------------------------------------------------------------------------------#define COLOR_RED 0xFF0000AA#define COLOR_GREY 0xAFAFAFAA#define COLOR_GREEN 0x33AA33AA#define COLOR_BRIGHTRED 0xFF0000AA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_PINK 0xFF66FFAA#define COLOR_BLUE 0x3A47DEFF#define COLOR_TAN 0xBDB76BAA#define COLOR_PURPLE 0x800080AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_LIGHTBLUE 0x33CCFFAA#define COLOR_ORANGE 0xFF9900AA#define COLOR_INDIGO 0x4B00B0AA#define COLOR_BLACK 0x00000000#define COLOR_DARKGREY 0x696969FFnew color[MAX_PLAYERS];//-----------------------------------------------------------------------------------------------------------public OnFilterScriptInit(){print(\"\\n------------------------------------------\");print(\" ShOoBy\'s 3D Text Rendszer Betöltve \");print(\" Honosította: R3volutionDrifter\");print(\"------------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n------------------------------------------\");print(\" ShOoBy\'s 3D Text Rendszer Betöltve \");print(\" Honosította: R3volutionDrifter\");print(\"------------------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){//--------------------------------------------------TEXT Parancs--------------------------------------------if (strcmp(\"/text\", cmdtext, true, 10) == 0){if(IsPlayerAdmin(playerid)) { ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,\"{0470FC}Dinamikus 3D Text Készítő\",\"{88FC04}Szeretné hogy\\n{04F4FC}3D Text{88FC04} Legyen ezen a helyen?\",\"Yes\",\"No\");}else { SendClientMessage(playerid,COLOR_RED,\"Nem vagy Rcon Adminisztrátor!\"); }return 1;}//-----------------------------------------------------CREDIT----------------------------------------------if (strcmp(\"/tcredits\", cmdtext, true, 10) == 0){ShowPlayerDialog(playerid,6144,DIALOG_STYLE_MSGBOX,\"{FE8C00}ShOoBy\'s 3D Text System Credits\",\"{0400FE}Made by {09FE00}ShOoBy{0400FE}\\nSaving help from {EF5C06}CrystyaN {0400FE}and {EF5C06}stuntman\",\"Ok\",\"\");return 1;}return 0;}// Ezt angolul hagytam mert ez nem érdekes.....//-------------------------------------------------------------------------------------------------------------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,COLOR_RED,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(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\\\",0x3A47DEFF,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_BLUE,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\\\",0x66CC00FF,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_GREEN,x,y,z,30.0,0,1); fwrite(file,str); fwrite(file,\"\\r\\n\"); fclose(file); } if(color[playerid] == 4) { 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\\\",0xFFFF00AA,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_YELLOW,x,y,z,30.0,0,1); fwrite(file,str); fwrite(file,\"\\r\\n\"); fclose(file); } if(color[playerid] == 5) { 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\\\",0xFF9900AA,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_ORANGE,x,y,z,30.0,0,1); fwrite(file,str); fwrite(file,\"\\r\\n\"); fclose(file); } if(color[playerid] == 6) { 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\\\",0xFF66FFFF,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_PINK,x,y,z,30.0,0,1); fwrite(file,str); fwrite(file,\"\\r\\n\"); fclose(file); } if(color[playerid] == 7) { 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\\\",0xAFAFAFAA,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_GREY,x,y,z,30.0,0,1); fwrite(file,str); fwrite(file,\"\\r\\n\"); fclose(file); } if(color[playerid] == { 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\\\",0x4B00B0AA,%.2f, %.2f, %.2f,30.0,1);\" ,inputtext, x, y, z); Create3DTextLabel(inputtext,COLOR_INDIGO,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,\"Text Színek:\",\"{FA0404}Piros\\n{0704FA}KÉK\\n{2CF11A}Zöld\\n{E2FF09}Ctiromsárga\\n{FF4101}Narancssárga\\n{E97AFD}Pink\\n{7A7A7A}Szürke\\n{330099}Indigo\",\"Választ\",\"Kilép\");else SendClientMessage(playerid,COLOR_BLUE,\"Szöveg még nincs lerakva!\");}//------------------------------------------------------------------------------------------------------------if(dialogid == 3334){ if(response) { switch(listitem) { case 0: { color[playerid] = 1; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 1: { color[playerid]=2; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 2: { color[playerid]=3; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 3: { color[playerid]=4; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 4: { color[playerid]=5; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 5: { color[playerid]=6; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 6: { color[playerid]=7; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 7: { color[playerid]=8; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } case 8: { color[playerid]=9; ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,\"{F8FC04}Text Lerakás:\",\"{04FC8C}Kérlek Írd a Dobozba hogy a {F8FC04}Textben{04FC8C}\\nMi legyen!\",\"Letesz\",\"\"); } }}}return 1;}//-------------------------------------------------------Vége!--------------------------------------------------------//Honosította: R3volutionDrifter A.k.a Three
#include <a_samp>#include <Dini>#include <streamer>#include <zcmd>#include <sscanf2>//==============================================================================// 3D Text Labels//==============================================================================#define LABELFILE \"3DLabels/%d.ini\"#define LABELIDFILE \"3DLabels/id.ini\"#define MAX_LABELS 30newlIDFile[75],lFile[120];enum LABEL_INFO{Text3D:LID,LInfo[128],Float:LabelX,Float:LabelY,Float:LabelZ}new lInfo[MAX_LABELS][LABEL_INFO];new LabelUpdate;forward SaveLabels();public OnFilterScriptInit(){// 3D LabelsLoadLabels();LabelUpdate = SetTimer(\"SaveLabels\",5000,1);return 1;}public OnFilterScriptExit(){// 3D LabelsDestroyAllDynamic3DTextLabels();KillTimer(LabelUpdate);return 1;}//==============================================================================// Labels//==============================================================================CMD:addlabel(playerid, params[]){if(unformat(params,\"s[128]\",params)) return SendClientMessage(playerid,0xFFFFFF,\"HASZNÁLAT: /AddLabel < felirat >\");new Float:X,Float:Y,Float:Z;GetPlayerPos(playerid, X,Y,Z);CreateSavedLabel(params,X,Y,Z);new Msg[128];format(Msg,sizeof(Msg),\"3D Text Label Létrehozva. (Felirat:: %s)\",params);SendClientMessage(playerid, 0xFFFFFF,Msg);return 1;}CMD:removelabel(playerid,params[]){new LabelID;if(unformat(params,\"d\",LabelID)) return SendClientMessage(playerid, 0xFFFFF,\"HASZNÁLAT: /RemoveLable < Text ID >\");if(!IsValidDynamic3DTextLabel(Text3D:lInfo[LabelID][LID])) return SendClientMessage(playerid, 0xFFFFF,\"HIBA: Rossz text id!\"); DestroyDynamic3DTextLabel(Text3D:lInfo[LabelID][LID]);format(lFile,sizeof(lFile),LABELFILE,LabelID);if(dini_Exists(lFile)){dini_Remove(lFile);dini_IntSet(lIDFile,\"Total 3D Labels:\", dini_Int(lIDFile,\"Total 3D Labels:\")-1);}new Msg[128];format(Msg,sizeof(Msg),\"3D Label ID: %d törölve!\",LabelID);SendClientMessage(playerid, 0xFFFFFF,Msg);return 1;}//==============================================================================// 3D Text Labels//==============================================================================stock LoadLabels(){for(new x = 0; x <MAX_LABELS; x++){ format(lFile,sizeof(lFile),LABELFILE,x);format(lInfo