Jump to content

Gamemode by SkillZ #3 ( Burned Edit )


skillzw0w

Recommended Posts

Acum 1 minut, SorinGamerYT a spus:

unde as puteam sa modific Textdraw sau ce este de la spawn cu DeamG, DreamG.RO

 

Din pawno - include - System.inc - Open with notepad++ - CTRL + F (search) - Search rpg.dreamg.ro !
Bafta !

 

Link to comment
Share on other sites

Acum 1 minut, @SanJay a spus:

Din pawno - include - System.inc - Open with notepad++ - CTRL + F (search) - Search rpg.dreamg.ro !
Bafta !

am incercat si tot nu merge

Trebuie sa dau Compile  la gamemode ca sa mearga?

 

Edited by SorinGamerYT
Link to comment
Share on other sites

Chiar acum, Ionut_WS a spus:

probabil a modificat-o, pe burned era, cauta in gamemode DIALOG_SERVER si vezi la ce comanda apare si aia este

Am cautat si singurul lucru pe care mil da este : #define DIALOG_SERVER            276

Link to comment
Share on other sites

1 minute ago, SorinGamerYT said:

Dar daca iar comanda de pe gm-ul burned vechi  pe asta merge?

 

ar trebuii

case DIALOG_SERVER: {
			if(!response) return 1;
			switch(listitem) {
				case 0: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa debanezi toti jucatorii?", "Da", "Nu");
				case 1: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa dai restart la payday?", "Da", "Nu");
				case 2: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa bagi serverul in mententanta?", "Da", "Nu");	
				case 3: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_INPUT, "Server menu", "Scrie parola care doresti s-o aiba serverul\nDaca doresti s-o scoti, pune '0'.", "Ok", "Iesi");
				case 4: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_INPUT, "Server menu", "Scrie numele care doresti sa-l aiba serverul", "Ok", "Iesi");	
				case 5: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa stergi casele celor inactivi?", "Da", "Nu");		
				case 6: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa stergi afacerile celor inactivi?", "Da", "Nu");	
				case 7: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa resetezi quest-ul?", "Da", "Nu");				
			}
			SelectedItem[playerid] = listitem;
		}
		case DIALOG_SERVER+1: {
			if(!response) return 1;
			switch(SelectedItem[playerid]) {
				case 0: {
					format(query, sizeof(query),"UPDATE users SET `BTemp`='0', `BYear`='0', `BMonth`='0', `BDay`='0', `Banned`='0'");
					mysql_query(SQL,query);
					SendRconCommand("reloadbans");	
					SCM(playerid, COLOR_YELLOW, "Ai debanat toti jucatorii!");
				}
				case 1: {
					RestartPayday = 1;
					SCM(playerid, COLOR_YELLOW, "Serverul se va restarta la payday-ul urmator!");
				}
				case 2: {		
					foreach(Player, i) {
						if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
							if(PlayerInfo[i][pAdmin] == 0) {
								SCM(i, COLOR_CLIENT, "Serverul a intrat in mentenanta! Va rugam sa reveniti peste cateva minute.");
								KickEx(i);
							}
							else SCM(i, COLOR_CLIENT, "Serverul a intrat in mentenanta! Nu ai primit kick deoarece esti admin.");
						}	
					}
					SendRconCommand("hostname ax");
					SendRconCommand("password gnjhhhs");
				}
				case 3: {
					format(string, sizeof(string), "password %s", inputtext);
					SendRconCommand(string);
					if(strlen(inputtext) == 0) format(string, sizeof(string), "Ai scos parola de la server!");
					else format(string, sizeof(string), "Ai pus parola '%s' la server!", inputtext);
					SCM(playerid, COLOR_YELLOW, string);				
				}
				case 4: {
					format(string, sizeof(string), "hostname %s", inputtext);
					SendRconCommand(string);
					format(string, sizeof(string), "Ai pus numele '%s' la server!", inputtext);
					SCM(playerid, COLOR_YELLOW, string);				
				}
				case 5: {
					new szResult[180], Cache: result, name[64], userid, x, hours;
					for(new i = 1; i < housess; i++) {
						if(strcmp(HouseInfo[i][hOwner], "The State", true) == 0) { }
						else {							
							format(query, sizeof(query), "SELECT * FROM `users` WHERE `name`='%s'", HouseInfo[i][hOwner]);
							result = mysql_query(SQL, query);
							cache_get_field_content(0, "id", szResult); userid = strval(szResult);
							cache_get_field_content(0, "HoursMonth", szResult); hours = strval(szResult);							
							cache_get_field_content(0, "name", szResult); format(name, 64, szResult);
							cache_delete(result);
							if(hours <= 5) {
								format(string, sizeof(string), "Ai pierdut casa #%d deoarece ai avut sub 5 ore jucate in aceasta luna.", i);
								InsertEmail(HouseInfo[i][hOwner], "AdmBot", string, 0);
								format(query, sizeof(query), "UPDATE `users` SET `House`='999' WHERE `ID`='%d'", userid);
								mysql_tquery(SQL, query, "", "");
								x++;
								HouseInfo[i][hOwned] = 1;
								HouseInfo[i][hValue] = 0;
								strmid(HouseInfo[i][hOwner], "The State", 0, strlen("The State"), 255);
								format(query, sizeof(query),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='1',`Owner`='The State',`Value`='0' WHERE `ID`='%d'",BizzInfo[i][bID]);
								mysql_tquery(SQL, query, "", "");
								UpdateLabel(2, i);	
							}
						}
					}
					if(x != 0) format(string, sizeof(string), "Au fost sterse %d case din baza de date!", x);
					else format(string, sizeof(string), "Nu au fost gasite case ce ar putea fi sterse!");
					SCM(playerid, COLOR_YELLOW, string);		
				}
				case 6: {
					new szResult[180], Cache: result, name[64], userid, x, hours;
					for(new i = 1; i < bussines; i++) {
						if(strcmp(BizzInfo[i][bOwner], "The State", true) == 0) { }
						else {
							format(query, sizeof(query), "SELECT * FROM `users` WHERE `name`='%s'", BizzInfo[i][bOwner]);
							result = mysql_query(SQL, query);
							cache_get_field_content(0, "id", szResult); userid = strval(szResult);
							cache_get_field_content(0, "HoursMonth", szResult); hours = strval(szResult);							
							cache_get_field_content(0, "name", szResult); format(name, 64, szResult);
							cache_delete(result);
							if(hours <= 5) {
								format(string, sizeof(string), "Ai pierdut afacerea #%d deoarece ai avut sub 5 ore jucate in aceasta luna.", i);
								InsertEmail(BizzInfo[i][bOwner], "AdmBot", string, 0);
								format(query, sizeof(query), "UPDATE `users` SET `Bizz`='255' WHERE `ID`='%d'", userid);
								mysql_tquery(SQL, query, "", "");
								x++;
								BizzInfo[i][bLocked] = 0;
								BizzInfo[i][bOwned] = 1;
								BizzInfo[i][bBuyPrice] = 0;
								strmid(BizzInfo[i][bOwner], "The State", 0, strlen("The State"), 255);
								format(query, sizeof(query),"UPDATE `bizz` SET `Locked`='0',`Owned`='1',`Owner`='The State',`BuyPrice`='0' WHERE `ID`='%d'",BizzInfo[i][bID]);
								mysql_tquery(SQL, query, "", "");
								UpdateLabel(2, i);							
							}
						}
					}
					if(x != 0) format(string, sizeof(string), "Au fost sterse %d afaceri din baza de date!", x);
					else format(string, sizeof(string), "Nu au fost gasite afaceri ce ar putea fi sterse!");
					SCM(playerid, COLOR_YELLOW, string);		
				}	
				case 7: {
					SCM(playerid, COLOR_YELLOW, "Quest-ul a fost resetat!");
					foreach(Player, i) {
						if(IsPlayerConnected(i) && CheckObjects(i) != 0) {
							for(new x = 0; x < 50; i++) {
								if(PlayerInfo[i][pSpecialQuest][x] == 1) PlayerInfo[i][pSpecialQuest][x] = 0, DestroyPlayerObject(i, PlayerInfo[i][pObjectQuest][x]);							
							}
							/*for(new x = 0; x < 50; x++) {
								if(PlayerInfo[i][pSpecialQuest][x] == 0) {
									PlayerInfo[i][pObjectQuest][x] = CreatePlayerObject(i, QUEST_OBJECT, QuestPos[x][0], QuestPos[x][1], QuestPos[x][2], 0, 0, 0, 300.0);
								}
							}	*/						
							SaveQuest(i);
							SCM(i, COLOR_YELLOW, "Quest-ul tau a fost resetat de un administrator!");
						}
					}
					ResetQuest();
				}				
			}
		}	

