27.11.2012, 20:11
Here is the code for dropping weapons
pawn Код:
for(new i = 0; i < sizeof(DropInfo); i++)
{
if(DropInfo[i][dx] != 0.0 && DropInfo[i][dy] != 0.0 && DropInfo[i][dz] != 0.0)
{
if(DropInfo[i][dType] == 1)
{
if (DropInfo[i][dAmount][0] > 1 || DropInfo[i][dAmount][0] < 35)
{
DropObject[i] = CreateObject(gh_GetObjectID(DropInfo[i][dAmount][0]), DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 80.0, 0, 0, 200.0, DropInfo[i][dWorld]);
}
}