if(PlayerInfo[i][pLevel] == 2 && PlayerInfo[i][pExp] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini",sendername);
new file = ini_openFile(string);
if(file < 0) print("no file");
else
{
ini_getString(file, "pDrug",string);
format(string, sizeof(string), "%s.ini",string);
new file2 = ini_openFile(string);
if(!file2)
{
ini_setInteger(file2, "FriendMoney",100000);
ini_setInteger(file2, "Text2",3);
ini_closeFile(file2);
ini_closeFile(file);
SendClientMessage(i, COLOR_ORANGE, "1");
}
}
}
More explanation would be welcome.
I don't have a clue what this code is supposed to do if you're not going to explain me. |