[Pomoc] Zlatara

Započeo Milos25, Februar 01, 2013, 23:08:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: NBE
Problem: Kako da napravim komandu za pljackanje zlatare mesto da dobije pare da dobije zlato i kada je na serveru 00:00 sve do 07:00 ne moze opljackati zlatara ( kada pokusa da opljacka da mu pise da je zlato prebaceno u banku i kad ponovo bude otvorena zlatara kad bude na serveru 07:00 da moze opet pljackati )
Dio skripte: Ako moze pomoci komanda za pljackanje banke
if(strcmp(cmd, "/robbank1", true) == 0)
{
        if(RobTime[playerid] == 1) return SCM(playerid, SIVA, "   Vec ste nesto opljackali , sacekajte malo !");
    //new success = 1;
    if(SarBankRobbedRecently == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "Ova lokacija je opljackana, pokusajte kasnije");
    return 1;
}
if(PlayerInfo[playerid][pHelper] <= 1)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pMember] == 15)
{
    if(IsPlayerInRangeOfPoint(playerid, 2, 2309.4302,-4.1638,26.7422))
    {
        if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
{
        if(PlayerInfo[playerid][pDuty] == 0)
{
                        if(PlayerInfo[playerid][pAlat] == 0)
    {
    RobTime[playerid] = 1;
    SetTimerEx("RobTimer", 900000, false, "i", playerid);
                        vandrednostanje = 1;
                        LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
                        LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
                        PlayAudioStreamForPlayer(playerid, "http://k004.kiwi6.com/hotlink/27j37it52r/alarm_sound.mp3");
                        SetPlayerAttachedObject( playerid, 2, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
        SendClientMessage(playerid, COLOR_GREEN, "Vi pljackate Sarajevsku Banku, sacekajte par sekundi da opljackate");
        new stringbnkk[128];
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(stringbnkk, sizeof(stringbnkk), "UPOZORENJE: %s pljacka Sarajevsku banku, molimo Miliciju da zaustavi pljackase", sendername);
                        SendClientMessageToAll(COLOR_RED, stringbnkk);
                        BankaWL[playerid] = 3;
                    RobbingTime[playerid] = 60;
                    PlayerInfo[playerid][pRobBre] = 300;
SarRobBankTimer = SetTimerEx("SarRobBank",300000,true,"i",playerid);
            SetPlayerCriminal(playerid,255, "Pljacka Banke");
            SetPlayerColor(playerid, COLOR_RED);
            PlayerInfo[playerid][pRobTime] = 5;
            SarBankRobbedRecently = 1;
SetTimer("UnsetBankRob",600000,false);
}
else if(PlayerInfo[playerid][pAlat] >= 1)
                        {
                        RobTime[playerid] = 1;
    SetTimerEx("RobTimer", 900000, false, "i", playerid);
                        vandrednostanje = 1;
                        LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
                        LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
                        PlayAudioStreamForPlayer(playerid, "http://k004.kiwi6.com/hotlink/27j37it52r/alarm_sound.mp3");
                        SetPlayerAttachedObject( playerid, 2, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
        SendClientMessage(playerid, COLOR_GREEN, "Vi pljackate Sarajevsku Banku, sacekajte par sekundi da opljackate");
        new stringbnkk[128];
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(stringbnkk, sizeof(stringbnkk), "UPOZORENJE: %s pljacka Sarajevsku banku, molimo Miliciju da zaustavi pljackase", sendername);
                        SendClientMessageToAll(COLOR_RED, stringbnkk);
                        BankaWL[playerid] = 3;
                    RobbingTime[playerid] = 60;
                    PlayerInfo[playerid][pRobBre] = 150;
SarRobBankTimer = SetTimerEx("SarRobBank",150000,true,"i",playerid);
            SetPlayerCriminal(playerid,255, "Pljacka Banke");
            SetPlayerColor(playerid, COLOR_RED);
            PlayerInfo[playerid][pRobTime] = 5;
            SarBankRobbedRecently = 1;
SetTimer("UnsetBankRob",600000,false);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Idite sa duznosti!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Morate imate dobro oruzje da bi ste opljackali banku!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "Niste na mestu pljackanja banke!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, "Nisi clan BANDE");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, "Ti si HELPER i ne smes da pljackas");
    return 1;
}
return 1;
}

Slike: //
Trazim Mapera

promenom varijabli, gde god se ovde napominje davanje novca, ti ga preusmeris u varijablu zlata

Sory sto spam

Lako cu promeniti tekst

Vec nzm kako da dobijem zlato mesto novca i da namestim vreme kad se moze pljackati
Trazim Mapera

zlato umesto novca PlayerInfo[playerid][pZlato] += kolicina;a za vreme imas podesenu u tvom kodu