Weapons Saver
#1

Hello all,
and sorry for asking this(makes me look noob) but I'm a noob in scripting, I tried make a weaponshop filterscript, it worked but i didn't manage to get it save the weapons, and load in on player reconnect, I tried searching, but I've found nothing, please help me D:
Arham. AKA Hunter
Reply
#2

pawn Код:
new WeaponData[MAX_PLAYERS][13];
new Ammo[MAX_PLAYERS][13];

for( new a; a < 13; a++ )
{
    GetPlayerWeaponData( i, a, WeaponData[i][a], Ammo[i][a] );
}

// Then save this in whatever you store player info with.
// Load your saved files and use this to give weapons back.
for( new a; a < 13; a++ )
{
    GiveWeapon(playerid,WeaponData[playerid][a], Ammo[playerid][a]);
}
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=222266

Ever heard of looking harder? took me 44.000001 seconds.

Edit: If you just want saving use the above.
Reply
#4

Thanks Guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)