DenKrick
Ученик
И так сейчас я покажу урок по созданию пикапа вместо команды /materials get
-Ко всем new
new matess; //название свое
-В public OnGameModeInit()
matess = CreatePickup(1576,23,308.4026,-167.8499,999.5938);//тип и все остальное можете поставить свое
-В public OnPlayerPickUpPickup(playerid, pickupid)
else if(pickupid == matess)
{
if (IsAGang(playerid))
{
if(armmatsf == 0)return SendClientMessage(playerid,COLOR_GRAD1,"Склад армии пуст");
if(PlayerInfo[playerid][pMats] >= 250) return SendClientMessage(playerid,COLOR_GRAD1,"Вы не можете взять больше");
SendClientMessage(playerid, 0x6495EDFF, "Вы взяли 250 материалов со склада армии");
SendClientMessage(playerid, COLOR_WHITE, "Несите ящик в грузовик, используйте /materials put,чтобы положить маты в фургон");
PlayerInfo[playerid][pMats] += 250;
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
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);
usegruz[playerid] = 1;
usemats[playerid] = 1;
armmatsf -= 250;
{
if(armmatbi == 0)return SendClientMessage(playerid,COLOR_GRAD1,"Склад армии пуст");
if(PlayerInfo[playerid][pMats] >= 250) return SendClientMessage(playerid,COLOR_GRAD1,"Вы не можете взять больше");
SendClientMessage(playerid, 0x6495EDFF, "Вы взяли 250 материалов со склада армии");
SendClientMessage(playerid, COLOR_WHITE, "Несите ящик в грузовик, используйте /materials put,чтобы положить маты в фургон");
PlayerInfo[playerid][pMats] += 250;
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
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);
usemats[playerid] = 1;
usegruz[playerid] = 1;
armmatbi -= 250;
}
}
return 1;
}
Если такой урок уже есть...Лично я не видел кому помог +сик :df:
Сделал копию Samp-Vl.
-Ко всем new
new matess; //название свое
-В public OnGameModeInit()
matess = CreatePickup(1576,23,308.4026,-167.8499,999.5938);//тип и все остальное можете поставить свое
-В public OnPlayerPickUpPickup(playerid, pickupid)
else if(pickupid == matess)
{
if (IsAGang(playerid))
{
if(armmatsf == 0)return SendClientMessage(playerid,COLOR_GRAD1,"Склад армии пуст");
if(PlayerInfo[playerid][pMats] >= 250) return SendClientMessage(playerid,COLOR_GRAD1,"Вы не можете взять больше");
SendClientMessage(playerid, 0x6495EDFF, "Вы взяли 250 материалов со склада армии");
SendClientMessage(playerid, COLOR_WHITE, "Несите ящик в грузовик, используйте /materials put,чтобы положить маты в фургон");
PlayerInfo[playerid][pMats] += 250;
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
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);
usegruz[playerid] = 1;
usemats[playerid] = 1;
armmatsf -= 250;
{
if(armmatbi == 0)return SendClientMessage(playerid,COLOR_GRAD1,"Склад армии пуст");
if(PlayerInfo[playerid][pMats] >= 250) return SendClientMessage(playerid,COLOR_GRAD1,"Вы не можете взять больше");
SendClientMessage(playerid, 0x6495EDFF, "Вы взяли 250 материалов со склада армии");
SendClientMessage(playerid, COLOR_WHITE, "Несите ящик в грузовик, используйте /materials put,чтобы положить маты в фургон");
PlayerInfo[playerid][pMats] += 250;
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
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);
usemats[playerid] = 1;
usegruz[playerid] = 1;
armmatbi -= 250;
}
}
return 1;
}
Если такой урок уже есть...Лично я не видел кому помог +сик :df:
Сделал копию Samp-Vl.
