[POMOC] kuca(pin)

Započeo |OY:RP| James, Februar 28, 2013, 11:51:03 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta:RaptorGame
Detaljni Opis:e ovako skinuosam scriptu raptorgame i sad editujem je i sad pise ono za kuce treba pin dase kuca kupi ili stan znaci morase uvek otic u opstinu i trazit to da uzmes  taj pin i sa pinom ti kad ukucas tek mozez kupis kucu e ja to hocu obrisem taj pin kad dodjem do kuceneke dase moze odma kuca /kupikucu  a ne ono otic opstina pa uzet odobrenje za kucu pa kupit il stan tako
ja neznam stavam trebam dat al dacu nest de mi recite stadavam dam biobivam zahvalan mnogo dami pomognete oko ovog

deo scripte:dacu sve samosta treba recite
Slike

if(dialogid == KUCAGLAVNA)//
{
if(response)
{
if(listitem == 0)
{
                ShowPlayerDialog(playerid,KUPIKUCUPIN,DIALOG_STYLE_INPUT,"{00C0FF}|{FFFFFF}° {00C0FF}Zastita prava {FFFFFF}°{00C0FF}|","{00C0FF}_________________________________________\n\n{00C0FF}Upisite vas pin kod radi sigurnosti.\n{00C0FF}_________________________________________","Potvrdi","Odustani");
return 1;
}
// *******************************
if(listitem == 1)
{
                ShowPlayerDialog(playerid,KUPISTANPIN,DIALOG_STYLE_INPUT,"{00C0FF}|{FFFFFF}° {00C0FF}Zastita prava {FFFFFF}°{00C0FF}|","{00C0FF}_________________________________________\n\n{00C0FF}Upisite vas pin kod radi sigurnosti.\n{00C0FF}_________________________________________","Potvrdi","Odustani");
              return 1;
}
}
return 1;
}


if(dialogid == KUPIKUCU)//
{
if(response)
{
new brojkuce = strval(inputtext);
new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));

if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "[GRESKA] Vec posjedujete kucu, prvo prodajte kucu ako zelite da kupite ovu !");
return 1;
}
if(HouseInfo[brojkuce][hOwned] > 0)
{
SendClientMessage(playerid, COLOR_WHITE, " [GRESKA] Ta kuca nije na prodaju !!!");
return 1;
}
if(PlayerInfo[playerid][pLevel] < HouseInfo[brojkuce][hLevel])
{
format(string, sizeof(string), "[GRESKA] Morate biti Level %d da biste kupili ovo !", HouseInfo[brojkuce][hLevel]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
if(GetPlayerMoney(playerid) < HouseInfo[brojkuce][hValue])
{
format(string, sizeof(string), "[GRESKA] Nemate dovoljno novca, cena kuce je :%d$ !", HouseInfo[brojkuce][hValue]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}

// ovde preuzima kucu na svoje ime
    Delete3DTextLabel(Text3D:housesale);
PlayerInfo[playerid][pPhousekey] = brojkuce;
HouseInfo[brojkuce][hOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[brojkuce][hOwner], sendername, 0, strlen(sendername), 255);
SafeJBC_GivePlayerMoney(playerid,-HouseInfo[brojkuce][hValue]);
GameTextForPlayer(playerid, "~w~Cestitamo na kupovini~n~nove kuce !", 3000, 3);
PlayerInfo[playerid][pLocal] = brojkuce;
SendClientMessage(playerid, COLOR_WHITE, "Kucajte /kuca da biste dobili pomoc vezanu za kucu !");
Delete3DTextLabel(Text3D:housesale);
                        DateProp(playerid);
                        OnPropTextdrawUpdate();
                        OnHousePickupUpdate(brojkuce);
OnPropUpdate();
OnPlayerUpdateCustom(playerid);
// ******
}
return 1;
}


NEZNAM STADAVAM AM RECITE STA VAM TREBAM DAT


Poslednja Izmena: Februar 28, 2013, 11:53:37 PRE PODNE od ~Kristijan~

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA

Izbrises proveru za pin tako nest ili  daj tu komandu za kupovinu
Poslednja Izmena: Februar 28, 2013, 14:20:23 POSLE PODNE od Ljubo


#define KUPIKUCUPIN 10401

if(dialogid == KUCAGLAVNA)//
{
   if(response)
   {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid,KUPIKUCUPIN,DIALOG_STYLE_INPUT,"{00C0FF}|{FFFFFF}° {00C0FF}Zastita prava {FFFFFF}°{00C0FF}|","{00C0FF}_________________________________________\n\n{00C0FF}Upisite vas pin kod radi sigurnosti.\n{00C0FF}_________________________________________","Potvrdi","Odustani");
            return 1;
            }
// *******************************
               if(listitem == 1)
               {
                   ShowPlayerDialog(playerid,KUPISTANPIN,DIALOG_STYLE_INPUT,"{00C0FF}|{FFFFFF}° {00C0FF}Zastita prava {FFFFFF}°{00C0FF}|","{00C0FF}_________________________________________\n\n{00C0FF}Upisite vas pin kod radi sigurnosti.\n{00C0FF}_________________________________________","Potvrdi","Odustani");
                     return 1;
               }
   }
