Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new pname[128]; //
- new pfile[128];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(pfile, sizeof(pfile), noiluuskin,pname);
- if(!dini_Exists(pfile)) { // If the file exist
- dini_Create(pfile); // Create the file
- dini_IntSet(pfile, "Score", 0); // Set's "Score"
- dini_IntSet(pfile, "Skin", 0); // Set's Skin
- SetPlayerScore(playerid, dini_Int(pfile, "Score"));
- SetPlayerSkin(playerid, dini_Int(pfile, "Skin")); //
- }
- else {
- SetPlayerScore(playerid, dini_Int(pfile, "Score"));
- PlayerInfo[playerid][pSkin] = SetPlayerSkin(playerid, dini_Int(pfile, "Skin"));
- // the same thing
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement