05.10.2016, 15:56
Hi,
I have problem i dont know how to make when i ban player a ban should be saved into his account so when he relog he will be banned! +REP if helped
NOTE: im using Y_INI saving system
Ban command
I have problem i dont know how to make when i ban player a ban should be saved into his account so when he relog he will be banned! +REP if helped
NOTE: im using Y_INI saving system
Ban command
Код:
CMD:ban(playerid, params[]) { if(pInfo[playerid][Adminlevel] < 2) return SCM(playerid, red, "[ERROR] You are not allowed to use this command!"); new player1, string[128], reason[64]; if(sscanf(params, "us[64]", player1, reason)) return SCM(playerid, red,"[USAGE]: /ban (ID/Name) (reason)"); if(player1 == INVALID_PLAYER_ID) return SCM(playerid, red, "[ERROR]: No player!"); if(player1 == playerid) return SCM(playerid, red, "[ERROR]: You cannot ban yourself."); format(string, sizeof(string), "{FFFFFF}%s (ID: %d) has been banned %s %s", pName(player1), player1, pName(playerid), reason); SendClientMessageToAll(-1, string); BanEx(player1, string); return 1; }