[POMOC] Imal ko da se razumije u ovo

Započeo Danisha, Septembar 08, 2012, 14:54:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Ravens
Detaljan opis problema:E ovako kad kucam bilo gdje /v buy pise mi da sam kupio auto za 0$ i nema ga nigde samo pise u statu i zabagano
Dio skripte:
Kod: [Odaberi]
else if(strcmp(x_nr,"buy",true) == 0)
        {
            new car = 1;
            new model = GetVehicleModel(idcar);
            if(IsASalesVehicle(idcar))
            {
                if(PlayerInfo[playerid][pLevel] < 2)
    {
                    SendClientMessage(playerid, COLOR_GREY, "Morate biti lvl2 da bi kupili kola!");
                    return 1;
    }
    if(PlayerInfo[playerid][pPcarkey] != 9999 && PlayerInfo[playerid][pPcarkey2] != 9999 && PlayerInfo[playerid][pPcarkey3] != 9999)
{
SendClientMessage(playerid, COLOR_GREY,"* Dostigli ste limit u broju automobila za vas level.!");
return 1;
}
    else
if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar))
{
if (GetPlayerMoney(playerid) > ScriptMoney[playerid])
{
new y,m,d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
    if(admins == 0 || afkadmins == admins)
{
  format(string, sizeof(string), "%s (%d), je kikovan zbog money hacka.", sendername, playerid);
SendClientMessageToAll(COLOR_NICERED, string);
format(string, sizeof(string), "Kikovani ste zbog money hacka ($%d)",(GetPlayerMoney(playerid) - ScriptMoney[playerid]));
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Money Hacking",d,m,y,h,mi,s,sendername);
KickLog(string);
Kick(playerid);
}
format(string, sizeof(string), "[AntiCheat]: %s (%d) verovatno koristi Money Hack; Proverite ga odmah!! /fixmoney [playerID/DeoImena]", sendername,playerid);
SendGmMessage(COLOR_YELLOW, string);
format(string, sizeof(string), "[AntiCheat]:%s (%d) novac je popravljen ($%d).", sendername, playerid,  (GetPlayerMoney(playerid) - ScriptMoney[playerid]));
SendAdminMessage(COLOR_LIGHTRED, string);
SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerSuspicious[playerid] = 1;
PlayerMoneyHacking[playerid] = 1;
PlayerSuspiciousMoney[playerid] = (GetPlayerMoney(playerid) - ScriptMoney[playerid]);
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn", 90000, 0, "i", playerid);
SendClientMessage(playerid, COLOR_CREAM, "* Transakcija stopirana, vase novcano stanje je neuravnotezeno, molimo vas pozovite admine.");
return 1;
}
    if(PlayerInfo[playerid][pCarLic] == 1)
    {
for(new h = 1; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 0)
{
car = h;
h = 9999;
}
}
format(string, sizeof(string),"server uklonjen!RP/Vehicles/%d.ini",car)
dini_Create(string);

if(PlayerInfo[playerid][pPcarkey] == 9999)
{
PlayerInfo[playerid][pPcarkey] = car;
}
else if(PlayerInfo[playerid][pLevel] >= 10)
{
if(PlayerInfo[playerid][pPcarkey2] == 9999)
{
PlayerInfo[playerid][pPcarkey2] = car;
}
}
else { return 1; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar));
if(IsModelAPlane(idcar) || IsModelAHeli(idcar))
{
CarInfo[car][cLocationx] = 2113.8909;
CarInfo[car][cLocationy] = -2443.8997;
CarInfo[car][cLocationz] = 13.5469;
CarInfo[car][cAngle] = 359.2072;
CarInfo[car][cReg] = 0;
OnPropUpdate(4,car);
SendClientMessage(playerid, COLOR_YELLOW2, "Vas avion je isporucen na LS aerodrom!");
SendClientMessage(playerid, COLOR_YELLOW2, "Vas avion je otkljucan, mozete nekome platiti da ga doveze!");
SendClientMessage(playerid, COLOR_NICERED, "Napomena: Obavezno preparkirajte vas avion, inace ce biti prodat od strane administratora!");
GameTextForPlayer(playerid, "~p~Cestitamo~n~~w~Ne zaboravite da uzmete vas avion na ~b~Los Santos aerodromu!", 5000, 3);
}
else if(IsModelABoat(idcar))
{
    CarInfo[car][cLocationx] = -1568.9614;
CarInfo[car][cLocationy] = 169.0118;
CarInfo[car][cLocationz] = -0.6016;
CarInfo[car][cAngle] = 208.7506;
CarInfo[car][cReg] = 0;
OnPropUpdate(4,car);
SendClientMessage(playerid, COLOR_YELLOW2, "Vas brod je isporucen na dokove u SF-u!");
SendClientMessage(playerid, COLOR_YELLOW2, "Vas brod je otkljucan, mozete nekome platiti da ga doveze!");
SendClientMessage(playerid, COLOR_NICERED, "Napomena: Obavezno preparkirajte vas brod, inace ce biti prodat od strane administratora!");
GameTextForPlayer(playerid, "~p~Cestitamo~n~~w~Ne zaboravite da uzmete vas brod na ~b~San Fierro Dokovima!", 5000, 3);
}
else
{
                                CarInfo[car][cLocationx] = 1590.3740;
CarInfo[car][cLocationy] = -1026.0565;
CarInfo[car][cLocationz] = 23.9063;
CarInfo[car][cAngle] = 317.1649;
CarInfo[car][cReg] = 0;
OnPropUpdate(4,car);
SendClientMessage(playerid, COLOR_YELLOW2, "Vase vozilo je isporuceno na parking kod banke!");
SendClientMessage(playerid, COLOR_YELLOW2, "Vase vozilo je otkljucano, mozete platiti nekome da ih doveze do vas!");
SendClientMessage(playerid, COLOR_NICERED, "Napomena: Obavezno preparkirajte vase vozilo, inace ce biti prodato od strane administratora!");
GameTextForPlayer(playerid, "~p~Cestitamo~n~~w~Ne zaboravite da uzmete vasa kola na ~b~parkingu kod banke!", 5000, 3);
}
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
CarInfo[car][cPaintjob] = 999;
CarInfo[car][cColorOne] = 1;
CarInfo[car][cColorTwo] = 1;
CarInfo[car][cComponent0] = 0;
CarInfo[car][cComponent1] = 0;
CarInfo[car][cComponent2] = 0;
CarInfo[car][cComponent3] = 0;
CarInfo[car][cComponent4] = 0;
CarInfo[car][cComponent5] = 0;
CarInfo[car][cComponent6] = 0;
CarInfo[car][cComponent7] = 0;
CarInfo[car][cComponent8] = 0;
CarInfo[car][cComponent9] = 0;
CarInfo[car][cComponent10] = 0;
CarInfo[car][cComponent11] = 0;
CarInfo[car][cComponent12] = 0;
CarInfo[car][cComponent13] = 0;
CarInfo[car][cReg] = 0;
DestroyVehicle(car);
ownedcar[car] = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Cestitamo na novoj kupovini!");
SendClientMessage(playerid, COLOR_GRAD2, "Kucajte /vozilo da vidite nove komande!");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
new pass[24];
format(pass, sizeof(pass),"%d%d%d",random(9),random(9),random(9));
CarInfo[car][cCode] = strval(pass);
OnPropUpdate(4,car);
SetVehicleToRespawn(car);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Iz sigurnosnih razloga, potrebna vam je vozacka dozvola da bi kupili kola!");
return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Nemate dovoljno novca kod sebe ! ");
    return 1;
}
            }
        }

HVALA UNAPRED
Neke slike/video za lakse dobivanje pomoci(neobavezno):////
Poslednja Izmena: Septembar 08, 2012, 16:09:51 POSLE PODNE od Danisha