Jump to content

Recommended Posts

Posted

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
  • 3 months later...
  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Posted

asta stiu ca orice int vreau dar ca sa pot sa obtin coord din interior trebuie sa intru in ea mai intai

si ca sa intru trebuie sa o creez la asta ma refer

Posted

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);
                        }

       

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

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.