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