SA-MP Forums Archive
save weapon setting and load it by commands - 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: save weapon setting and load it by commands (/showthread.php?tid=112718)



save weapon setting and load it by commands - Bearfist - 09.12.2009

Hi erveryone ,
I want to create a command with GetPlayerWeaponData(...) which saves the current weapon setting
it should be called like /wsave
and also i want to make a command which loads the saved weapon setting with a command like
/wload ...
Код:
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
  GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
Код:
GivePlayerWeapon(playerid, , );
But GetPlayerWeaponData has also the slots in its function ...
how to use them in the GivePlayerWeapon function ?

could someone help me creating these ?

LG Bearfist