04.06.2012, 19:34
Already got it here is mine
pawn Код:
}
stock DropWeapons(gunID,gunAmmo,Float:x,Float:y,Float:z,world,playerid)
{
if(IsADisabledWeapon(playerid,gunID))
{
return 1;
}
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(gunID != 0 && gunAmmo != 0)
{
for(new i = 0; i < sizeof(DropInfo); i++)
{
if(DropInfo[playerid][dox] == 0.0 && DropInfo[playerid][doy] == 0.0 && DropInfo[playerid][doz] == 0.0)
{
DropInfo[playerid][dType] = 1;
DropInfo[playerid][dAmount][0] = gunID;
DropInfo[playerid][dAmount][1] = gunAmmo;
DropInfo[playerid][dox] = x;
DropInfo[playerid][doy] = y;
DropInfo[playerid][doz] = z;
DropInfo[playerid][dWorld] = world;
strcpy(DropInfo[playerid][dPlayerName],name,MAX_PLAYER_NAME);
DropObject[playerid] = CreateDynamicObject(gh_GetObjectID(gunID), z, y, z-1, 80.0, 0.0, 0.0, world);
return 1;
}
}
return 1;
}
return 1;