Jump to content
  • 0

Problema intrare in paint


Sprite_RoPlayers

Question

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
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
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
Answer this question...

×   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.