SA-MP Forums Archive
/getweps - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /getweps (/showthread.php?tid=253526)



/getweps - Alex_Obando - 06.05.2011

Can some one give me a link for a command of /getweps?


Re: /getweps - dannyk0ed - 06.05.2011

Do you want /givegun?

/getweps for what?


Respuesta: /getweps - Alex_Obando - 06.05.2011

To see the player weapons like:

/getwep 1

Player %s has:

M4
UZI
ETC.


Re: /getweps - Deskoft - 06.05.2011

It's rather easy...

See this to see how to do it.
pawn Код:
//common use: get all weapons and store info in an array containing 13 slots
//first value is weapon id and second is ammo
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
    GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
That's a example.


Respuesta: /getweps - Alex_Obando - 07.05.2011

So how I can make it?
Can you do it for me :]