Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Buna ziua .

Am si eu urmatoarea problema, ma aflu la arena de paint dau /enter si imi zice urmoarea

eroare ca nu sunt langa arena de paint.

G5O6oPv.jpg

Comanda este asta 

YCMD:enter(playerid, params[], help) {
    for(new i = 1; i < sizeof(BizzInfo); i++) {
	    if(IsPlayerInRangeOfPoint(playerid,2,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) && BizzInfo[i][bStatic] == 1) {
		   if(InWar[PlayerInfo[playerid][pMember]] == 1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti intra intr-o afacere in timpul war-ului!");
		   if(GetPlayerCash(playerid) < BizzInfo[i][bFee]) return GameTextForPlayer(playerid, "~r~~h~Nu ai destui bani", 1000, 1);
		   if(OnDuty[playerid] == 1 || PlayerHit[playerid] != -1) { }
		   else if(BizzInfo[i][bLocked] == 1) return GameTextForPlayer(playerid, "~r~~h~Inchis", 1000, 1);
		   if(i == 17) {
				if(OnDuty[playerid] == 1) return SCM(playerid, COLOR_WHITE, "Esti la datorie, nu poti intra.");
				if(InGame[playerid] == 1) return 1;
				if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti intra!");
				if(PlayerInfo[playerid][pConnectTime] < 5) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de 5 ore jucate pentru a putea intra in paintball!");
				if(PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de o licenta de arme pentru a putea intra in paintball!");			
				EnterGame(playerid);
		   }
		   else if(i == 20) {
				if(OnDuty[playerid] == 1) return SCM(playerid, COLOR_WHITE, "Esti la datorie, nu poti intra.");
				if(!PlayerToPoint(5.0, playerid, 1310.1653, -1367.5322, 13.5082)) return SCM(playerid, COLOR_GREY, "Nu esti la paintball. Foloseste /gps pentru a vedea unde este.");
				if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti intra!");
				if(PlayerInfo[playerid][pConnectTime] < 5) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de 5 ore jucate pentru a putea intra in paintball!");
				if(PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de o licenta de arme pentru a putea intra in arena CS!");
				new szDialog[1024], szDialog2[1024];
				strcat(szDialog2, "Mod\tJucatori\tMapa\tStatus\n");
				if(PaintTime[0] > 0) format(szDialog, 1024, "Clasic\t%d jucatori\t%s\t{FFE203}In desfasurare (%s)\n", PlayersOnPaint(0), MapName(0), CalculeazaTimp2(PaintTime[0]));
				else format(szDialog, 1024, "Clasic\t%d jucatori\t%s\t{2BAD2B}In asteptare...\n", PlayersOnPaint(0), MapName(0));
				strcat(szDialog2, szDialog);
				if(PaintTime[1] > 0) format(szDialog, 1024, "Clasic cu armura\t%d jucatori\t%s\t{FFE203}In desfasurare (%s)\n", PlayersOnPaint(1), MapName(1), CalculeazaTimp2(PaintTime[1]));
				else format(szDialog, 1024, "Clasic cu armura\t%d jucatori\t%s\t{2BAD2B}In asteptare...\n", PlayersOnPaint(1), MapName(1));
				strcat(szDialog2, szDialog);
				if(PaintTime[2] > 0) format(szDialog, 1024, "Gun Game\t%d jucatori\t%s\t{FFE203}In desfasurare (%s)\n", PlayersOnPaint(2), MapName(2), CalculeazaTimp2(PaintTime[2]));
				else format(szDialog, 1024, "Gun Game\t%d jucatori\t%s\t{2BAD2B}In asteptare...\n", PlayersOnPaint(2), MapName(2));
				strcat(szDialog2, szDialog);
				ShowPlayerDialog(playerid, DIALOG_MODE, DIALOG_STYLE_TABLIST_HEADERS, "Paintball:", szDialog2, "Ok", "Exit");								
		   } 
		   else if(i == 22) {
				if(OnDuty[playerid] == 1) return SCM(playerid, COLOR_WHITE, "Esti la datorie, nu poti intra.");
				if(PlayersInRace() == 20) return SCM(playerid, COLOR_LGREEN, "Nu se mai poate intra acum in arena de curse deoarece este plina!");
				if(RaceStarted == 1) return SCM(playerid, COLOR_LGREEN, "Nu se mai poate intra acum deoarece este o cursa pornita!");
				if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a participa la o cursa!");
				if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
				EnterRaceArena(playerid);								
		   }
		   else return 1;
		   new str1[64];
		   format(str1, sizeof(str1), "~r~-$%d", BizzInfo[i][bFee]);		   
		   GameTextForPlayer(playerid, str1, 1000, 1);	
		   GivePlayerCash(playerid,-BizzInfo[i][bFee]);
		   BizzInfo[i][bBalance] += BizzInfo[i][bFee];	
		   new query[128];
		   format(query,sizeof(query),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'", BizzInfo[i][bBalance], i);
		   mysql_query(SQL,query);		   
		}			   
	}				   
	return 1;
}

Am cautat acel text in gm si in folder-ul sistems.inc dar nu l-am gasit nici sa mor 

Folosesc gamemode-ul @SkillZ_IT.

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Verifica coordonatele de unde iti da eroarea.

 

Edit: Acestea sunt coordonatele de la paint 

1310.1653, -1367.5322, 13.5082
Edited by CTMBeast
  • 0
Posted

Verifica daca id-ul de la paint din baza de date este tot 20 ca in comanda, te rog sa nu mai imi dai mesaje pe profilul personal, deja am peste 100 mesaje cu ajutor.

  • 0
Posted (edited)
La 07.01.2019 la 16:44, CTMBeast a spus:

Verifica coordonatele de unde iti da eroarea.

 

Edit: Acestea sunt coordonatele de la paint 


1310.1653, -1367.5322, 13.5082

Salut CTM da astea sunt cordonatele si de la paint.

Am rezolvat prin modificarea cordonatelor .

Pwp dulke

 

Edited by Sprite_RoPlayers
  • Thanks 1

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.