Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Проблемма с /matsput

Статус
В этой теме нельзя размещать новые ответы.

stariy_fighter

Новичок
Я хочу положить маты в фуру беретса нормально а положить не как не показывает вы положили маты в фургон и даже не показывает вы не в фургоне а хотя все это есть. Мод GF(Real Life)

if(strcmp(cmd,"/matsget",true)==0)
{
if(IsAGang(playerid) || PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
if(PlayerToPoint(5.0,playerid,296.7755,-84.0035,1001.5156))
{
if(armmatbi == 0)return SendClientMessage(playerid,COLOR_GRAD1,"Склад пуст!");
if(MatsHolding[playerid] >= 250) return SendClientMessage(playerid,COLOR_GRAD1,"Вы не можете взять больше 250 матов!");
format(string, sizeof(string), "Вы украли 250 материалов с зоны 51");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_WHITE, ":::Несите ящик в грузовик, используйте /matsput, чтобы положить маты в фургон!");
SetPlayerAttachedObject(playerid, 1 , 2358, 1,0.11,0.36,0.0,0.0,90.0);
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
armmatbi -= 250;
MatsHolding[playerid] = 250;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Вы не на зоне 51!!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Воровать материалы с зоны 51 могут только банды!!");
return 1;
}
}


if(strcmp(cmd,"/matsput",true)==0)
{
new carid = GetPlayerVehicleID(playerid);
if(carid == gfuramatbi || carid == afuramatbi || carid == bfuramatbi || carid == vfuramatbi || carid == rfuramatbi)
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
if(gfuramatbi < 5000)
{
if(MatsHolding[playerid] == 250)
{
format(string, sizeof(string), "Вы положили маты в фургон!");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Материалы в фургоне: %d/5000", furamatbi[carid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
MatsHolding[playerid] -= 250;
furamatbi[carid] +=250;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Фургон полон");
}
}
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
if(afuramatbi < 5000)
{
if(MatsHolding[playerid] == 250)
{
format(string, sizeof(string), "Вы положили маты в фургон!");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Материалы в фургоне: %d/5000", furamatbi[carid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
MatsHolding[playerid] -= 250;
furamatbi[carid] +=250;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Фургон полон");
}
}
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(bfuramatbi < 5000)
{
if(MatsHolding[playerid] == 250)
{
format(string, sizeof(string), "Вы положили маты в фургон!");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Материалы в фургоне: %d/5000", furamatbi[carid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
MatsHolding[playerid] -= 250;
furamatbi[carid] +=250;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Фургон полон");
}
}
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
if(rfuramatbi < 5000)
{
if(MatsHolding[playerid] == 250)
{
format(string, sizeof(string), "Вы положили маты в фургон!");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Материалы в фургоне: %d/5000", furamatbi[carid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
MatsHolding[playerid] -= 250;
furamatbi[carid] +=250;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Фургон полон");
}
}
if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{
if(vfuramatbi < 5000)
{
if(MatsHolding[playerid] == 250)
{
format(string, sizeof(string), "Вы положили маты в фургон!");
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "Материалы в фургоне: %d/5000", furamatbi[carid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
MatsHolding[playerid] -= 250;
furamatbi[carid] +=250;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Фургон полон");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не в фургоне!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Недействительное название материалов!");
return 1;
}
}
return 1;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу