09.04.2015, 17:03
This CMD works for banning who is Online I suppose
Also :
It doesn't work. Cause you're not banning anyone! you're just giving a reason without banning someone.
Also :
PHP код:
else if(!sscanf(params,"s[50]",reason))
{
new PlayerFile[50];
if(AdminLevel[playerid]<3)return 0;
format(PlayerFile,sizeof(PlayerFile),"Accounts/%s.ini",reason);
if(!fexist(PlayerFile)) return SendClientMessage(playerid,GREY,"No such player found in the database");
if(fexist(PlayerFile))
{
if(INI_Int(PlayerFile,"Banned")==1)return SendClientMessage(playerid,GREY,"That player is already banned");
INI_IntSet(PlayerFile,"Banned",1);
SendClientMessage(playerid,-1,"Account Banned");
INI_Set(PlayerFile,"Banner",PlayerName(playerid));
}
}