YCMD:fdeposit(playerid, params[], help) {
for(new s = 0; s < sizeof(SafeInfo); s++) {
if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ])) {
if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID]) {
if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
ShowPlayerDialog(playerid, DIALOG_FDEPOSIT, DIALOG_STYLE_LIST, "Faction deposit", "Money\nMaterials\nDrugs", "Ok", "Exit");
}
}
}
return 1;
}
YCMD:fwithdraw(playerid, params[], help) {
for(new s = 0; s < sizeof(SafeInfo); s++) {
if(PlayerToPoint(5.0, playerid, SafeInfo[sPosX], SafeInfo[sPosY], SafeInfo[sPosZ])) {
if(PlayerInfo[playerid][pMember] == SafeInfo[sFactionID]) {
if(PlayerInfo[playerid][pRank] >= 6) {
if(TradeID[playerid] != -1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda atata timp cat esti implicat intr-o afacere!");
SeifID[playerid] = PlayerInfo[playerid][pMember]-1;
new string[180];
format(string, sizeof(string), "Option\tResult\nMoney\t$%s\nMaterials\t%s\nDrugs\t%s\n", FormatNumber(SafeInfo[s-1][sMoney]), FormatNumber(SafeInfo[s-1][sMaterials]), FormatNumber(SafeInfo[s-1][sDrugs]));
ShowPlayerDialog(playerid, DIALOG_FWITHDRAW, DIALOG_STYLE_TABLIST_HEADERS, "Faction withdraw", string, "Ok", "Exit");
}
}
}
}
return 1;
}