• Страница 1 из 1
  • 1
Модератор форума: dr40  
Вход/выход (/enter /exit)
JIN7921Дата: Понедельник, 07.03.2011, 01:42 | Сообщение # 1
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
Неработают команды /enter и /exit , после того как мод перекомпилил для самп 0.3с , как зделать чтоб запахали?

Добавлено (07.03.2011, 00:42)
---------------------------------------------
Можете ктото помоч с этим?



[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]
 
valychДата: Понедельник, 07.03.2011, 14:09 | Сообщение # 2
.::Offline::.
Гангстер
Сообщений: 171
[ 205 ]
Награды: 15

Статус отсутствует
JIN7921, кинь строчки


Мои друзья на ST: [Tre9, UDAV, ZioHik,Seva008]
-=Чтоб добавится ко мне в друзья дайте мне + с сообщение "Хочу в друзья"=-

-=Те кто будут у меня в друзьях, тем будет делаться скидка на платные работы=-

Мои разработки:
[FS]Transmission 70%
[INC]Anti-Fly 50%
[INC]Anti-Cheat 95%

[FAQ]Ответы на часто задаваемые вопросы
 
ZioHikДата: Вторник, 08.03.2011, 00:13 | Сообщение # 3
.::Offline::.
http://u.to/N46EAw
Сообщений: 831
[ 82 ]
Награды: 29

Статус отсутствует
он кидал где про мод спрашивал где найти
 
JIN7921Дата: Вторник, 22.03.2011, 08:55 | Сообщение # 4
.::Offline::.
Бандит
Сообщений: 26
[ 2 ]
Награды: 0

Статус отсутствует
/enter

