Jump to content

Creare HQ


amaru

Recommended Posts

Stiu ca mai este un tutorial, dar acela este cu comanda /enter. Acum va arat cum sa faceti fara comanda.

1. Adaugarea pickupului de intrare.

    Intrati aici http://weedarr.wikidot.com/pickups si alegeti un pickup.

    Mergeti la public OnGameModeInit() si adaugati:

   

AddStaticPickup (id, 2, x,y,z, virtual world)
    In cazul nostru avem    
AddStaticPickup(1239, 2, 2770.6973,-1628.4293,12.1775);
2. Teleportarea propriu-zisa (intrare)     Mergeti la
public CheckForWalkingTeleport(playerid)
    Si adaugati
else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz)) //unde x,y,z reprezinta coordonatele
	{//Intrare
		GameTextForPlayer(playerid, "~w~Textul vostru", 5000, 1);
		SetPlayerInterior(playerid, int); // interiorul ales
		SetPlayerPos(playerid,x,y,z);//pozitia aleasa
		PlayerInfo[playerid][pInt] = int;//interiorul ales 
	}
    Interioarele le gasiti aici http://weedarr.wikidot.com/interior         Acum sa facem iesirea.    
else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz))
	{//Iesire 
		GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,x,y,z); //pozitia pe care o vreti la iesire.
		PlayerInfo[playerid][pInt] = 0;
	}
      Asta e tot.       Si un model complet:      
if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz))
	{//LSPD Entrance
		GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
		SetPlayerInterior(playerid, 6);
		SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
		PlayerInfo[playerid][pInt] = 6;
	}
	else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz))
	{//LSPD Exit
		GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
		PlayerInfo[playerid][pInt] = 0;
	}

      Sper ca v-a fost de folos.

Link to comment
Share on other sites

stuntman-=!!" post="48711" timestamp="1293007052"]

LOL, ne inveti cum sa facem fara comanda =))), scoti comanda /enter si gata, lol...

Lock topic!

Daca taceai,filozof ramaneai.Cum adica scoti comanda(referindu'te la celalt tut) si 'gata' . Ala o sa stea in pickup mult si mine,pana cand i'o creste mustata si viermi in creier,pentru ca doar prin comanda il teleporta.

N'am de ce sa dau lock,a facut tut'ul bine,cu exemplu si caz general.

Gj

Link to comment
Share on other sites

else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz)) //unde x,y,z reprezinta coordonatele

  {

      if(PlayerInfo[..]== x )

    {

      GameTextForPlayer(playerid, "~w~Textul vostru", 5000, 1);

      SetPlayerInterior(playerid, int); // interiorul ales

      SetPlayerPos(playerid,x,y,z);//pozitia aleasa

      PlayerInfo[playerid][pInt] = int;//interiorul ales

    }

  }

Nu stiu exact cum e in gf pentru factiuni,cauti tu si inlocuiesti

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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

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