15.03.2011, 11:43
Heey guys,
I am trying to make a non-spawnweapon system.
What I mean is that when you have 100 ammo for a 9mm and you shoot 2 bullets that when you relog that your ammo is 98 left.
So I need to make that when you relog or when I want that the player saves it he needs to pick up what ammo you need.
Now I found the GetPlayerWeaponData, but how do you save that?
This is what I have and how do you save it ?
I use dini.
I am trying to make a non-spawnweapon system.
What I mean is that when you have 100 ammo for a 9mm and you shoot 2 bullets that when you relog that your ammo is 98 left.
So I need to make that when you relog or when I want that the player saves it he needs to pick up what ammo you need.
Now I found the GetPlayerWeaponData, but how do you save that?
pawn Код:
new weapons[13];
new ammo[13];
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i], ammo[i]);
}
I use dini.