Code
    if(strcmp(cmd, "/enter", true) == 0)
   {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
     if (IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
     {
      //printf("Found House :%d",i);
      if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
      {
       SetPlayerInterior(playerid,HouseInfo[i][hInt]);
       SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
       GameTextForPlayerRus(playerid, "~w~Welcome Home", 5000, 1);
       PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
       PlayerInfo[playerid][pLocal] = i;
      }
      else
      {
       GameTextForPlayerRus(playerid, "~r~Locked", 5000, 1);
      }
     }
    }
    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
     if (IsPlayerInRangeOfPoint(playerid, 3,BizzInfo[i][bEntrancex], BizzInfo[i][bEntrancey], BizzInfo[i][bEntrancez]))
     {
      //printf("Found House :%d",i);
      if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntcost] || (BizzInfo[i][bEntcost] > 20000 && PlayerInfo[playerid][pLevel] < 3))
      {
       if(PlayerInfo[playerid][pPbiskey] != i)
       {
        if(BizzInfo[i][bLock] == 1)
        {
         GameTextForPlayerRus(playerid, "~r~Closed", 5000, 1);
         return 1;
        }
        if(BizzInfo[i][bProd] == 0)
        {
         GameTextForPlayerRus(playerid, "~r~Out Of Stock", 5000, 1);
         return 1;
        }
        GivePlayerMoney(playerid,-BizzInfo[i][bEntcost]);
        format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out~n~Type ~g~/buygun ~w~to buy weapons", BizzInfo[i][bEntcost]);
        BizzInfo[i][bTakings] = BizzInfo[i][bTakings]+BizzInfo[i][bEntcost];
        BizzInfo[i][bProd]--;
        OnPropUpdate();
        GameTextForPlayerRus(playerid, string, 5000, 3);
        if(i == 7) //casino
        {
         gSpentCash[playerid] = GetPlayerMoney(playerid);
        }
       }
       SetPlayerInterior(playerid,BizzInfo[i][bInt]);
       SetPlayerPos(playerid,BizzInfo[i][bExitx],BizzInfo[i][bExity],BizzInfo[i][bExitz]);
       PlayerInfo[playerid][pInt] = BizzInfo[i][bInt];
       PlayerInfo[playerid][pLocal] = i+99;
       new dood[MAX_PLAYER_NAME];
       GetPlayerName(playerid, dood, sizeof(dood));
       format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntcost], i);
       printf("%s", string);
       PayLog(string);
       //PlayerInfo[playerid][pLocal] = i;
      }
      else
      {
       GameTextForPlayerRus(playerid, "~r~You dont have the cash", 5000, 1);
      }
     }
    }
    for(new i = 0; i < sizeof(SBizzInfo); i++)
    {
     if (IsPlayerInRangeOfPoint(playerid, 3,SBizzInfo[i][sbEntrancex], SBizzInfo[i][sbEntrancey], SBizzInfo[i][sbEntrancez]))
     {
      if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntcost] || (SBizzInfo[i][sbEntcost] > 20000 && PlayerInfo[playerid][pLevel] < 3))
      {
       if(PlayerInfo[playerid][pPbiskey] != i)
       {
        if(SBizzInfo[i][sbLock] == 1)
        {
         GameTextForPlayerRus(playerid, "~r~Closed", 5000, 1);
         return 1;
        }
        if(SBizzInfo[i][sbProd] == 0)
        {
         GameTextForPlayerRus(playerid, "~r~Out Of Stock", 5000, 1);
         return 1;
        }
        if(i == 2 || i == 8) //planes school
        {
         SetVehicleParamsForPlayerEx(66,playerid,0,0);
         SetVehicleParamsForPlayerEx(67,playerid,0,0);
         SetVehicleParamsForPlayerEx(68,playerid,0,0);
         SetVehicleParamsForPlayerEx(69,playerid,0,0);
         SetVehicleParamsForPlayerEx(70,playerid,0,0);
         SetVehicleParamsForPlayerEx(71,playerid,0,0);
         SetVehicleParamsForPlayerEx(72,playerid,0,0);
         PLicence[playerid] = 1;
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Летная школа: Теперь вы можете управлять самолетом.");
        }
        if(i == 0) //parachute
        {

         SetPlayerInterior(playerid,1);
         SetPlayerPos(playerid,1.71875, 30.4062, 1200.34);
         PlayerInfo[i][pInt] = 0;
         gSkyDive[playerid] = 1;
        }
        if(i == 1) //wheele
        {
         //SetPlayerInterior(playerid,HouseInfo[i][hInt]);
         if (GetPlayerState(playerid) == 2)
         {
          new tmpcar = GetPlayerVehicleID(playerid);
          TelePos[playerid][0] = 0.0;
          TelePos[playerid][1] = 0.0;
          PlayerInfo[playerid][pLocal] = 10000;
          SetVehiclePos(tmpcar, -2724.0,217.9,4.1);
         }
         else
         {
          GameTextForPlayerRus(playerid, "~w~You must be in a Street Racer", 1000, 1);
          return 1;
         }
         Spectate[playerid] = 500;
         GameTextForPlayerRus(playerid, "~w~To Exit type ~r~/exit", 5000, 1);
         //PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
        }
        if(i == 3 || i == 7) //stealth school
        {
         Hidden[playerid] = 1;
         SetPlayerToTeamColor(playerid);
         GameTextForPlayerRus(playerid, "~w~Stealth Device~n~~g~Your icon is hidden", 5000, 3);
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Стелс активирован: Ваш маркер спрятан.");
        }
        if(i == 4) //towcar school
        {
         GameTextForPlayerRus(playerid, "~w~breakdown service~n~~g~type /towcar", 5000, 3);
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Чтобы воспользоваться нашим сервисом введите /towcar.");
         return 1;
        }
        if(i == 5) //homeupgrade school
        {
         GameTextForPlayerRus(playerid, "~w~Home Supply~~g~type /houseupgrade", 5000, 3);
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Чтобы воспользоваться нашим сервисом введите /houseupgrade.");
         return 1;
        }
        if(i == 6) //sellcars school
        {
         GameTextForPlayerRus(playerid, "~w~Car Sales~n~~g~type /carupgrade", 5000, 3);
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Чтобы воспользоваться нашим сервисом введите /carupgrade.");
         return 1;
        }
        if(i == 9 || i == 10) //buy school
        {
         Locator[playerid] = 1;
         GameTextForPlayerRus(playerid, "~w~Locator Device~n~~g~Your can locate best buys and sales", 5000, 3);
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Чтобы воспользоваться нашим сервисом введите /bestbuy или /bestsale");
        }
        if(i == 11 || i == 12) //buy school
        {
         SendClientMessageRus(playerid, TEAM_GROVE_COLOR, "Чтобы воспользоваться нашим сервисом введите /jointeam <teamid>");
         return 1;
        }
        GivePlayerMoney(playerid,-SBizzInfo[i][sbEntcost]);
        gSpentCash[playerid] = GetPlayerMoney(playerid);
        SBizzInfo[i][sbProd]--;
        SBizzInfo[i][sbTakings] = SBizzInfo[i][sbTakings]+SBizzInfo[i][sbEntcost];
        new dood[MAX_PLAYER_NAME];
        GetPlayerName(playerid, dood, sizeof(dood));
        format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntcost], i);
        printf("%s", string);
        PayLog(string);
        OnPropUpdate();
       }
      }
      else
      {
       GameTextForPlayerRus(playerid, "~r~You dont have the cash", 5000, 1);
      }
     }
    }
    return 1;
   }

