{Pomoc}Rentanje Motora

Započeo |BUG|F!L0[Z]0F|RPG|, Maj 04, 2011, 21:38:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:FactionGame
Detaljan opis problema:Nezz gde u modu se nalazi koliko kosta...rentbike imam i kosta 200k al nemogu naci gde pise koliko kosta jel to u mod ili van ako je u mod na koje je nesto u modu...!!
Dio skripte:Nezz Gde se Nalazi To samo m ito pomozite!
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Maj 04, 2011, 21:48:53 POSLE PODNE od Burrows

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Evo Popravio sam Post molim da mi se sada pomogne jer je hitno molim vas!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji


hhh hvala sto si mi pomogo ma nema kao da je u zemlju propalo ajde ljudi molim vas pomozite mi sta je ovo....ajde plss ovo mi samo treba zbugano mi je to a sad otvaram server a jbg!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

dragan12

Jednostavno nadjes komandu /rentbike i tu ces naci SafeGivePlayerMoney(playerid,-200);//Ili koji vec broj ti umesto -200 stavis minus pa koliko hoces para da skida. Ili ce tako pisati ili nesto ovako
            
SafeJB_GivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
Ti samo stavis SafeJB_GivePlayerMoney(playerid,-50);//Ili koju vec hoces cifru

if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nemojte zaboraviti da ~b~/unrentbike~n~~g~/lock ~w~da zakljucate motor",hirefee);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}


Nema mi ni toga evo pa pogeldaj!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

dragan12

Vidi ima:  ;)
if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);//To je ovo
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];//I ovde promeni cenu koju si stavio
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nemojte zaboraviti da ~b~/unrentbike~n~~g~/lock ~w~da zakljucate motor",hirefee);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}

SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);//To je ovo
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];//I ovde promeni cenu koju si stavio

Opet pise cijena 193050 a stavio sam to u komandu...ono sto si mi reko...jer treba u komandu ili negde drugo evo pogledaj sta sam uradio...dat cu ti sad komandu moju ako nemoze mozes mi ti uradit komandu sto ti posaljem pa mi daj!

if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
                if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
GivePlayerMoney(playerid,-50);
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nemojte zaboraviti da ~b~/unrentbike~n~~g~/lock ~w~da zakljucate motor",hirefee);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}



SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
GivePlayerMoney(playerid,-50);


To sam uradio a ono sto si mi dao samo sam prekopiro na njega ovo giveplayesmoney

SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];//I ovde promeni cenu koju si stavio umesto ovoga sam stavio giveplayermoney daj pomozi molim te da radi!

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

dragan12

Cek nadji ovo:
if(newcar >= 153 && newcar <= 177)
{
   if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~y~Mozete iznajmiti ovaj motor~n~Cijena:~w~$150~n~~y~Da iznajmite kucajte ~y~/rentbike~y~~n~da izadjete kucajte ~w~/exit");
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}

Uglavnom nesto na taj fazon i vidi koja ti tu pise cena pa je prepravi.

EDIT:
Nisi me razumeo ovo stavi umesto ta dva radice:
            SafeGivePlayerMoney(playerid,-50);//To je ovo
            SBizzInfo[0][sbTill] += 50;//I ovde promeni cenu koju si stavio
Poslednja Izmena: Maj 05, 2011, 09:34:24 PRE PODNE od [BD]Gagi_Corleone

Nepise mi Koliko Kosta ... samo mi ovako....

   if(newcar >= 153 && newcar <= 177)
{
    if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~w~Mozete iznajmiti ovaj motor/bicikl~n~Cost:~g~$%d~n~~w~Da iznajmite kucajte ~g~/rentbike~w~~n~da izadjete kucajte ~r~/exit",SBizzInfo[0][sbEntranceCost]);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

dragan12

Ovako ovako stavi komandu:
if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeGivePlayerMoney(playerid,-50);//To je ovo
SBizzInfo[0][sbTill] += 50;//I ovde promeni cenu koju si stavio
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nemojte zaboraviti da ~b~/unrentbike~n~~g~/lock ~w~da zakljucate motor",hirefee);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}



A ovako stavi ovo:
if(newcar >= 153 && newcar <= 177)
{
    if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~w~Mozete iznajmiti ovaj motor/bicikl~n~Cost:~g~$50~n~~w~Da iznajmite kucajte ~g~/rentbike~w~~n~da izadjete kucajte ~r~/exit");
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}

LOCK uradio sam...

Hvala Gagi ovo ce nadam se i drugima posluzit sto si meni pomogo!

Nisi me razumeo ovo stavi umesto ta dva radice:
            SafeGivePlayerMoney(playerid,-50);//To je ovo
            SBizzInfo[0][sbTill] += 50;//I ovde promeni cenu koju si stavio

To je Bio kljuc ovoga!
Poslednja Izmena: Maj 05, 2011, 09:55:49 PRE PODNE od Burrows

Balkan United Community and Hosting for YOU


Uskoro Balkan United Roleplay
Kvalitetan i Povoljan Hosting www.bug-hosting.com
Balkan United Community www.bug-hq.info
Uskoro Prijave za Gmodove,GameMastere,Lidere za RPG
Za Ostale Informacije Kontaktirajte [email protected]


Proverite Zasto Smo Najbolji

dragan12

Citat: Burrows poslato Maj 05, 2011, 09:45:21 PRE PODNE
LOCK uradio sam...

Hvala Gagi ovo ce nadam se i drugima posluzit sto si meni pomogo!

Nisi me razumeo ovo stavi umesto ta dva radice:
            SafeGivePlayerMoney(playerid,-50);//To je ovo
            SBizzInfo[0][sbTill] += 50;//I ovde promeni cenu koju si stavio

To je Bio kljuc ovoga!
Pa da. Nisi me prvi put razumeo.  ;)