Area

Započeo [MX] MineCraft Kruno1407 SoaD Macaskill.cpp, Jun 13, 2010, 18:26:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo tko zeli moze si kopirat...al ne zopve se area nego Fort DeMorgan

//-----------------------------------[JAIL]-------------------------------------------------------------------------
   if(strcmp(cmd, "/prison",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerInfo[playerid][pAdmin] < 2)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste ovlasteni da koristite ovu komandu !");
               return 1;
           }
           tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /prison [playerid/DioImena]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
          if(IsPlayerConnected(giveplayerid))
          {
              if(giveplayerid != INVALID_PLAYER_ID)
              {
                  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "* %s je stavljen u Fort DeMorgan.", giveplayer);
               SendClientMessage(playerid, COLOR_LIGHTRED, string);
               format(string, sizeof(string), "* Stavljen si u Fort DeMorgan od admina %s.", sendername);
               SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
               GameTextForPlayer(giveplayerid, "~w~Dobrodosao u ~n~~r~Fort DeMorgan", 5000, 3);
               WantedPoints[giveplayerid] = 0;
               WantedLevel[giveplayerid] = 0;
               PlayerInfo[giveplayerid][pJailed] = 2;
               PlayerInfo[giveplayerid][pJailTime] = 3600;
                  SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
               SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
              }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Igrac je Offline !");
             return 1;
         }
       }
       return 1;
   }


Uzivajte..ako trebate dat cu vam i komandu /jail..