24.10.2018, 14:13
Hello! How can i make /ban system with days, exemple: if today i have banned someone for 10 days, the next day ban will be 9 days and same with next days
// in command /ban
new targetid, days, reason[33];
if (sscanf(params, "rds[32]", targetid, days, reason)) ...
mysql_format(..., "INSERT INTO ... (..., expiration) VALUES (..., TIMESTAMPADD(DAYS, %d, NOW())", ..., days);