/exit
Code
    if(strcmp(cmd, "/exit", true) == 0)
   {
    if (IsPlayerInRangeOfPoint(playerid, 10,-2724.0,217.9,4.1))
    {
     if (GetPlayerState(playerid) == 2)
     {
      new tmpcar = GetPlayerVehicleID(playerid);
      SetVehiclePos(tmpcar, 1519.2,-1474.4,9.1);
     }
     else
     {
      SetPlayerPos(playerid, 1519.2,-1474.4,9.1);
      return 1;
     }
     new oldcash = gSpentCash[playerid];
     if(oldcash > 0)
     {
      new Total = GetPlayerMoney(playerid) - oldcash;
      printf("Total %d = GetPlayerMoney(playerid) %d - oldcash %d",Total,GetPlayerMoney(playerid),oldcash);
      new name[MAX_PLAYER_NAME];
      SBizzInfo[1][sbTakings] = SBizzInfo[1][sbTakings]+Total;
      GetPlayerName(playerid, name, sizeof(name));
      format(string,128,"<< %s has left the modshop with $%d >>",name,Total);
      PayLog(string);
     }
     gSpentCash[playerid] = 0;
     TelePos[playerid][0] = 0.0;
     TelePos[playerid][1] = 0.0;
     Spectate[playerid] = -1;
     PlayerInfo[playerid][pLocal] = -1;
    }
    for(new i = 0; i <  sizeof(HouseInfo); i++)
    {
     //printf("House :%d",i);
     if (IsPlayerInRangeOfPoint(playerid, 3,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
     {
      SetPlayerInterior(playerid,0);
      SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
      PlayerInfo[playerid][pInt] = 0;
      PlayerInfo[playerid][pLocal] = -1;
      if(HouseInfo[i][hHel] == 1)
      {
       new Float:tempheal;
       GetPlayerHealth(playerid,tempheal);
       if(tempheal < 100.0)
       {
        SetPlayerHealth(playerid,100.0);
       }
      }
     }
    }
    for(new i = 0; i <  sizeof(BizzInfo); i++)
    {
     //printf("Bizz :%d",i);
     if (IsPlayerInRangeOfPoint(playerid, 3,BizzInfo[i][bExitx], BizzInfo[i][bExity], BizzInfo[i][bExitz]))
     {
      SetPlayerInterior(playerid,0);
      PlayerInfo[playerid][pInt] = 0;
      SetPlayerPos(playerid,BizzInfo[i][bEntrancex],BizzInfo[i][bEntrancey],BizzInfo[i][bEntrancez]);
      PlayerInfo[playerid][pLocal] = -1;
      if(i == 7 && PlayerInfo[playerid][pPbiskey] != 7) //casino
      {
       new oldcash = gSpentCash[playerid];
       if(oldcash > 0)
       {
        new Total = GetPlayerMoney(playerid) - oldcash;
        printf("Total %d = GetPlayerMoney(playerid) %d - oldcash %d",Total,GetPlayerMoney(playerid),oldcash);
        new name[MAX_PLAYER_NAME];
        BizzInfo[i][bTakings] = BizzInfo[i][bTakings]+Total;
        GetPlayerName(playerid, name, sizeof(name));
        format(string,128,"<< %s has left the casino with $%d >>",name,Total);
        PayLog(string);
        gSpentCash[playerid] = 0;
       }
      }
     }
    }
    if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77)
    {
     TogglePlayerControllable(playerid, 1);
     RemovePlayerFromVehicle(playerid);
    }
    return 1;
   }

Добавлено (22.03.2011, 07:55)
---------------------------------------------
Ну как это исправить?



[url=http://nick-name.ru/][img]http://nick-name.ru/forum/JIN.gif[/img][/url]
[img]http://monitoring.sangta.ru/userbar-81.177.159.26:3431.jpg[/img]


Сообщение отредактировал JIN7921 - Вторник, 22.03.2011, 08:55
 
  • Страница 1 из 1
  • 1
Поиск:


Copyright www.SAMP-TEAM.com (c) 2009-2024
Правила использования материалов сайта

При копировании материалов из нашего сайта
ссылка на www.SAMP-TEAM.com обязательна!
Нарушители правил будут строго наказаны!

Хостинг от uCoz   
Для корректного просмотра мы рекомендуем Вам использовать браузер Google Chrome.
Яндекс.Метрика
Яндекс.Метрика