[Problem]Weapon save
#2

If I understand you correctly, this is what you're looking for.

pawn Код:
new WeaponsData[MAX_PLAYERS][13],
    SavedAmmo[MAX_PLAYERS][13];
When player disconnects...
pawn Код:
for(new i; i < 13; i++)
{
    GetPlayerWeaponData(playerid, i, WeaponsData[playerid][i], SavedAmmo[playerid][i]);
}
Save WeaponsData, SavedAmmo to file...

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]);
}
Reply


Messages In This Thread
[Problem]Weapon save - by jorambo - 12.01.2011, 19:36
Re: [Problem]Weapon save - by iMonk3y - 12.01.2011, 19:52
Re: [Problem]Weapon save - by jorambo - 12.01.2011, 19:54
Re: [Problem]Weapon save - by iMonk3y - 12.01.2011, 21:24
Re: [Problem]Weapon save - by jorambo - 13.01.2011, 16:21

Forum Jump:


Users browsing this thread: 2 Guest(s)