Jump to content
  • 0

Problema HQ


MrBlack

Question

Salut am niste factiuni care vreau sa le mut in ls ... si nu prea stiu exact cum ,.. nu am intrare de aia cu enter / exit ... :| Cand te duci langa usa intra/iese...

Anume ce trebuie sa modific la asta ca sa poti intra iesi din hq !  Ca nu prea am inteles ...

	else if (PlayerToPointStripped(1, playerid,1828.1594,-1980.4380,13.5469, cx,cy,cz))
	{
		//Stracci HQ
		if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
		{
			SetPlayerPos(playerid, 2352.1885,-1180.9219,1027.9766);
			GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
			SetPlayerInterior(playerid,5);
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else if(hqlock[surlock] == 0)
		{
		    SetPlayerPos(playerid, 1237.8329,-833.3148,1084.0078);
			GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
			SetPlayerInterior(playerid,5);
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else
		{
		    GameTextForPlayer(playerid, "~r~Locked",5000,1);
		}
	}
	else if (PlayerToPointStripped(1, playerid,2352.9187,-1180.9679,1027.9766, cx,cy,cz))
	{
		//Stracci HQ
		SetPlayerPos(playerid, 1828.1904,-1981.0223,13.5469);
		GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 179);
		PlayerInfo[playerid][pInt] = 0;
	}
Si mai am si asta
		if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Stracci spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 5);
		    SetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
		    PlayerInfo[playerid][pInt] = 5;
		    return 1;
		}

.. nu am inteles eu prea bine care e treaba cu astea

daca imi poate explica cineva

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

