[Ajuda] GetPlayerweapondata
#6

Se for sу para pegar a desert eagle nгo precisa fazer isto, por que ela fica sу no slot 2. Se vocк estiver dizendo pegar o id de todos os slots, vocк teria que fazer igual ao exemplo do wiki sa-mp:
pawn Код:
new weapons[13][2];
for (new i = 0; i <= 12; i++)
{
    GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}

printf("Slot 1: arma id %i muniзгo %i", weapons[1][0], weapons[1][1]);

//weapons[slot][0 = id da arma, 1 = muniзгo da arma];
Reply


Messages In This Thread
GetPlayerweapondata - by Saidmrn - 09.10.2014, 01:41
Re: GetPlayerweapondata - by MultiKill - 09.10.2014, 01:51
Re: GetPlayerweapondata - by Saidmrn - 09.10.2014, 01:53
Re: GetPlayerweapondata - by MultiKill - 09.10.2014, 01:57
Re: GetPlayerweapondata - by Saidmrn - 09.10.2014, 02:03
Re: GetPlayerweapondata - by MultiKill - 09.10.2014, 02:09
Re: GetPlayerweapondata - by Saidmrn - 09.10.2014, 02:13
Re: GetPlayerweapondata - by MultiKill - 09.10.2014, 02:15

Forum Jump:


Users browsing this thread: 5 Guest(s)