return 1;
}
// ***

*



if(dialogid == KUPIKUCUPIN)//
{
if(response)
{
new kartica = PlayerInfo[playerid][pPinKod];
new ukucankod = strval(inputtext);
if( ukucankod == 0){SendClientMessage(playerid,COLOR_WHITE,"{00C0FF}[GRESKA] {FFFFFF}Pogresili ste pinkod.");return 1;}
if( kartica == ukucankod )
{
ShowPlayerDialog(playerid,KUPIKUCU,DIALOG_STYLE_INPUT,"{00C0FF}|{FFFFFF}° {00C0FF}Kupovina nekretnine{FFFFFF}°{00C0FF}|","{00C0FF}_________________________________________\n\n{FFFFFF}Unesite broj kuce koju zelite kupiti.\n{00C0FF}_________________________________________","Prihvati","Odustani");
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"{00C0FF}[GRESKA] {FFFFFF}Pogresili ste pinkod.");
return 1;
}
}
return 1;
}


if(dialogid == KUPIKUCU)//
{
   if(response)
   {
               new brojkuce = strval(inputtext);
               new playername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, playername, sizeof(playername));

               if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
               SendClientMessage(playerid, COLOR_WHITE, "[GRESKA] Vec posjedujete kucu, prvo prodajte kucu ako zelite da kupite ovu !");
               return 1;
               }
                  if(HouseInfo[brojkuce][hOwned] > 0)
                  {
                  SendClientMessage(playerid, COLOR_WHITE, " [GRESKA] Ta kuca nije na prodaju !!!");
                  return 1;
                  }
                     if(PlayerInfo[playerid][pLevel] < HouseInfo[brojkuce][hLevel])
                     {
                     format(string, sizeof(string), "[GRESKA] Morate biti Level %d da biste kupili ovo !", HouseInfo[brojkuce][hLevel]);
                     SendClientMessage(playerid, COLOR_GRAD5, string);
                     return 1;
                     }
                        if(GetPlayerMoney(playerid) < HouseInfo[brojkuce][hValue])
                        {
                        format(string, sizeof(string), "[GRESKA] Nemate dovoljno novca, cena kuce je :%d$ !", HouseInfo[brojkuce][hValue]);
                        SendClientMessage(playerid, COLOR_GRAD5, string);
                        return 1;
                        }

// ovde preuzima kucu na svoje ime
                   Delete3DTextLabel(Text3D:housesale);
                  PlayerInfo[playerid][pPhousekey] = brojkuce;
                  HouseInfo[brojkuce][hOwned] = 1;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(HouseInfo[brojkuce][hOwner], sendername, 0, strlen(sendername), 255);
                  SafeJBC_GivePlayerMoney(playerid,-HouseInfo[brojkuce][hValue]);
                  GameTextForPlayer(playerid, "~w~Cestitamo na kupovini~n~nove kuce !", 3000, 3);
                  PlayerInfo[playerid][pLocal] = brojkuce;
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /kuca da biste dobili pomoc vezanu za kucu !");
                  Delete3DTextLabel(Text3D:housesale);
                        DateProp(playerid);
                        OnPropTextdrawUpdate();
                        OnHousePickupUpdate(brojkuce);
                  OnPropUpdate();
                  OnPlayerUpdateCustom(playerid);
// ******
   }
return 1;
}

jel to to de recite nzm nema kupikucu de recite pliez kkao ovo sredim molmimvas hitnomije

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA