24.02.2013, 10:08
Loop through all of the weapon slots and save them to an array:
Loop through all the weapon slots in an array and load them:
pawn Код:
new Weapons[MAX_PLAYERS][13][2];
for (new i = 0; i < 13; i++) GetPlayerWeaponData(playerid, i, Weapons[playerid][i][0], Weapons[playerid][i][1]);
pawn Код:
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]);
}