[POMOC] /pljackajbanku

Započeo Erik_Bond, Oktobar 21, 2012, 11:32:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:moja
Detaljan opis problema:Kada idem pljackat banku prvi puta  sve krene normalno pise ostanite 95 sec i dobicu pare ali ne dobijem i kad onda idem ponovo za 3h pise vec ste opljackali nesto sacekajte malo

Dio skripte: if(strcmp(cmd, "/pljackajbanku", true) == 0)
{
    new success1 = random(2);
    if(BankRobbedRecently == 1)
{
    SendClientMessage(playerid, COLOR_GREY, " Ova lokacija je vec opljackana pokusajte kasnije !");
    return 1;
}
if(PlayerInfo[playerid][pRobTime] >= 1)
{
    SendClientMessage(playerid, COLOR_GREY, " Vec ste pljackali sacekajte malo !");
    return 1;
}
    if(IsPlayerInRangeOfPoint(playerid, 2, 1454.1089,-1003.7655,26.8328))
    {
        if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
{
        if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
                {
        if(success1 == 1)
{
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "[INFO] {FFFFFF}Krenuli ste sa pljackom banke sacekajte 95 sekundi!");
                    RobbingTime[playerid] = 95;
RobBankTimer = SetTimerEx("RobBank",1000,true,"i",playerid);
            WantedPoints[playerid] = 5;
            SetPlayerCriminal(playerid,255, "Pljacka Banke");
            PlayerInfo[playerid][pRobTime] = 3500;
            BankRobbedRecently = 1;
SetTimer("UnsetBankRob",1500000,false);
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
}
else
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "[INFO] {FFFFFF}Niste uspjeli opljackati banku uhvatila vas je kamera!");
    WantedPoints[playerid] = 2;
            SetPlayerCriminal(playerid,255, "Pokusaj pljacke banke");
PlayerInfo[playerid][pRobTime] = 1500;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Niste clan Mafije | Bande !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Nemate oruzije za pljackanje banke!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, " Niste u banci!");
    return 1;
}
return 1;
}


//////////////////////////////////////////SYSTE PLJACKE BANKE////////////////////////////
forward RobBank(playerid);
public RobBank(playerid)
{
new string[128];
if(IsPlayerInRangeOfPoint(playerid, 4, 1422.5181,-1004.1046,1639.7909))
{
if(RobbingTime[playerid] > 0)
{
    RobbingTime[playerid] --;
    GameTextForPlayer(playerid, "~w~Ostanite na zutnom pickupu ~r~95 ~w~sekundi !", 1000,4);
}
else
{
    RobbingTime[playerid] = 0;
    KillTimer(RobBankTimer);
new money = random(15000);
    SafeJBC_GivePlayerMoney(playerid, money);
format(string, sizeof(string),"~w~Opljackali ste banku i uzeli ~g~%d$ !", money);
GameTextForPlayer(playerid, string, 6000, 4);
format(string, sizeof(string),"[INFO] {FFFFFF}Opljackali ste banku i uzeli %d$ !",money);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
WantedPoints[playerid] = 10;
SetPlayerCriminal(playerid,255, "Pljacka Banke");
}
}
else
{
        GameTextForPlayer(playerid, "~w~Otisli ste sa pickup!", 1000,4);
        RobbingTime[playerid] = 0;
KillTimer(RobBankTimer);
}
}
forward UnsetBankRob();
public UnsetBankRob()
{
BankRobbedRecently = 0;
return 1;
}
forward CanRobAgain();
public CanRobAgain()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
    {
        if(PlayerInfo[i][pRobTime] > 0)
    {
                PlayerInfo[i][pRobTime]--;
}
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):