Register system
#1

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
Reply
#2

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

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 
Reply
#4

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?
Reply
#5

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
Reply
#6

pls help me to make it
Reply
#7

Close topic
i ad creatd myself
thnx for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)