Jump to content

Cum sa creezi un HQ.


Razvann

Recommended Posts

n acest tutorial va voi arata cum sa creezi un HQ pentru samp.

Prima data, intri in GM si cauti liniile:

Code: [select]

                  if(house == 241)//City Hall

                  {

                      SetPlayerInterior(i,0);

                      SetPlayerPos(i,1481.0566,-1770.9563,18.7958);

                      PlayerInfo[pInt] = 0;

                      PlayerInfo[pLocal] = 255;

                  }Dublezii liniile si in loc de "//City Hall" pui ce vrei tu, iar la SetPlayerPos pui asa:

Code: [select]

SetPlayerPos(i,x,y,z);

la setplayerpos , ce coordonata punem ? :| cea de afara , sau din interior ?

metallica-logo.jpg
Link to comment
Share on other sites

  • 3 months later...
  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

am facut tot cum scrie aici dar nu pot intra si iesi din hq ma puteti ajuta plzz

si daca mi-ati zice cum scot cercurile galbene care te baga si te scot din cladire ar fi f frumos

                                                if(house == 242)
						{
						        SetPlayerInterior(i,2);
							SetPlayerPos(i,1123.5602,-2036.9929,69.8867);
							PlayerInfo[i][pInt] = 0;
							PlayerInfo[i][pLocal] = 255;
						}
AddStaticPickup(1239, 2, 1123.5602,-2036.9929,69.8867);
"/enter"
                        else if (PlayerToPoint(3.0, playerid,1123.5602,-2036.9929,69.8867))
			{
			    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
			    {
			        SetPlayerInterior(playerid,2);
				GameTextForPlayer(playerid, "~w~To the HQ", 5000, 1);
			        SetPlayerPos(playerid,2543.462646,-1308.379882,1026.728393);
				PlayerInfo[playerid][pInt] = 2;
				PlayerInfo[playerid][pLocal] = 242;
				}
			}
"/exit"
                        else if (PlayerToPoint(3.0, playerid,2543.462646,-1308.379882,1026.728393))
			{
			    SetPlayerInterior(playerid,0);
			    SetPlayerPos(playerid,1123.5602,-2036.9929,69.8867);
			    PlayerInfo[playerid][pInt] = 0;
			    PlayerInfo[playerid][pLocal] = 255;
			}
                        else if (PlayerToPoint(3, i,1123.5602,-2036.9929,69.8867))
			{
			    GameTextForPlayer(i, "~y~Welcome to ~r~To the HQ~n~~w~Type /enter to go in", 5000, 5);
                        }

       

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 7 months later...

Salut , Eu am deja un Hq , numai ca nu stiu unde sa modific urmatoarele chestii :

1 )  Vreau sa Dau /enter din  Los Santos , o locatie aleasa de mine ..  sa scriu  /enter si sa ma dea in HQ  , Unde modific .. ?

2 ) Vreau sa dau /exit din HQ si sa ma dea in  Los Santos , exact acolo unde dau /enter  , unde modific ?

3) In interiorul HQ-ului am un "i" care ma duce undeva pe acoperis ,  cum si unde modific  pozitia de teleport ?

Astept raspuns , multumesc.

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