CMD:server(playerid, params[]) {
	if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, COLOR_LGREEN, "Acces interzis!");
	ShowPlayerDialog(playerid, DIALOG_SERVER, DIALOG_STYLE_LIST, "Server menu", 
		"Debaneaza toti jucatorii\nRestart la payday\nServer in mentenanta\nPune parola la server\nSchimba numele la server\nSterge casele inactivilor\nSterge afacerile inactivilor\nReseteaza quest",
		"Ok", "Exit");		
	return 1;
}

 

Link to comment
Share on other sites

Acum 1 minut, Ionut_WS a spus:

ar trebuii


case DIALOG_SERVER: {
			if(!response) return 1;
			switch(listitem) {
				case 0: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa debanezi toti jucatorii?", "Da", "Nu");
				case 1: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa dai restart la payday?", "Da", "Nu");
				case 2: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa bagi serverul in mententanta?", "Da", "Nu");	
				case 3: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_INPUT, "Server menu", "Scrie parola care doresti s-o aiba serverul\nDaca doresti s-o scoti, pune '0'.", "Ok", "Iesi");
				case 4: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_INPUT, "Server menu", "Scrie numele care doresti sa-l aiba serverul", "Ok", "Iesi");	
				case 5: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa stergi casele celor inactivi?", "Da", "Nu");		
				case 6: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa stergi afacerile celor inactivi?", "Da", "Nu");	
				case 7: ShowPlayerDialog(playerid, DIALOG_SERVER+1, DIALOG_STYLE_MSGBOX, "Server menu", "Esti sigur ca vrei sa resetezi quest-ul?", "Da", "Nu");				
			}
			SelectedItem[playerid] = listitem;
		}
		case DIALOG_SERVER+1: {
			if(!response) return 1;
			switch(SelectedItem[playerid]) {
				case 0: {
					format(query, sizeof(query),"UPDATE users SET `BTemp`='0', `BYear`='0', `BMonth`='0', `BDay`='0', `Banned`='0'");
					mysql_query(SQL,query);
					SendRconCommand("reloadbans");	
					SCM(playerid, COLOR_YELLOW, "Ai debanat toti jucatorii!");
				}
				case 1: {
					RestartPayday = 1;
					SCM(playerid, COLOR_YELLOW, "Serverul se va restarta la payday-ul urmator!");
				}
				case 2: {		
					foreach(Player, i) {
						if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
							if(PlayerInfo[i][pAdmin] == 0) {
								SCM(i, COLOR_CLIENT, "Serverul a intrat in mentenanta! Va rugam sa reveniti peste cateva minute.");
								KickEx(i);
							}
							else SCM(i, COLOR_CLIENT, "Serverul a intrat in mentenanta! Nu ai primit kick deoarece esti admin.");
						}	
					}
					SendRconCommand("hostname ax");
					SendRconCommand("password gnjhhhs");
				}
				case 3: {
					format(string, sizeof(string), "password %s", inputtext);
					SendRconCommand(string);
					if(strlen(inputtext) == 0) format(string, sizeof(string), "Ai scos parola de la server!");
					else format(string, sizeof(string), "Ai pus parola '%s' la server!", inputtext);
					SCM(playerid, COLOR_YELLOW, string);				
				}
				case 4: {
					format(string, sizeof(string), "hostname %s", inputtext);
					SendRconCommand(string);
					format(string, sizeof(string), "Ai pus numele '%s' la server!", inputtext);
					SCM(playerid, COLOR_YELLOW, string);				
				}
				case 5: {
					new szResult[180], Cache: result, name[64], userid, x, hours;
					for(new i = 1; i < housess; i++) {
						if(strcmp(HouseInfo[i][hOwner], "The State", true) == 0) { }
						else {							
							format(query, sizeof(query), "SELECT * FROM `users` WHERE `name`='%s'", HouseInfo[i][hOwner]);
							result = mysql_query(SQL, query);
							cache_get_field_content(0, "id", szResult); userid = strval(szResult);
							cache_get_field_content(0, "HoursMonth", szResult); hours = strval(szResult);							
							cache_get_field_content(0, "name", szResult); format(name, 64, szResult);
							cache_delete(result);
							if(hours <= 5) {
								format(string, sizeof(string), "Ai pierdut casa #%d deoarece ai avut sub 5 ore jucate in aceasta luna.", i);
								InsertEmail(HouseInfo[i][hOwner], "AdmBot", string, 0);
								format(query, sizeof(query), "UPDATE `users` SET `House`='999' WHERE `ID`='%d'", userid);
								mysql_tquery(SQL, query, "", "");
								x++;
								HouseInfo[i][hOwned] = 1;
								HouseInfo[i][hValue] = 0;
								strmid(HouseInfo[i][hOwner], "The State", 0, strlen("The State"), 255);
								format(query, sizeof(query),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='1',`Owner`='The State',`Value`='0' WHERE `ID`='%d'",BizzInfo[i][bID]);
								mysql_tquery(SQL, query, "", "");
								UpdateLabel(2, i);	
							}
						}
					}
					if(x != 0) format(string, sizeof(string), "Au fost sterse %d case din baza de date!", x);
					else format(string, sizeof(string), "Nu au fost gasite case ce ar putea fi sterse!");
					SCM(playerid, COLOR_YELLOW, string);		
				}
				case 6: {
					new szResult[180], Cache: result, name[64], userid, x, hours;
					for(new i = 1; i < bussines; i++) {
						if(strcmp(BizzInfo[i][bOwner], "The State", true) == 0) { }
						else {
							format(query, sizeof(query), "SELECT * FROM `users` WHERE `name`='%s'", BizzInfo[i][bOwner]);
							result = mysql_query(SQL, query);
							cache_get_field_content(0, "id", szResult); userid = strval(szResult);
							cache_get_field_content(0, "HoursMonth", szResult); hours = strval(szResult);							
							cache_get_field_content(0, "name", szResult); format(name, 64, szResult);
							cache_delete(result);
							if(hours <= 5) {
								format(string, sizeof(string), "Ai pierdut afacerea #%d deoarece ai avut sub 5 ore jucate in aceasta luna.", i);
								InsertEmail(BizzInfo[i][bOwner], "AdmBot", string, 0);
								format(query, sizeof(query), "UPDATE `users` SET `Bizz`='255' WHERE `ID`='%d'", userid);
								mysql_tquery(SQL, query, "", "");
								x++;
								BizzInfo[i][bLocked] = 0;
								BizzInfo[i][bOwned] = 1;
								BizzInfo[i][bBuyPrice] = 0;
								strmid(BizzInfo[i][bOwner], "The State", 0, strlen("The State"), 255);
								format(query, sizeof(query),"UPDATE `bizz` SET `Locked`='0',`Owned`='1',`Owner`='The State',`BuyPrice`='0' WHERE `ID`='%d'",BizzInfo[i][bID]);
								mysql_tquery(SQL, query, "", "");
								UpdateLabel(2, i);							
							}
						}
					}
					if(x != 0) format(string, sizeof(string), "Au fost sterse %d afaceri din baza de date!", x);
					else format(string, sizeof(string), "Nu au fost gasite afaceri ce ar putea fi sterse!");
					SCM(playerid, COLOR_YELLOW, string);		
				}	
				case 7: {
					SCM(playerid, COLOR_YELLOW, "Quest-ul a fost resetat!");
					foreach(Player, i) {
						if(IsPlayerConnected(i) && CheckObjects(i) != 0) {
							for(new x = 0; x < 50; i++) {
								if(PlayerInfo[i][pSpecialQuest][x] == 1) PlayerInfo[i][pSpecialQuest][x] = 0, DestroyPlayerObject(i, PlayerInfo[i][pObjectQuest][x]);							
							}
							/*for(new x = 0; x < 50; x++) {
								if(PlayerInfo[i][pSpecialQuest][x] == 0) {
									PlayerInfo[i][pObjectQuest][x] = CreatePlayerObject(i, QUEST_OBJECT, QuestPos[x][0], QuestPos[x][1], QuestPos[x][2], 0, 0, 0, 300.0);
								}
							}	*/						
							SaveQuest(i);
							SCM(i, COLOR_YELLOW, "Quest-ul tau a fost resetat de un administrator!");
						}
					}
					ResetQuest();
				}				
			}
		}	

CMD:server(playerid, params[]) {
	if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, COLOR_LGREEN, "Acces interzis!");
	ShowPlayerDialog(playerid, DIALOG_SERVER, DIALOG_STYLE_LIST, "Server menu", 
		"Debaneaza toti jucatorii\nRestart la payday\nServer in mentenanta\nPune parola la server\nSchimba numele la server\nSterge casele inactivilor\nSterge afacerile inactivilor\nReseteaza quest",
		"Ok", "Exit");		
	return 1;
}

 

Unde mai exect bag Dialogul?

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.