save weapon setting and load it by commands
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)