Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ZapiszStatystyki(playerid)
- local world = GetPlayerWorld(playerid);
- local x, y, z = GetPlayerPos(playerid);
- local angle = GetPlayerAngle(playerid);
- local fatness = GetPlayerFatness(playerid);
- local HP = GetPlayerHealth(playerid);
- local MaxHP = GetPlayerMaxHealth(playerid);
- local Mana = GetPlayerMana(playerid);
- local MaxMana = GetPlayerMaxMana(playerid);
- local Lvl = GetPlayerLevel(playerid);
- local MagLvl = GetPlayerMagicLevel(playerid);
- local LP = GetPlayerLearnPoints(playerid);
- local XP = GetPlayerExperience(playerid);
- local NextXP = GetPlayerExperienceNextLevel(playerid);
- local Str = GetPlayerStrength(playerid);
- local Dex = GetPlayerDexterity(playerid);
- local OneH = GetPlayerSkillWeapon(playerid, 0);
- local TwoH = GetPlayerSkillWeapon(playerid, 1);
- local Bow = GetPlayerSkillWeapon(playerid, 2);
- local Xbow = GetPlayerSkillWeapon(playerid, 3);
- local equippedMeleeWeapon = GetEquippedMeleeWeapon(playerid);
- local equippedRangedWeapon = GetEquippedRangedWeapon(playerid);
- local equippedArmor = GetEquippedArmor(playerid);
- end
- local fileWrite = io.open("db/"..GetPlayerName(playerid)..".txt", "w+");
- fileWrite:write(Player[playerid].password,"\n");
- if Player[playerid].class == nil then
- Player[playerid].class = 1;
- fileWrite:write(Player[playerid].class.."\n");
- else
- fileWrite:write(Player[playerid].class.."\n");
- end
- fileWrite:write(world," ",x," ",y," ",z," ",angle,"\n");
- fileWrite:write(fatness,"\n");
- fileWrite:write(HP," ",MaxHP," ",Mana," ",MaxMana,"\n");
- fileWrite:write(Lvl," ",MagLvl," ",LP," ",XP," ",NextXP,"\n");
- fileWrite:write(Str," ",Dex," ",OneH," ",TwoH," ",Bow," ",Xbow,"\n");
- fileWrite:write(equippedMeleeWeapon," ",equippedRangedWeapon," ",equippedArmor,"\n");
- for i = 1, 100 do
- GetPlayerItem(playerid, i);
- end
- function OnPlayerResponseItem(playerid, sloty, instance, ilosc, equiped)
- if instance = "Null" then
- return;
- end
- if equiped = false;
- fileWrite:write("Slot:", sloty, "Instance:", instance, "Ilosc:", ilosc, "\n");
- end
- end
- fileWrite:close();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement