22.10.2017, 15:37
hello guys
i creted this
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
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 i = 0; i < PLAYERS; i++) {
if (IsPlayerConnected2(i)) {
if (pbank[i][0] == pbank[playerid][0] && pbank[i][1] == pbank[playerid][1] && i != playerid) {
pbank[i][1] = -1;
for (new c = 0; c < sizeof(bankChecks); c++) {
if (bcps[pbank[playerid][0]][c] == 0) {
pbank[i][1] = c;
SetPlayerCheckpoint(i, bankChecks[pbank[i][1]][0], bankChecks[pbank[i][1]][1], bankChecks[pbank[i][1]][2]-1.0, 1.0);
gPlayerCheckpointStatus[i] = CP_BANK;
break;
}
}
if (pbank[i][1] == -1) {
DisablePlayerCheckpoint(i);
gPlayerCheckpointStatus[i] = 0;
}
}
}
}
ShowPlayerDialog2(playerid, DIALOG_BANK_REGISTER, DIALOG_STYLE_MSGBOX, "Bank Register", "Would you like to register bank account?", "Register", "Cancel");
ShowPlayerDialog2(playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "San Andreas State Bank", "Deposit\nWithdraw\nBalance\nSend Money\nCollect Interest", "Select", "Close");
}
}
i meant to say that i need register system with Dialog_Style_Msgbox for my bank