Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 6) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- fID = strval(inputtext);
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteInt(File,"Id",fID);
- INI_Close(File);
- ShowPlayerDialog(playerid, 26, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of your Faction you want to create.","Okay","Cancel");
- }
- }
- if(dialogid == 7) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank1",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the second lowest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 8) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank2",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the third lowest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 9) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank3",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the forth lowest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 10) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank4",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the fifth lowest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 11) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank5",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the sixth lowest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 12) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank6",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 13, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the forth highest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 13) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank7",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 14, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the third highest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 14) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank8",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the second highest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 15) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank9",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 16, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the highest rank to be called.","Okay","Cancel");
- }
- }
- if(dialogid == 16) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank10",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 17, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your lowest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 17) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank1Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 18, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your second lowest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 18) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank2Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your third lowest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 19) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank3Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 20, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fourth lowest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 20) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank4Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 21, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fifth lowest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 21) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank6Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 22, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fourth highest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 22) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank7Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 23, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your third highest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 23) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank8Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 24, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your second highest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 24) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank9Skin",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 25, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your highest rank to have.","Okay","Cancel");
- }
- }
- if(dialogid == 25) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Rank10Skin",inputtext);
- INI_Close(File);
- }
- }
- if(dialogid == 26) {
- if(!response) return 1;
- if(response)
- {
- new path[40];
- format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
- new INI:File = INI_Open(path);//open/create a file in the folder.
- INI_SetTag(File,"Faction Data");
- INI_WriteString(File,"Name",inputtext);
- INI_Close(File);
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the lowest rank to be called.","Okay","Cancel");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment