12.01.2011, 19:52
If I understand you correctly, this is what you're looking for.
When player disconnects...
Save WeaponsData, SavedAmmo to file...
On player connect/login, load them from the file...
pawn Код:
new WeaponsData[MAX_PLAYERS][13],
SavedAmmo[MAX_PLAYERS][13];
pawn Код:
for(new i; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, WeaponsData[playerid][i], SavedAmmo[playerid][i]);
}
On player connect/login, load them from the file...
pawn Код:
for(new i = 12; i > 1; i--)
{
GivePlayerWeapon(playerid, WeaponsData[playerid][i], SavedAmmo[playerid][i]);
}