SA-MP Forums Archive
Help for Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help for Dialog (/showthread.php?tid=335031)



Help for Dialog - 3RoR - 16.04.2012

y have created a bank rob System, now when a player start's robbing bank with /robbank and to the player show's dialog for the code and when a player types the codes of the Vault,after 30secundes show's him again the dialog ? why
, y have created a timer in the command /robbank....


Re: Help for Dialog - aRoach - 16.04.2012

Give us the command...
And man, it's not 'y have ...', is 'I have...'


Re: Help for Dialog - 3RoR - 16.04.2012

............


Re: Help for Dialog - aRoach - 16.04.2012

pawn Код:
if(strcmp(cmd,"/hakiraj", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        /*if(!PlayerToPoint(5,playerid,2316.6187,-15.3269,26.7422))
        {
            SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste vo Bankata.");
            return 1;
        }*/

        if(PlayerInfo[playerid][pRank] == 5) return SendClientMessage(playerid, BELA,"{FF4040}GRESKA:{FFFFFF}Ne ste 5 Rank.");
       
        SendClientMessage(playerid, BELA,"{37F906}INFO:{FFFFFF}Presmetajte gi slednive Sifri,Dodeka Sistemot se Provaluva...");
        format(string, sizeof(string), "SEF SIFRA: 25*25-15+5+10-5+5");
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

        SetTimer("BankRob",30000,0);

        format(string, 256, "BANKA ALARM - Grabezot e Zapocnat !!!",sendername);

        SendTeamMessage(1, COLOR_YELLOW, string);
        SendTeamMessage(2, COLOR_YELLOW, string);
        SendTeamMessage(3, COLOR_YELLOW, string);
        SendTeamMessage(1, COLOR_YELLOW, string);
        SendTeamMessage(2, COLOR_YELLOW, string);
        SendTeamMessage(3, COLOR_YELLOW, string);
        SendTeamMessage(1, COLOR_YELLOW, string);
        SendTeamMessage(2, COLOR_YELLOW, string);
        SendTeamMessage(3, COLOR_YELLOW, string);
    }
   
    return 1;
}
SetTimer repeat was set to true instead of false...


Re: Help for Dialog - 3RoR - 16.04.2012

Thanks, LOCK !