MrBlack hai ca te ajut eu !

	else if (PlayerToPointStripped(1, playerid,coordonate intrare hq , adica afara , cx,cy,cz))
	{
		//Stracci HQ
		if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
		{
			SetPlayerPos(playerid, coordonate hq , adica inaintru la hq);
			GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
			SetPlayerInterior(playerid,[b]interiorul la hq pui id-ul de la interior , dar sa corespunda cu coordonatele [/b]);
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else if(hqlock[surlock] == 0)
		{
		    SetPlayerPos(playerid, coordonate hq , adica inaintru la hq);
			GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
			SetPlayerInterior(playerid,[b]interiorul la hq pui id-ul de la interior , dar sa corespunda cu coordonatele[/b];
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else
		{
		    GameTextForPlayer(playerid, "~r~Locked",5000,1);
		}
	}
	else if (PlayerToPointStripped(1, playerid,coordonate interior hq la iesire , adica la usa din hq de unde sa iasa membrii, cx,cy,cz))
	{
		//Stracci HQ
		SetPlayerPos(playerid, coordonate intrare hq , adica afara , aici este cand apasa jucatorul enter sa il scoata din hq);
		GameTextForPlayer(playerid, "~w~Stracci HQ",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 179);
		PlayerInfo[playerid][pInt] = 0;
	}
Si mai am si asta
		if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Stracci spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, ,[b]interiorul la hq pui id-ul de la interior , dar sa corespunda cu coordonatele [/b]);
		    SetPlayerPos(playerid, coordonate unde sa il respaneze pe jucator trebuie sa corespunda cu cele de mai sus si cu id-ul de la interior);
		    PlayerInfo[playerid][pInt] = 5;
		    return 1;
		}

Daca nu ai inteles ma anunti si iti mai explic odata !

default.png
Link to comment
Share on other sites

imi da si mie niste erori si nu stiu de la ce daca ma poate ajuta cineva pt ca sunt nou in chestia asta

C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 017: undefined symbol "hqlock"
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 017: undefined symbol "surlock"
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

imi da si mie niste erori si nu stiu de la ce daca ma poate ajuta cineva pt ca sunt nou in chestia asta

C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 017: undefined symbol "hqlock"
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 017: undefined symbol "surlock"
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cl4Ud1U\Desktop\ser 0.3\srv\gamemodes\gf.pwn(2867) : fatal error 107: too many error messages on one line

Tie iti da eroari pt ca poate pentru ca ai sistem cu /enter si /exit, nu cu intraie/iesire automata, adica fara sa dai /enter , intra singur

 

Link to comment
Share on other sites

uite cum am eu

   		if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//G-Unit spawn
		{
		    SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid,5);
		    SetPlayerPos(playerid, 2344.80, -1181.34, 1027.98);
		    PlayerInfo[playerid][pInt] = 5;
		    return 1;
		}

	    else if (PlayerToPointStripped(1, playerid,702.6781, -1275.245, 15))
	{
		//G-Unit HQ
		if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
		{
			SetPlayerPos(playerid, 2350.339843,-1181.649902,1027.976562);
			GameTextForPlayer(playerid, "~w~G-Unit HQ",5000,1);
			SetPlayerInterior(playerid,5);
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else if(hqlock[surlock] == 0)
		{
		    SetPlayerPos(playerid, 2350.339843,-1181.649902,1027.976562);
			GameTextForPlayer(playerid, "~w~G-Unit HQ",5000,1);
			SetPlayerInterior(playerid,5;
			SetPlayerFacingAngle(playerid, 90);
			PlayerInfo[playerid][pInt] = 5;
		}
		else
		{
		    GameTextForPlayer(playerid, "~r~Locked",5000,1);
		}
	}
	else if (PlayerToPointStripped(1, playerid,2352.94, -1181.05, 1027098))
	{
		//G-Unit HQ
		SetPlayerPos(playerid, 728.50, -1274.41, 13.67);
		GameTextForPlayer(playerid, "~w~G-Unit HQ",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 179);
		PlayerInfo[playerid][pInt] = 0;
	}

si daca ati putea face un hq cu lock si deastea pt factiune as fi foarte recunascator ms

EDIT: am reusit sa fac treaba asta dar am un fel de pickup triunghilar galbe i in interior si vreau sa le scot (cum e in san andreasul original) cine ma poate ajuta sa ma ajujte va rog ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By VenoMarius ERROR404
      Salut, am si eu o problema cu database, dupa ce imi dau admin 7 din baza de date cand intru pe joc nu primesc adminul, dc ?
    • By Raul112233
      Salut,am si eu o problema!!
      Cand ma fac duty in lspd si pun tinta imi da server closed connection!!
      De ce??
       

    • By Goad
      @Banditul
      @Mister
       
      Salut, de curand toate conturile mele " sociale " au fost sparte inclusiv cel de crypto, de cineva pus.. desigur.
       
      Nu stiu ce reclama a facut aici dar scriu dupa atata timp deoarece trebuiesc informati toti despre ceea ce descarca de aici sau cu cine se intra in contact. 
       
      Doresc daca se poate sa imi fie șters warning-ul deoarece se pot face verificari pe clasa de IP. O sa las o poza mai jos, mi-am actualizat parola fara probleme chiar acum.

    • By Yonut
      Salut!
       
      Am o mica problema cu include-ul mSelection, pe mine personal ma depaseste si nu stiu ce sa-i fac, am incercat ogramada de chestii.
      Mai exact cand un jucator foloseste comanda [/clothes], [/buyhat] respectiv [/glasses] apare textdraw-ul include-ului mSelection insa nu se incarca niciun model, cateva poze: 


      Cred ca ati inteles despre ce este vorba.
      Nu primesc absolut nicio erroare in consola, am utilizat crashdetect in speranta ca voi gasi ceva insa, nimic.
       
      Codul pare sa fie ok, fisier-ul skins.txt exista in folder-ul scriptfiles, la fel si glasses.txt, s.a.m.d
       
      Daca cineva a mai avut problema asta si m-ar ajuta as aprecia enorm.
      Vreau raspunsuri serioase, de la persoane seriose, nu aiurea.
      Multumesc!
    • By VenoMarius ERROR404
      Am o problema: dupa ce al luat reward-ul  imi apare timpul de asteptare pentru al lua dinou, iar daca dau relog de fiecare data pot da /reward.
      NU este salvat timul undeva ?
      Si cum il salvez ?

  • Recently Browsing   0 members

    No registered users viewing this page.

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