03.05.2011, 16:59
pawn Код:
if(strcmp(cmd, "/hapuskan", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /removeucp [playerid/PartOfName]");
return 1;
}
new file[64];
format(file, sizeof(file),"LARP/Users/%s.ini", tmp);
if(fexist(file))
{
dini_IntSet(file, "Pending", 0);
SendClientMessage(playerid, COLOR_GRAD2, "Pending=0");
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Player with that name doesn't exist!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You cant use this Commands!! (admin only)");
}
return 1;
}