18.07.2015, 23:37
@zDbruno, Olha se resolve.
PHP код:
CMD:equiparvip(playerid, params[])
{
new backpackitem,
containerid,
tmpitem;
if(Player[playerid][Vip] == 1)
{
backpackitem = CreateItem(item_Backpack);//Mochila Media
containerid = GetItemExtraData(backpackitem);
GivePlayerBag(playerid, backpackitem);
tmpitem = CreateItem(item_Wrench);//Chave Inglesa
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Screwdriver);//Chave de Fenda
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Hammer);//Martelo
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem);
SendClientMessage(playerid, AZUL_CLARO, "Vocк pegou seus equipamentos VIP!");
return 0;
}
else if(Player[playerid][Vip] == 2)
{
backpackitem = CreateItem(item_Backpack);//Mochila Media
containerid = GetItemExtraData(backpackitem);
GivePlayerBag(playerid, backpackitem);
tmpitem = CreateItem(item_Wrench);//Chave Inglesa
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Screwdriver);//Chave de Fenda
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Hammer);//Martelo
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem)
SendClientMessage(playerid, AZUL_CLARO, "Vocк pegou seus equipamentos VIP 2!");
return 0;
}
else
SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!");
return 1;
}