03.01.2017, 16:35
FAЗA ASSIM, TOPO DA GM
PHP код:
enum playerinfo
{
pVip,
};
new pInfo[MAX_PLAYERS][playerinfo];
Код:
CMD:equiparmochila(playerid, params[]) { new backpackitem, containerid, tmpitem; if(pInfo[playerid][pVip] == 1) { backpackitem = CreateItem(item_LargeBackpack); containerid = GetItemArrayDataAtCell(backpackitem, 1); GivePlayerBag(playerid, backpackitem); tmpitem = CreateItem(item_Wrench); AddItemToContainer(containerid, tmpitem); tmpitem = CreateItem(item_Screwdriver); AddItemToContainer(containerid, tmpitem); tmpitem = CreateItem(item_Hammer); AddItemToContainer(containerid, tmpitem); tmpitem = CreateItem(item_DoctorBag); AddItemToContainer(containerid, tmpitem); } return 1; }