Jump to content

Recommended Posts

Posted

Nume:Andrei

Problemă întâlnită: Cand intru in jail ma da in jos, cad, cad, cad si pana la urma ajung la pamant si mor zambaret.gif

Ce am încercat până acum: pai nustiu ce ca as fi incercat

Codul sursa/Log/Altele: Nustiu ce cod va trebuie asa ca presupun ca astea ar fi. Apropo cum iau coordonatele pentru spawn dinauntru... ca stiu cu /save si apar coordonatele unde sunt dar eu am nevoie de cele din jail sa ma dea bine... 2.gif

Uitati niste poze: http://postimg.org/gallery/3hm93op4k/c7d2612c/

// JAIL SPAWN
new Float:gRandomJailSpawns[12][3] = {
{1757.1348,-1563.9214,1738.80},
{1762.0850,-1564.2567,1738.80},
{1765.7191,-1564.1948,1738.80},
{1769.6143,-1564.0420,1738.80},
{1773.9741,-1565.4312,1738.80},
{1778.8528,-1564.3851,1738.80},
{1778.7909,-1582.1433,1738.80},
{1774.2843,-1582.3098,1738.80},
{1769.5809,-1581.6857,1738.80},
{1765.7164,-1582.5916,1738.80},
{1761.4076,-1583.0607,1738.80},
{1757.4116,-1582.2372,1738.80}
};


sau?

   AddStaticPickup(1239, 23, 1798.5801,-1578.1804,14.0827);         // enter jail
   AddStaticPickup(1239, 23, 1756.4181,-1577.8954,1742.5309);         // exit jail
   AddStaticPickup(1239, 23, 1762.0028,-1584.4185,1742.5264);         // mdc jail

sau?

if (IsPlayerInRangeOfPoint(playerid,2,1798.5801,-1578.1804,14.0827)) // jail ls
            {
                SetPlayerInterior(playerid,0);
               SetPlayerPos(playerid,1756.4181,-1577.8954,1742.5309+0.5);
               GameTextForPlayer(playerid, "~w~Los Santos Jail", 5000, 1);
               PlayerInfo[playerid][pInt] = 0;
               TogglePlayerControllable(playerid, 0);
               SetTimerEx("UnFreezeStation", 200, 0, "i", playerid);
            }

sau?

         if (IsPlayerInRangeOfPoint(playerid,2,1756.4181,-1577.8954,1742.5309) && PlayerInfo[playerid][pJailed] == 0)//jail

_________

 

P.S: Am comparat script-urile astea cu altele din alt GM si sunt asemanatorii dar pe ala merge jail :(( va rog ajutoooor

 

 

Edit: va rog mutati la SA:MP scuzati

Please sign in to comment

You will be able to leave a comment after signing in



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.