GetPlayerWeapon
#3

Loop through all of the weapon slots and save them to an array:

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]);
Loop through all the weapon slots in an array and load them:

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


Messages In This Thread
GetPlayerWeapon - by Mrich - 24.02.2013, 10:02
Re: GetPlayerWeapon - by antonio112 - 24.02.2013, 10:07
Re: GetPlayerWeapon - by SKAzini - 24.02.2013, 10:08
Re: GetPlayerWeapon - by Mrich - 24.02.2013, 10:18
Re: GetPlayerWeapon - by ReVo_ - 24.02.2013, 10:34
Re: GetPlayerWeapon - by Mrich - 24.02.2013, 10:41
Re: GetPlayerWeapon - by ReVo_ - 24.02.2013, 10:51
Re: GetPlayerWeapon - by Mrich - 24.02.2013, 10:55
Re: GetPlayerWeapon - by ReVo_ - 24.02.2013, 10:57
Re: GetPlayerWeapon - by SKAzini - 24.02.2013, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)