/unbanme
#2

I've created the command, however im not sure on how i can get the data from my database,
Код:
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;
}
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.
Reply


Messages In This Thread
/unbanme - by yvoms - 14.12.2015, 12:05
Re: /unbanme - by yvoms - 14.12.2015, 16:24
Re: /unbanme - by CrazyChoco - 14.12.2015, 16:28
Re: /unbanme - by jlalt - 14.12.2015, 16:36
Re: /unbanme - by yvoms - 14.12.2015, 16:43
Re: /unbanme - by jlalt - 14.12.2015, 17:36
Re: /unbanme - by yvoms - 14.12.2015, 17:59
Re: /unbanme - by jlalt - 14.12.2015, 18:01
Re: /unbanme - by yvoms - 14.12.2015, 18:05
Re: /unbanme - by jlalt - 14.12.2015, 18:12

Forum Jump:


Users browsing this thread: 3 Guest(s)