[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
/time как на самп-рп
iThomasДата: Четверг, 18.10.2012, 18:11 | Сообщение # 1
Нет аватара
Пользователь

Сообщений: 65
Награды: 2


« 55 »

Оффлайн
P.S. Автор не я, я лишь переделал дизайн как на самп-рп...
Стоит отметить, хорошо пойдёт для "подстав"

Хорошо сойдёт для RLS модов. ye
Code
if(strcmp(cmd, "/time", true) == 0)
     {
         if(IsPlayerConnected(playerid))
         {
                         if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
             {
                 ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
               }
               GetPlayerName(playerid, sendername, sizeof(sendername));
             format(string, sizeof(string), "%s взглянул на часы", sendername);
             ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    SendClientMessage(playerid, COLOR_RED, "One-Rp Red Server");
    new mtext[20];
             new year, month,day;
             getdate(year, month, day);
             if(month == 1) { mtext = "January"; }
             else if(month == 2) { mtext = "February"; }
             else if(month == 3) { mtext = "March"; }
             else if(month == 4) { mtext = "April"; }
             else if(month == 5) { mtext = "May"; }
             else if(month == 6) { mtext = "June"; }
             else if(month == 7) { mtext = "July"; }
             else if(month == 8) { mtext = "August"; }
             else if(month == 9) { mtext = "September"; }
             else if(month == 10) { mtext = "October"; }
             else if(month == 11) { mtext = "November"; }
             else if(month == 12) { mtext = "December"; }
             new hour,minuite,second;
             gettime(hour,minuite,second);
             FixHour(hour);
             hour = shifthour;
             if (minuite < 10)
             {
                 if (PlayerInfo[playerid][pJailTime] > 0)
                 {
                     format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:0%d~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
                 }
                 else
                 {
                     format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:0%d", day, mtext, hour, minuite);
                 }
             }
             else
             {
                 if (PlayerInfo[playerid][pJailTime] > 0)
                 {
                     format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:%d~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
                 }
                 else
                 {
                     format(string, sizeof(string), "~y~%d %s~n~~g~~w~%d:%d", day, mtext, hour, minuite);
                 }
             }
             GameTextForPlayer(playerid, string, 5000, 1);
         }
         return 1;
     }
else if(strcmp(cmd, "/house", true) == 0)
  {
       if(PlayerInfo[playerid][pAdmin] >= 6)
       {
     tmp = strtok(cmdtext, idx);
     if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "::: Введите: /house [housenumber]");
     new housenum = strval(tmp);
     SetPlayerPos(playerid,HouseInfo[housenum][hEntrancex],HouseInfo[housenum][hEntrancey],HouseInfo[housenum][hEntrancez]);
     GameTextForPlayer(playerid, "~w~HOUSE", 5000, 1);
    }
   return 1;
  }



Бесплатно подставить человека на Samp-Rp
Обучаю ремеслу вирусов, взломов. Писать в скайп: tidniwe.
  • Страница 1 из 1
  • 1
Поиск: