- Автор темы
- #1
в начало мода
в паблик onplayerkeystatechange
в секундный таймер
в конец мода
проявите актив, возможно солью аирдроп с flin rp(original)
new AirDropObject[2],Text3D:AirDropText;
enum AirDrop_Info
{
Float:AirDropX,
Float:AirDropY,
Float:AirDropZ,
bool:AirDropStatus
}
new AirDropInfo[][AirDrop_Info] =
{
{262.4322,2505.1868,16.4844},
{1896.9647,791.4638,10.8203},
{1952.6436,226.3472,28.7717},
{2362.5042,-704.1384,131.1537},
{1539.7240,-2227.3987,13.5469},
{1795.9135,-2712.3518,13.5391},
{1265.5433,-2036.5615,59.2494},
{991.2833,-2115.6624,13.0938},
{837.9026,-2046.9525,12.8672},
{231.5767,-1835.1168,3.6640},
{-296.9559,-1357.2260,8.1624},
{-2472.2686,-261.0666,39.5178},
{-2899.5779,471.4667,4.9141},
{-196.3857,9.9452,3.1094}
};
в паблик onplayerkeystatechange
if(newkeys == 1024)
{
for(new i; i < sizeof(AirDropInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, AirDropInfo[i][AirDropX], AirDropInfo[i][AirDropY], AirDropInfo[i][AirDropZ]))
{
if(AirDropInfo[i][AirDropStatus])
{
AirDropInfo[i][AirDropStatus] = false;
AirDropPrize(playerid);
}
}
}
}
в секундный таймер
if((minute == 00 || minute == 15 || minute == 30 || minute == 45) && second == 00) CreateAirDrop();
в конец мода
stock CreateAirDrop()
{
new AirDropId = random(sizeof(AirDropInfo));
for(new i; i < sizeof(AirDropObject); i++) DestroyDynamicObject(AirDropObject[i]);
DestroyDynamic3DTextLabel(AirDropText);
AirDropObject[0] = CreateDynamicObject(18849, AirDropInfo[AirDropId][AirDropX], AirDropInfo[AirDropId][AirDropY], AirDropInfo[AirDropId][AirDropZ] + 6.4, 0, 0, 180);
AirDropObject[1] = CreateDynamicObject(18728, AirDropInfo[AirDropId][AirDropX], AirDropInfo[AirDropId][AirDropY], AirDropInfo[AirDropId][AirDropZ] - 2.5, 0, 0, 180);
AirDropText = CreateDynamic3DTextLabel("{FFF000}AirDrop:\nНажмите ALT", 0xFFFFFFFF, AirDropInfo[AirDropId][AirDropX], AirDropInfo[AirDropId][AirDropY], AirDropInfo[AirDropId][AirDropZ], 10);
foreach(new i : Player) SetPlayerCheckpoint(i, AirDropInfo[AirDropId][AirDropX], AirDropInfo[AirDropId][AirDropY], AirDropInfo[AirDropId][AirDropZ], 6.0);
AirDropInfo[AirDropId][AirDropStatus] = true;
SendClientMessageToAll(-1, "[AirDrop] Только что самолёт уронил {FFF000}AirDrop, на мини-карте указано приблизительно место падения.");
SendClientMessageToAll(-1, "[AirDrop] При открытии {FFF000}AirDrop, вы сможете получить ценные призы!");
return 1;
}
stock AirDropPrize(playerid)
{
return SCM(playerid, -1, "вставь свои призы");
}
проявите актив, возможно солью аирдроп с flin rp(original)