[POMOC] Ownership i jos njeki stvari

Započeo Zenga1998, Maj 16, 2011, 17:19:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: CroSerbia(mojgm znaci od 0 poceo)
Detaljan opis problema: neznam kako da napravim /v i onda da bude tu Lociraj vozilo itd ii... neznam kako da rjesim bug sa areom.. znaci kad idem /prison on moze ic normalno al kad idem /unprison ondaa ono pise njeko sranje i on pocme opet letit unutra u areu..... Molim vas pomazite.!
Dio skripte: evo za /prison i /unprison.. evo /prison..
if(strcmp(cmd, "/prison",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if(PlayerInfo[playerid][pAdmin] < 2)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste autorizirani da koristite ovu komandu !");
               return 1;
           }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /prison [ID/Ime]");
            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), "* Stavili ste %s u AREA 51.", giveplayer);
               SendClientMessage(playerid, COLOR_LIGHTRED, string);
               format(string, sizeof(string), "* Postavljeni ste u AREA 51 od Admina %s.", sendername);
               SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
               GameTextForPlayer(giveplayerid, "~w~Dobrodosli u ~n~~r~AREA", 5000, 3);
               WantedPoints[giveplayerid] = 0;
               WantedLevel[giveplayerid] = 0;
               PlayerInfo[giveplayerid][pJailed] = 2;
               PlayerInfo[giveplayerid][pJailTime] = 3600;
                  SetPlayerPos(giveplayerid, 111.0766,1921.2036,18.6769);
              }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je Offline !");
             return 1;
         }
       }
return 1

i evo unprison

if(strcmp(cmd, "/unprison",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerInfo[playerid][pAdmin] < 2)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste autorizirani da koristite ovu komandu !");
               return 1;
           }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /unprison [ID/Ime]");
            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), "* Izvadili ste %s iz AREA 51.", giveplayer);
               SendClientMessage(playerid, COLOR_LIGHTRED, string);
               format(string, sizeof(string), "* Izvadeni ste iz AREA51 od Admina %s.", sendername);
               SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
               GameTextForPlayer(giveplayerid, "~g~Sloboda ~n~~w~Neradite vise Non-RP", 5000, 3);
               WantedPoints[giveplayerid] = 0;
               WantedLevel[giveplayerid] = 0;
               PlayerInfo[giveplayerid][pJailed] = 0;
               PlayerInfo[giveplayerid][pJailTime] = 0;
                  SetPlayerPos(giveplayerid, 90.0387,1921.3308,17.9341);
              }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Taj igrac je Offline !");
             return 1;
         }
       }
       return 1;
Neke slike/video za lakse dobivanje pomoci(neobavezno):

pod prison ispod setplayerpos stavi

SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453);

a pod unprison ispod setplayerpos

SetPlayerWorldBounds(giveplayerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);