Код:
TurfWarsAdminMenu(playerid)
{
new string[128];
format(string,sizeof(string),"Edit Turfs...\nEdit Family Colors...");
ShowPlayerDialog(playerid,TWADMINMENU,DIALOG_STYLE_LIST,"Turf Wars - Admin Menu:",string,"Select","Exit");
}
TurfWarsEditTurfsSelection(playerid)
{
new string[2048];
for(new i = 0; i < MAX_TURFS; i++)
{
if(TurfWars[i][twOwnerId] != -1)
{
if(TurfWars[i][twOwnerId] < 0 || TurfWars[i][twOwnerId] > MAX_FAMILY-1)
{
format(string,sizeof(string),"%s%s - \t(Invalid Family)\n",string,TurfWars[i][twName]);
}
else
{
format(string,sizeof(string),"%s%s - \t(%s)\n",string,TurfWars[i][twName],FamilyInfo[TurfWars[i][twOwnerId]][FamilyName]);
}
}
else
{
format(string,sizeof(string),"%s%s - \t(%s)\n",string,TurfWars[i][twName],"Vacant");
}
}
ShowPlayerDialog(playerid,TWEDITTURFSSELECTION,DIALOG_STYLE_LIST,"Turf Wars - Edit Turfs Selection Menu:",string,"Select","Back");
}
TurfWarsEditTurfsMenu(playerid)
{
new string[128];
format(string,sizeof(string),"Edit Dimensions...\nEdit Owners...\nEdit Vulnerable Time...\nEdit Locked...\nEdit Perks...\nReset War...\nDestroy Turf");
ShowPlayerDialog(playerid,TWEDITTURFSMENU,DIALOG_STYLE_LIST,"Turf Wars - Edit Turfs Menu:",string,"Select","Back");
}
TurfWarsEditTurfsOwner(playerid)
{
new string[128];
format(string,sizeof(string),"Please enter a family id that you wish to assign to this turf:\n\nHint: Enter -1 if you wish to vacant the turf.");
ShowPlayerDialog(playerid,TWEDITTURFSOWNER,DIALOG_STYLE_INPUT,"Turf Wars - Edit Turfs Owner Menu:",string,"Change","Back");
}
TurfWarsEditTurfsVul(playerid)
{
new string[128];
format(string,sizeof(string),"Please enter a Vulnerable countdown time for the turf:");
ShowPlayerDialog(playerid,TWEDITTURFSVUL,DIALOG_STYLE_INPUT,"Turf Wars - Edit Turfs Vulnerable Menu:",string,"Change","Back");
}
TurfWarsEditTurfsLocked(playerid)
{
new string[128];
format(string,sizeof(string),"Lock\nUnlock");
ShowPlayerDialog(playerid,TWEDITTURFSLOCKED,DIALOG_STYLE_LIST,"Turf Wars - Edit Turfs Locked Menu:",string,"Change","Back");
}
TurfWarsEditTurfsPerks(playerid)
{
new string[128];
format(string,sizeof(string),"None\nExtortion");
ShowPlayerDialog(playerid,TWEDITTURFSPERKS,DIALOG_STYLE_LIST,"Turf Wars - Edit Turfs Perks Menu:",string,"Change","Back");
}