15.05.2014, 17:12
Youssef you should now make your own admin system lux admin system is outdated
why not make it on player register ??
dam i don't know how dini works
try making this all one gamemode or change return 1; to return 0;
pawn Код:
if(dini_Exists(file)) { // If the file exist
SetPlayerScore(playerid, dini_Int(file, "Score"));
SetPlayerMoney(playerid, dini_Int(file, "Money"));
LPinfo[playerid][Drugs] = dini_Int(file,"Drugs");
LPinfo[playerid][Adre] = dini_Int(file,"Adrenaline Pills");
BankMoney[playerid] = dini_Int(file,"BankMoney");
Favouritesong[playerid] = dini_Int(file,"SongID");
}
else {
dini_Create(file); // Create the file
dini_IntSet(file, "Score", 0); // Set's "Score"
dini_IntSet(file, "Money", 0); // Set's "Money"
dini_IntSet(file, "Drugs", LPinfo[playerid][Drugs]); // Set's "Kills"
dini_IntSet(file, "Adrenaline Pills", LPinfo[playerid][Adre]); // Set's "Kills"
dini_IntSet(file, "BankMoney", BankMoney[playerid]); // Set's "Kills"
dini_IntSet(file, "SongID", Favouritesong[playerid]); // Set's "Kills"
SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
SetPlayerMoney(playerid, dini_Int(file, "Money")); // This describes where to load the money
// the same thing
} // This get's the length of the player name
dam i don't know how dini works
try making this all one gamemode or change return 1; to return 0;