24.02.2013, 10:02
Hey , I'm working on a saving weapon system , but the GetPlayerWeapon will get only the armed one isn't it ? how to use the 'GetPlayerWeapon' properly?
thanks.
thanks.
new Weapons[MAX_PLAYERS][13][2];
for (new i = 0; i < 13; i++) GetPlayerWeaponData(playerid, i, Weapons[playerid][i][0], Weapons[playerid][i][1]);
new Weapons[MAX_PLAYERS][13][2];
for (new a = 0; a < 13; a++)
{
if(Weapons[playerid][a][1] < 0) Weapons[playerid][a][1] = 99999;
GivePlayerWeapon(playerid, Weapons[playerid][a][0], Weapons[playerid][a][1]);
}
dini_IntSet(file[playerid], "Weapons", Weapons[playerid]);