25.08.2010, 19:21
pawn Код:
if (strcmp(cmd, "/unban", true)==0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /unban [playername]");
return 1;
}
else
{
new filename[256];
new Float:hFile;
hFile = format(filename,sizeof(filename), "%s.ini", tmp);
dini_IntSet(filename, "Ban", false);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
return 1;
}
pawn Код:
Ban=1Key=1251DriveLicense=1
pawn Код:
Ban=1
Key=1251
DriveLicense=1