08.07.2013, 11:26
Hello, well I got a problem on my server, that sometimes players weapons, after they relog wont save. I think I found out how this works and the problem is between the weapon saving system and skin selection(I Use Ladmin as my admin system).
Here is an example why I think it's caused
That's how all my skin selection skins look like, so if a player has weapons and he logs in to his account and continues to scroll around the skin selection he will most likely lose his weapons because all of the skins are setted to 0 weapons, but if the player will chose a skin and then /login without scrolling anymore in the skin selection he will have his weapons.
This is the ladmin weapon saving system:
If anybody could help me solve this problem I would be really thankful, if somebody wont understand the problem or I didn't explain well, ill try explain again.
p.s. I am pretty naby in scripting, never messed around myself with saving systems :P
Here is an example why I think it's caused
Код:
AddPlayerClass(106,1429.8060,-1843.7299,13.5469,359.0000,0,0,0,0,0,0);
This is the ladmin weapon saving system:
Код:
new weap0,ammo0,weap1, ammo1, weap2, ammo2, weap3, ammo3, weap4, ammo4, weap5, ammo5, weap6, ammo6; GetPlayerWeaponData(playerid,1,weap0,ammo0);// melee GetPlayerWeaponData(playerid,2,weap1,ammo1);// hand gun GetPlayerWeaponData(playerid,3,weap2,ammo2);//shotgun GetPlayerWeaponData(playerid,4,weap3,ammo3);// SMG GetPlayerWeaponData(playerid,5,weap4,ammo4);// AK47 / M4 GetPlayerWeaponData(playerid,6,weap5,ammo5);// rifle GetPlayerWeaponData(playerid,7,weap6,ammo6);// rocket launcher dUserSetINT(PlayerName2(playerid)).("weap0",weap0); dUserSetINT(PlayerName2(playerid)).("weap0ammo",ammo0); dUserSetINT(PlayerName2(playerid)).("weap1",weap1); dUserSetINT(PlayerName2(playerid)).("weap1ammo",ammo1); dUserSetINT(PlayerName2(playerid)).("weap2",weap2); dUserSetINT(PlayerName2(playerid)).("weap2ammo",ammo2); dUserSetINT(PlayerName2(playerid)).("weap3",weap3); dUserSetINT(PlayerName2(playerid)).("weap3ammo",ammo3); dUserSetINT(PlayerName2(playerid)).("weap4",weap4); dUserSetINT(PlayerName2(playerid)).("weap4ammo",ammo4); dUserSetINT(PlayerName2(playerid)).("weap5",weap5); dUserSetINT(PlayerName2(playerid)).("weap5ammo",ammo5); dUserSetINT(PlayerName2(playerid)).("weap6",weap6); dUserSetINT(PlayerName2(playerid)).("weap6ammo",ammo6);
p.s. I am pretty naby in scripting, never messed around myself with saving systems :P