Jump to content

Recommended Posts

Posted

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

 

Posted
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 !

 

Posted (edited)
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
Posted
Chiar acum, SorinGamerYT a spus:

am incercat si tot nu merge

 

Schimba numele si din gamemode .pwn !

 

Posted
Acum 1 minut, @SanJay a spus:

Schimba numele si din gamemode .pwn !

Ce sa schimb?

Posted
Acum 1 minut, SorinGamerYT a spus:

Ce sa schimb?

Cauta un tutorial, nu am timpul necesar sa-ti explic totul.

 

Posted
Acum 1 minut, @SanJay a spus:

Cauta un tutorial, nu am timpul necesar sa-ti explic totul.

sa schimb systems in systems.pwn?

 

Posted
Acum 16 ore, Angelin. a spus:

Am incercat sa il conectez la Mysql in localhost, nu merge. Nu sariti cu gura ca nu stiu, stiu foarte bine cum se face dar nu functioneaza..

da-mi pm si te ajut

Posted
21 minutes ago, SorinGamerYT said:

am incercat si tot nu merge

Trebuie sa dau Compile  la gamemode ca sa mearga?

 

ca sa mearga dai ctrl+s dupa ce faci modificarea in systems si apoi recompilezi gamemode-ul

Posted
Chiar acum, Ionut_WS a spus:

ca sa mearga dai ctrl+s dupa ce faci modificarea in systems si apoi recompilezi gamemode-ul

Ok, am sa incerc ms

 

Posted
Acum 1 minut, Ionut_WS a spus:

npc

Cum as puteam reseta Casele/Bizurile care au fost cumparate

 

Posted
1 minute ago, SorinGamerYT said:

Cum as puteam reseta Casele/Bizurile care au fost cumparate

 

e comanda /server, de acolo stergi casele/biz urile jucatorilor inactivi si cum nu ii va gasii in baza de date, le va scoate

Posted
Chiar acum, Ionut_WS a spus:

e comanda /server, de acolo stergi casele/biz urile jucatorilor inactivi si cum nu ii va gasii in baza de date, le va scoate

nu imi merge comanda /server

Posted
Just now, SorinGamerYT said:

nu imi merge comanda /server

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

Posted
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

Posted
6 minutes ago, SorinGamerYT said:

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

inseamna ca a scos functia .. incearca sa mai cauti Server menu

Posted
Chiar acum, Ionut_WS a spus:

inseamna ca a scos functia .. incearca sa mai cauti Server menu

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

 

Posted
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;
}

 

Posted
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?

Posted
Acum 1 minut, SkillZ_IT. a spus:

Comanda /server a fost scoasa.

De ce? si cum pot reseta bizurile/casele repede ?

Posted
Acum 2 minute, SorinGamerYT a spus:

De ce? si cum pot reseta bizurile/casele repede ?

daca nu ma insel este comanda /asellhouse /asellbiz, sau din baza

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.