14.12.2015, 16:24
I've created the command, however im not sure on how i can get the data from my database,
Like armyban = 0 return SendClientMessage(playerid, -1, "you are not army banned"
armyban = 1 ->Take 750k from the players cash -> Update the row in the database to 0.
Код:
CMD:unbanme(playerid, params[]) { new str[254]; strcat(str,"{2282f7}Cop Unban - 500K\n"); strcat(str,"{ff1ce4}Army Unban - 750K\n"); ShowPlayerDialog(playerid, dUNBAN,DIALOG_STYLE_LIST,"Class unbans",str,"Close","Agree"); return 1; }
armyban = 1 ->Take 750k from the players cash -> Update the row in the database to 0.