[POMOC] Exit iz kuce

Započeo Hacked, Mart 05, 2011, 08:18:47 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:CYBEr edit
Detaljan opis problema: Evo kupim kucu i onda udjem u nju i mogu da izadjem, ali kad idem relog i kad se spawnam u njoj onda je problem nemogu izaci
Dio skripte:
if(newkeys == KEY_SECONDARY_ATTACK)
{
      if(IsPlayerConnected(playerid))
      {
       for(new i = 0; i <  sizeof(HouseInfo); i++)
       {
         if (IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[playerid][hExitx], HouseInfo[playerid][hExity], HouseInfo[playerid][hExitz]))
     {
        SetPlayerPos(playerid,HouseInfo[playerid][hEntrancex],HouseInfo[playerid][hEntrancey],HouseInfo[playerid][hEntrancez]);
        SetPlayerInterior(playerid,0);
        SetPlayerVirtualWorld(playerid,0);
      PlayerInfo[playerid][pVW] = 0;
        PlayerInfo[playerid][pInt] = 0;
        PlayerInfo[playerid][pHouseEntered] = 0;
        PlayerInfo[playerid][pLocal] = 255;
        if(HouseInfo[i][hHel] == 1)
        {
              GetPlayerHealth(playerid,tempheal);
}
            if(tempheal < 100.0)
        {
            if(MlijekoZaHeal > 0)
            {
          SetPlayerHealth(playerid,100.0);
          MlijekoZaHeal -= 1;
    }
    else
    {
        SCM(playerid,ZELENA, "Nema viÅ¡e mlijeka za heal");
        printf("%d",PlayerInfo[playerid][pVW]);
    }
    }
    }
      }


Ovo je da se spawna u kuci
if(house !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
SetPlayerVirtualWorld(playerid,HouseInfo[house][hVirtualWorld]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
PlayerInfo[playerid][VirtualWorld] = HouseInfo[house][hVirtualWorld];
return 1;
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): -//-
/

isti problem je bio i kod mene ali sam popravio..nasao sam negdje na forumu FS exit samo ubacio i radi

tako je isto i kod mene---> pomagajte :S

if(house !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
SetPlayerVirtualWorld(playerid,HouseInfo[house][hVirtualWorld]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
PlayerInfo[playerid][VirtualWorld] = HouseInfo[house][hVirtualWorld];
                               PlayerInfo[playerid][pHouseEntered] = house;
return 1;
}
}


Ovaj gore kod zamijeni sa svojim!





Popravio sam neide vako kako si reko..  Treba napraviti novo za Exit jer nema, ima samo za enter

Moze LOCK
/