SA-MP Forums Archive
Register system - 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: Register system (/showthread.php?tid=643565)



Register system - RoyalEmpire - 22.10.2017

hello guys
i creted this
PHP код:
else if (areatype[areaid][0] == AREA_TYPE_BANK)
    {
        if (
pbank[playerid][1] == areatype[areaid][1]) {
            
bcps[pbank[playerid][0]][pbank[playerid][1]] = 1;
            for (new 
0PLAYERSi++) {
                if (
IsPlayerConnected2(i)) {
                    if (
pbank[i][0] == pbank[playerid][0] && pbank[i][1] == pbank[playerid][1] && != playerid) {
                        
pbank[i][1] = -1;
                        for (new 
0sizeof(bankChecks); c++) {
                            if (
bcps[pbank[playerid][0]][c] == 0) {
                                
pbank[i][1] = c;
                                
SetPlayerCheckpoint(ibankChecks[pbank[i][1]][0], bankChecks[pbank[i][1]][1], bankChecks[pbank[i][1]][2]-1.01.0);
                                
gPlayerCheckpointStatus[i] = CP_BANK;
                                break;
                            }
                        }
                        if (
pbank[i][1] == -1) {
                            
DisablePlayerCheckpoint(i);
                            
gPlayerCheckpointStatus[i] = 0;
                        }
                    }
                }
            }
            
ShowPlayerDialog2(playeridDIALOG_BANK_REGISTERDIALOG_STYLE_MSGBOX"Bank Register""Would you like to register bank account?""Register""Cancel");
            
ShowPlayerDialog2(playeridDIALOG_BANKDIALOG_STYLE_LIST"San Andreas State Bank""Deposit\nWithdraw\nBalance\nSend Money\nCollect Interest""Select""Close");
        }
    } 
i want that when player go in the marker he get tht do you want to register

i meant to say that i need register system with Dialog_Style_Msgbox for my bank


Re: Register system - Nyzenic - 23.10.2017

try this out
https://sampforum.blast.hk/showthread.php?tid=606450


Re: Register system - RoyalEmpire - 23.10.2017

Quote:
Originally Posted by nnahtann
Посмотреть сообщение
i need only Register system which after getting register by clicking on "register"
it register and it login automatically
like
PHP код:
bankreg=1
then it save it in player account 
//myscript is on dini
//dont give me Y_ini or MySql 



Re: Register system - Escobabe - 23.10.2017

If you mean after the player clicks "Register" button, and then save the variable, show us your OnDialogResponse.

Or maybe you meant after the player register the account, the next time he enters the bank it won't ask him again to register?


Re: Register system - RoyalEmpire - 24.10.2017

Quote:
Originally Posted by Escobabe
Посмотреть сообщение
If you mean after the player clicks "Register" button, and then save the variable, show us your OnDialogResponse.

Or maybe you meant after the player register the account, the next time he enters the bank it won't ask him again to register?
yes i need which save variable & it not ask tht again and it open the dialog after register ok

thnx pls help me


Re: Register system - RoyalEmpire - 24.10.2017

pls help me to make it


Re: Register system - RoyalEmpire - 24.10.2017

Close topic
i ad creatd myself
thnx for help